[Buildroot] [PATCH] customize: fix copy paths

luca at lucaceresoli.net luca at lucaceresoli.net
Wed May 5 22:16:59 UTC 2010


From: Luca Ceresoli <luca at lucaceresoli.net>

customize.mk used to copy files with a wrong command, resulting in one
directory level in excess. For example, source/etc/myfile would have
produced /etc/etc/myfile in the target filesystem instead of /etc/myfile.
---
 package/customize/customize.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/customize/customize.mk b/package/customize/customize.mk
index 780e42b..d2b8518 100644
--- a/package/customize/customize.mk
+++ b/package/customize/customize.mk
@@ -11,7 +11,7 @@ $(BUILD_DIR)/.customize:
 	 /bin/ls -d * > $(BUILD_DIR)/series || \
 	 touch $(BUILD_DIR)/series )
 	for f in `cat $(BUILD_DIR)/series`; do \
-		cp -af $(CUST_DIR)/$$f $(TARGET_DIR)/$$f; \
+		cp -af $(CUST_DIR)/$$f $(TARGET_DIR); \
 	done
 	rm -f $(BUILD_DIR)/series
 	touch $@
-- 
1.5.4.3



More information about the buildroot mailing list