Skip to content

Commit 06958e4

Browse files
committed
Fix pedal bootstub build
1 parent f5817e6 commit 06958e4

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

board/pedal/Makefile

+7-1
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,18 @@ recover: obj/bootstub.bin obj/$(PROJ_NAME).bin
3232

3333
include ../../common/version.mk
3434

35+
obj/cert.h: ../../crypto/getcertheader.py
36+
../../crypto/getcertheader.py ../../certs/debug.pub ../../certs/release.pub > $@
37+
3538
obj/main.o: main.c ../*.h
3639
mkdir -p obj
3740
$(CC) $(CFLAGS) -o $@ -c $<
3841

39-
obj/bootstub.o: ../bootstub.c ../*.h obj/gitversion.h
42+
obj/bootstub.o: ../bootstub.c ../*.h obj/gitversion.h obj/cert.h
4043
mkdir -p obj
44+
mkdir -p ../obj
45+
cp obj/gitversion.h ../obj/gitversion.h
46+
cp obj/cert.h ../obj/cert.h
4147
$(CC) $(CFLAGS) -o $@ -c $<
4248

4349
obj/$(STARTUP_FILE).o: ../$(STARTUP_FILE).s

0 commit comments

Comments
 (0)