From: Daniel Mack <daniel@caiaq.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Makefile: allow multiple values for TARGET_SKELETON
Date: Mon, 8 Jun 2009 16:57:59 +0200 [thread overview]
Message-ID: <1244473080-8195-1-git-send-email-daniel@caiaq.de> (raw)
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
next reply other threads:[~2009-06-08 14:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-08 14:57 Daniel Mack [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1244473080-8195-1-git-send-email-daniel@caiaq.de \
--to=daniel@caiaq.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox