From f664d594974023bbac57ba63a180ba1822761e17 Mon Sep 17 00:00:00 2001 From: Byron Lathi Date: Tue, 19 Apr 2022 10:33:27 -0500 Subject: [PATCH] Copy kernel into root folder after build This way it gets copied over to the SD card when installing. --- sw/kernel/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sw/kernel/Makefile b/sw/kernel/Makefile index 627fb45..bd2124e 100644 --- a/sw/kernel/Makefile +++ b/sw/kernel/Makefile @@ -5,6 +5,8 @@ LDFLAGS=-C link.ld -m $(NAME).map SIM=sim65 SIMARGS=-v -c -x 1000000 +FSDIR=../fsdir + NAME=kernel TEST_BIN=test.bin @@ -25,6 +27,7 @@ TEST_OBJS+=$(patsubst %.c,%.o,$(filter %c,$(TEST_SRCS))) TEST_OBJS+=$(filter-out boot.o,$(filter-out main.o,$(filter-out vectors.o,$(OBJS)))) all: $(BIN) + cp $(BIN) $(FSDIR) test: $(TEST_BIN) $(SIM) $(SIMARGS) $(TEST_BIN) @@ -53,4 +56,5 @@ $(LISTS): clean: rm -rf $(OBJS) $(BIN) $(HEX) $(LISTS) $(NAME).map rm -rf $(TEST_OBJS) $(TEST_BIN) + rm -rf $(FSDIR)/$(BIN)