Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Markus Heidelberg <markus.heidelberg@web.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Makefile: also copy top level hidden files to the rootfs
Date: Sat, 9 Aug 2008 21:01:16 +0200	[thread overview]
Message-ID: <200808092101.16455.markus.heidelberg@web.de> (raw)

I'm not sure about the filename pattern .[^.]*
Is it dependent on the shell, does this work with others than bash? Or should
there be another solution?


Makefile: also copy top level hidden files to the rootfs

Hidden files and directories that are located directly under / haven't been
copied to the target rootfs. But for example you may need the shell startup
file /.profile when your home directory is set to /
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 1f9e7f6..54462b6 100644
--- a/Makefile
+++ b/Makefile
@@ -319,7 +319,7 @@ $(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)/; \
+			cp -fa $(TARGET_SKELETON)/* $(TARGET_SKELETON)/.[^.]* $(TARGET_DIR)/; \
 		fi; \
 		touch $(STAGING_DIR)/.fakeroot.00000; \
 	fi

                 reply	other threads:[~2008-08-09 19:01 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200808092101.16455.markus.heidelberg@web.de \
    --to=markus.heidelberg@web.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