diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-02-04 20:50:23 +0100 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-02-04 20:50:23 +0100 |
commit | 2a218ea1205c8dd547b742931290058def5de85f (patch) | |
tree | 66a22fb3d9c76566ff7afb843cb3a7a92ad643c9 /makefile | |
parent | 0c5557c257b36e8456ab5c0d8473e9505534c424 (diff) |
fix sd card detection for laptop
the sd card is detected as removable and listed as a /dev/sd* device on
my desktop pc, but listed as /dev/mmcblk* and non-removable on my
laptop. now the state/gen script checks if it is EITHER removable or
starts with mmcblk.
also fixed `make status` output to look nicer
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -95,9 +95,8 @@ load_rootfs: state/sdcard_fmt .PHONY: status status: - @echo '### STATUS REPORT' - @echo '# ENVIRONMENT' - state/gen - @echo '# TARGETS' - @ls state | awk '$$0 == "gen" || $$0 == "auto.mk" { next } { print }' + @echo 'ENVIRONMENT' + @state/gen | grep ':=' | sed -e 's/^\$$(eval / /' -e 's/)$$//' + @echo 'TARGETS' + @ls state | awk '$$0 == "gen" { next } { print }' | sed 's/^/ /' |