[Buildroot] [PATCH 1/2] Makefile: allow multiple values for TARGET_SKELETON
Daniel Mack
daniel at caiaq.de
Mon Jun 8 14:57:59 UTC 2009
For platforms that need to provide a target fs skeleton for some files,
multiple entries for the the variable TARGET_SKELETON are handy.
A platform code can then contain the target/generic/ skeleton and only
provide path to the delta files.
The only thing to take care for is that none of those file names
contains spaces, but that's condsidered evil anyway and should not
happen.
Signed-off-by: Daniel Mack <daniel at caiaq.de>
---
Makefile | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 76dd2cd..2edde72 100644
--- a/Makefile
+++ b/Makefile
@@ -329,9 +329,9 @@ endif
$(PROJECT_BUILD_DIR)/.root:
mkdir -p $(TARGET_DIR)
if ! [ -d "$(TARGET_DIR)/bin" ]; then \
- if [ -d "$(TARGET_SKELETON)" ]; then \
- cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
- fi; \
+ for dir in $(TARGET_SKELETON); do \
+ test -d $$dir && cp -fa $$dir/* $(TARGET_DIR)/; \
+ done; \
touch $(STAGING_DIR)/.fakeroot.00000; \
fi
-find $(TARGET_DIR) -type d -name CVS -o -name .svn -print0 | xargs -0 rm -rf
--
1.6.3.1
More information about the buildroot
mailing list