firmware: Rebuild if any source file changes
This catches changes to the stock IVT assembly. Instead of adding that to the list, use $(wildcard) to be more future-proof.
This commit is contained in:
parent
1fd0bac031
commit
78b438a747
2
Makefile
2
Makefile
@ -38,7 +38,7 @@ $(OUT)ppkb-i2c-selftest: i2c-selftest.c common.c
|
|||||||
@mkdir -p $(OUT)
|
@mkdir -p $(OUT)
|
||||||
$(CC) $(CFLAGS) -o $@ $<
|
$(CC) $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
$(OUT)fw-stock.bin $(OUT)fw-user.bin: firmware/em85f684a.h firmware/main.c firmware/build.sh firmware/bootloader.bin
|
$(OUT)fw-stock.bin $(OUT)fw-user.bin: $(wildcard firmware/*.*)
|
||||||
@mkdir -p $(OUT)
|
@mkdir -p $(OUT)
|
||||||
cd firmware && ./build.sh
|
cd firmware && ./build.sh
|
||||||
cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin
|
cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin
|
||||||
|
Loading…
Reference in New Issue
Block a user