From d26952319c0bdbe22e386d01dd81b3b529e47c0d Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 22 Sep 2025 20:05:58 +0000 Subject: [PATCH] bless --- Makefile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d37801b..79f80cf 100644 --- a/Makefile +++ b/Makefile @@ -22,12 +22,17 @@ MINIROOTFS := $(ASSETS)/minirootfs.tar.gz ALPINE := alpine/ ALPINE_BIN := $(ALPINE)/bin +ALPINE_IMG := $(ASSETS)/alpine.img +ALPINE_TAR := $(ALPINE_IMG).gz get: $(ALPINE) $(ASSETS) wget https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/armhf/alpine-minirootfs-3.22.1-armhf.tar.gz -O $(MINIROOTFS) - tar xvf $(MINIROOTFS) -C $^ + wget https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/armhf/alpine-rpi-3.22.1-armhf.img.gz -O $(ALPINE_TAR) + gunzip -c $(ALPINE_TAR) > $(ALPINE_IMG) + rm -rf $(ALPINE)/* + tar xvf $(MINIROOTFS) -C $< -all: $(SRC) $(BUILD_DIR) $(LIB) +all: $(SRC) $(BUILD_DIR) $(LIB) get $(CC) $(CFLAGS) -o $(TARGET) -static $(SRC) $(LIB) cp $(TARGET) $(ALPINE_BIN) tar czf $(MINIROOTFS) -C alpine ./ @@ -50,4 +55,4 @@ $(ASSETS): mkdir -p $@ clean: - rm -rf $(BUILD_DIR) + rm -rf $(BUILD_DIR) $(ALPINE) $(ASSETS)