From 8b13b14dfcd668c13df68d69c4d3b28027cd022e Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sun, 4 Feb 2024 11:36:57 +0100 Subject: update build environment after repartitioning sd card --- makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index bd6754f..e3a1564 100644 --- a/makefile +++ b/makefile @@ -24,8 +24,7 @@ export # create dummy files to represent non-file targets (container image build # status, sd card partition status, git submodule initialization, etc.) -$(shell state/gen) --include state/auto.mk +$(eval $(shell state/gen)) # read environment variables from ./env include ./env @@ -51,6 +50,7 @@ state/sdcard_part: touch $@ state/sdcard_fmt: state/sdcard_part + $(eval $(shell state/gen)) $(AS_ROOT) mkfs.vfat -n BOOT -F 32 $(SDCARD_PART_BOOT) $(AS_ROOT) mkfs.ext4 -L ROOTFS -F $(SDCARD_PART_ROOTFS) touch $@ @@ -91,8 +91,8 @@ load_rootfs: .PHONY: status status: @echo '### STATUS REPORT' - @echo '# DETECTED SD CARD' - @cat state/auto.mk - @echo '# DETECTED STATE' + @echo '# ENVIRONMENT' + state/gen + @echo '# TARGETS' @ls state | awk '$$0 == "gen" || $$0 == "auto.mk" { next } { print }' -- cgit v1.2.3