board/common: Move README.md installation to separate make target

This commit is contained in:
Tobias Waldekranz
2025-12-03 16:46:11 +01:00
parent 94f5463504
commit 696d41d263
5 changed files with 25 additions and 6 deletions
+1
View File
@@ -5,6 +5,7 @@ source "$BR2_EXTERNAL_INFIX_PATH/board/common/image/image-itb-aux/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/board/common/image/image-itb-qcow/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/board/common/image/image-itb-gns3a/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/board/common/image/image-itb-rauc/Config.in"
source "$BR2_EXTERNAL_INFIX_PATH/board/common/image/image-readme/Config.in"
endmenu
@@ -0,0 +1,6 @@
config IMAGE_README
bool "Install README.md in images"
help
Install a README.md with useful information about getting
started with Infix in the images directory (thereby also
including it in the resulting release tarball).
@@ -0,0 +1,18 @@
################################################################################
#
# image-readme
#
################################################################################
IMAGE_README_DIR := $(pkgdir)
image-readme: $(BINARIES_DIR)/README.md
$(BINARIES_DIR)/README.md: $(IMAGE_README_DIR)/README.md
@$(call IXMSG,"Installing README.md")
@mkdir -p $(BINARIES_DIR)
@cp $< $@
ifeq ($(IMAGE_README),y)
TARGETS_ROOTFS += image-readme
endif
-6
View File
@@ -1,7 +1 @@
#!/bin/sh
# Only for regular builds, not bootloader-only builds
if [ "$BR2_TARGET_ROOTFS_SQUASHFS" = "y" ]; then
# Quick intro for beginners, with links to more information
cp "$BR2_EXTERNAL_INFIX_PATH/board/common/README.txt" "$BINARIES_DIR/"
fi