Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] Makefile: allow multiple values for TARGET_SKELETON
@ 2009-06-08 14:57 Daniel Mack
  2009-06-08 14:58 ` [Buildroot] [PATCH 2/2] Add target support for MXC based devices Daniel Mack
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Mack @ 2009-06-08 14:57 UTC (permalink / raw)
  To: buildroot

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@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

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-06-10 18:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-08 14:57 [Buildroot] [PATCH 1/2] Makefile: allow multiple values for TARGET_SKELETON Daniel Mack
2009-06-08 14:58 ` [Buildroot] [PATCH 2/2] Add target support for MXC based devices Daniel Mack
2009-06-08 15:07   ` Peter Korsgaard
2009-06-08 15:26     ` Daniel Mack
2009-06-08 18:07       ` Peter Korsgaard
2009-06-10  7:59         ` Daniel Mack
2009-06-10 18:01           ` Peter Korsgaard
2009-06-08 15:20   ` Bernhard Reutner-Fischer
2009-06-08 18:05     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox