Automatically rebuild kernel on libmittos update

This commit is contained in:
Thomas Lovén 2022-01-14 00:39:24 +01:00
parent 54832f2636
commit 8b7e9a454b
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ libmittos: $(SYSROOT)/usr/lib/libmittos.a
$(SYSROOT)/usr/lib/libmittos.a: FORCE
ifeq ($(shell $(MAKE.libmittos) -sq install || echo 1), 1)
$(MAKE.libmittos) install
$(MAKE) $(MAKECMDGOALS)
endif

View File

@ -16,6 +16,7 @@ LDLIBS := -nostdlib -lgcc -L/opt/sysroot/usr/lib -lc -lmittos
kernel: $(OBJ)
$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
kernel: .EXTRA_PREREQS = ${BUILDROOT}/sysroot/usr/lib/libmittos.a
%.o: %.S.py
python3 $^ | $(COMPILE.S) $(DEPFLAGS) -x assembler-with-cpp - -o $@