aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-04 11:36:57 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-04 11:36:57 +0100
commit8b13b14dfcd668c13df68d69c4d3b28027cd022e (patch)
tree9a96ee1e09d704aaedc2b10278b172eaa6465cab /makefile
parent4f8507ff8756cac446a01d7d3a28bdf4f963adf5 (diff)
update build environment after repartitioning sd card
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 5 insertions, 5 deletions
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 }'