bless
This commit is contained in:
parent
2365171e8e
commit
d26952319c
11
Makefile
11
Makefile
@ -22,12 +22,17 @@ MINIROOTFS := $(ASSETS)/minirootfs.tar.gz
|
|||||||
|
|
||||||
ALPINE := alpine/
|
ALPINE := alpine/
|
||||||
ALPINE_BIN := $(ALPINE)/bin
|
ALPINE_BIN := $(ALPINE)/bin
|
||||||
|
ALPINE_IMG := $(ASSETS)/alpine.img
|
||||||
|
ALPINE_TAR := $(ALPINE_IMG).gz
|
||||||
|
|
||||||
get: $(ALPINE) $(ASSETS)
|
get: $(ALPINE) $(ASSETS)
|
||||||
wget https://dl-cdn.alpinelinux.org/alpine/v3.22/releases/armhf/alpine-minirootfs-3.22.1-armhf.tar.gz -O $(MINIROOTFS)
|
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)
|
$(CC) $(CFLAGS) -o $(TARGET) -static $(SRC) $(LIB)
|
||||||
cp $(TARGET) $(ALPINE_BIN)
|
cp $(TARGET) $(ALPINE_BIN)
|
||||||
tar czf $(MINIROOTFS) -C alpine ./
|
tar czf $(MINIROOTFS) -C alpine ./
|
||||||
@ -50,4 +55,4 @@ $(ASSETS):
|
|||||||
mkdir -p $@
|
mkdir -p $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf $(BUILD_DIR)
|
rm -rf $(BUILD_DIR) $(ALPINE) $(ASSETS)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user