diff options
Diffstat (limited to 'boot2/Makefile')
| -rw-r--r-- | boot2/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/boot2/Makefile b/boot2/Makefile index 25a9a2e..76e9605 100644 --- a/boot2/Makefile +++ b/boot2/Makefile @@ -6,16 +6,22 @@ include ../Makefile.common STAGE2=stage2.bin MP=mp.bin +CONFIG=config.inc + + ASM_SOURCES=$(wildcard *.asm) all: $(STAGE2) $(MP) -$(STAGE2): $(ASM_SOURCES) +$(CONFIG): ../kernel/config.h + cat ../kernel/config.h | grep "^#define" | sed "s/#/%/" | sed "s/\/\/.*//" > $@ + +$(STAGE2): $(ASM_SOURCES) $(CONFIG) $(MP): $(ASM_SOURCES) clean: - -rm $(STAGE2) $(MP) + -rm $(STAGE2) $(MP) $(CONFIG) |
