buildrootschalter/package/customize/customize.mk
Luca Ceresoli ea0695ff5e customize: fix copy paths
Closes #849, #1135

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.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2010-05-06 23:27:58 +02:00

33 lines
797 B
Makefile

#############################################################
#
# Any custom stuff you feel like doing....
#
#############################################################
CUST_DIR:=package/customize/source
$(BUILD_DIR)/.customize:
rm -f $(BUILD_DIR)/series
(cd $(CUST_DIR); \
/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); \
done
rm -f $(BUILD_DIR)/series
touch $@
customize: $(BUILD_DIR)/.customize
customize-clean:
rm -f $(BUILD_DIR)/.customize
.PHONY: customize
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(BR2_PACKAGE_CUSTOMIZE),y)
TARGETS+=customize
endif