Make kernel as part of full chip sim

This commit is contained in:
Byron Lathi
2023-10-26 21:25:26 -07:00
parent e3ae984177
commit cf8a5d782f
3 changed files with 13 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ NAME=kernel
O65 = $(NAME).o65
FSDIR=../fsdir
FSDIR=$(REPO_TOP)/sw/fsdir
LISTS=lists
@@ -17,9 +17,12 @@ OBJS+=$(patsubst %.s,%.o,$(filter %s,$(SRCS)))
OBJS+=$(patsubst %.c,%.o,$(filter %c,$(SRCS)))
# Make sure the kernel linked to correct address, no relocation!
all: $(O65)
all: $(O65) $(FSDIR)
cp $(O65) $(FSDIR)
$(FSDIR):
mkdir $(FSDIR)
$(O65): $(OBJS)
$(LD) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@