From 073505f31fdd0c717c9a1db1cc8e297b880f3ddd Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Fri, 17 Feb 2023 13:58:19 +0100 Subject: [PATCH] Add firmware build target shortcut --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ab05658..6527d9f 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,9 @@ CFLAGS ?= -O2 -g0 CFLAGS += -DVERSION="\"$(VERSION)\"" -I. -I$(OUT) -Wall -Wno-unused-variable -Wno-unused-function tools: $(OUT)ppkb-i2c-inputd $(OUT)ppkb-usb-flasher $(OUT)ppkb-usb-debugger $(OUT)ppkb-i2c-debugger $(OUT)ppkb-i2c-charger-ctl $(OUT)ppkb-i2c-flasher +fw: $(OUT)fw-stock.bin -all: tools $(OUT)fw-stock.bin +all: tools fw $(OUT)ppkb-usb-flasher: usb-flasher.c common.c @mkdir -p $(OUT) @@ -45,3 +46,5 @@ $(OUT)fw-stock.bin $(OUT)fw-user.bin: $(wildcard firmware/*.*) cd firmware && ./build.sh cp -f firmware/build/fw-stock.bin $(OUT)fw-stock.bin cp -f firmware/build/fw-user.bin $(OUT)fw-user.bin + +.PHONY: all fw tools