Automatically rebuild kernel on libmittos update
This commit is contained in:
parent
54832f2636
commit
8b7e9a454b
1
Makefile
1
Makefile
@ -33,6 +33,7 @@ libmittos: $(SYSROOT)/usr/lib/libmittos.a
|
|||||||
$(SYSROOT)/usr/lib/libmittos.a: FORCE
|
$(SYSROOT)/usr/lib/libmittos.a: FORCE
|
||||||
ifeq ($(shell $(MAKE.libmittos) -sq install || echo 1), 1)
|
ifeq ($(shell $(MAKE.libmittos) -sq install || echo 1), 1)
|
||||||
$(MAKE.libmittos) install
|
$(MAKE.libmittos) install
|
||||||
|
$(MAKE) $(MAKECMDGOALS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,6 +16,7 @@ LDLIBS := -nostdlib -lgcc -L/opt/sysroot/usr/lib -lc -lmittos
|
|||||||
|
|
||||||
kernel: $(OBJ)
|
kernel: $(OBJ)
|
||||||
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
||||||
|
kernel: .EXTRA_PREREQS = ${BUILDROOT}/sysroot/usr/lib/libmittos.a
|
||||||
|
|
||||||
%.o: %.S.py
|
%.o: %.S.py
|
||||||
python3 $^ | $(COMPILE.S) $(DEPFLAGS) -x assembler-with-cpp - -o $@
|
python3 $^ | $(COMPILE.S) $(DEPFLAGS) -x assembler-with-cpp - -o $@
|
||||||
|
Loading…
x
Reference in New Issue
Block a user