allow people to add files to the rootfs by putting them in $(TOPDIR)/files/
[openwrt.org/openwrt.git] / package / Makefile
blob:a/package/Makefile -> blob:b/package/Makefile
--- a/package/Makefile
+++ b/package/Makefile
@@ -55,6 +55,9 @@
 install:
 	rm -rf $(BUILD_DIR)/root
 	$(MAKE) install-targets
+	@if [ -d $(TOPDIR)/files ]; then \
+		$(CP) $(TOPDIR)/files/. $(BUILD_DIR)/root; \
+	fi
 	@( \
 		cd $(BUILD_DIR)/root; \
 		for script in ./etc/init.d/*; do \

comments