Patchwork [2/4] Support .dotfiles in / being copied to the TARGET

login
register
mail settings
Submitter Tilman Keskinöz
Date March 25, 2013, 2:48 p.m.
Message ID <1364222893-23858-2-git-send-email-arved@arved.at>
Download mbox | patch
Permalink /patch/230731/
State Accepted
Commit 1cd3f992fb3659aacbb0cdd3ed64347a37569891
Headers show

Comments

Tilman Keskinöz - March 25, 2013, 2:48 p.m.
From: Tilman Keskinöz <arved@arved.at>

An example is .init_enable_core, to enable coredumps in busybox

Signed-off-by: Tilman Keskinöz <arved@arved.at>
---
 Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Peter Korsgaard - March 25, 2013, 10:44 p.m.
>>>>> "arved" == arved  <arved@arved.at> writes:

 arved> From: Tilman Keskinöz <arved@arved.at>
 arved> An example is .init_enable_core, to enable coredumps in busybox
 arved> Signed-off-by: Tilman Keskinöz <arved@arved.at>
 arved> ---
 arved>  Makefile |    2 +-
 arved>  1 file changed, 1 insertion(+), 1 deletion(-)

 arved> diff --git a/Makefile b/Makefile
 arved> index f1c98aa..62311ed 100644
 arved> --- a/Makefile
 arved> +++ b/Makefile
 arved> @@ -431,7 +431,7 @@ $(BUILD_DIR)/.root:
 arved>  	mkdir -p $(TARGET_DIR)
 arved>  	if ! [ -d "$(TARGET_DIR)/bin" ]; then \
 arved>  		if [ -d "$(TARGET_SKELETON)" ]; then \
 arved> -			cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
 arved> +			rsync -au $(TARGET_SKELETON)/ $(TARGET_DIR)/; \

Committed, thanks.

Patch

diff --git a/Makefile b/Makefile
index f1c98aa..62311ed 100644
--- a/Makefile
+++ b/Makefile
@@ -431,7 +431,7 @@  $(BUILD_DIR)/.root:
 	mkdir -p $(TARGET_DIR)
 	if ! [ -d "$(TARGET_DIR)/bin" ]; then \
 		if [ -d "$(TARGET_SKELETON)" ]; then \
-			cp -fa $(TARGET_SKELETON)/* $(TARGET_DIR)/; \
+			rsync -au $(TARGET_SKELETON)/ $(TARGET_DIR)/; \
 		fi; \
 	fi
 	cp support/misc/target-dir-warning.txt $(TARGET_DIR_WARNING_FILE)