Skip to content

Commit

Permalink
Fix pedal bootstub build
Browse files Browse the repository at this point in the history
  • Loading branch information
legonigel committed Mar 23, 2019
1 parent f5817e6 commit 06958e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion board/pedal/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,18 @@ recover: obj/bootstub.bin obj/$(PROJ_NAME).bin

include ../../common/version.mk

obj/cert.h: ../../crypto/getcertheader.py
../../crypto/getcertheader.py ../../certs/debug.pub ../../certs/release.pub > $@

obj/main.o: main.c ../*.h
mkdir -p obj
$(CC) $(CFLAGS) -o $@ -c $<

obj/bootstub.o: ../bootstub.c ../*.h obj/gitversion.h
obj/bootstub.o: ../bootstub.c ../*.h obj/gitversion.h obj/cert.h
mkdir -p obj
mkdir -p ../obj
cp obj/gitversion.h ../obj/gitversion.h
cp obj/cert.h ../obj/cert.h
$(CC) $(CFLAGS) -o $@ -c $<

obj/$(STARTUP_FILE).o: ../$(STARTUP_FILE).s
Expand Down

0 comments on commit 06958e4

Please sign in to comment.