[PATCH] sub.in/stage2: Added copy-tree to stage2
Konstantin A. Lepikhov
lakostis at altlinux.ru
Mon May 23 12:10:22 MSK 2016
stage2 only allows to run certain scripts and install packages, but
sometimes one need just to copy something to stage2 (like stage1 does).
How to use:
put files under ./files directory with the same structure as on
resulting image.
---
sub.in/stage2/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/sub.in/stage2/Makefile b/sub.in/stage2/Makefile
index 9fccca9..f124dfc 100644
--- a/sub.in/stage2/Makefile
+++ b/sub.in/stage2/Makefile
@@ -13,6 +13,10 @@ include $(GLOBAL_BUILDDIR)/distcfg.mk
include $(GLOBAL_BUILDDIR)/functions.mk
include $(MKIMAGE_PREFIX)/config.mk
+COPY_TREE = ./files
+
+include $(MKIMAGE_PREFIX)/targets.mk
+
# this might have been prepared
# by features.in/stage2/stage1/scripts.d/03-test-kernel
-include $(GLOBAL_BUILDDIR)/squashcfg.mk
@@ -57,7 +61,7 @@ include $(MKIMAGE_PREFIX)/targets.mk
GLOBAL_CLEANUP_PACKAGES := $(CLEANUP_PACKAGES)
all: | $(GLOBAL_DEBUG) \
- build-image run-image-scripts run-scripts pack-image \
+ build-image run-image-scripts copy-tree run-scripts pack-image \
$(GLOBAL_CLEAN_WORKDIR)
# dummy
--
2.7.4
--Kj7319i9nmIyA2yE--
More information about the devel-distro
mailing list