base-files: Add additional base-files search paths
authorHamish Guthrie <hcg@openwrt.org>
Mon, 4 May 2009 12:39:21 +0000 (12:39 +0000)
committerHamish Guthrie <hcg@openwrt.org>
Mon, 4 May 2009 12:39:21 +0000 (12:39 +0000)
SVN-Revision: 15583

package/base-files/Makefile

index 5578c90da8116854f4e122bf434b0aa531020637..c47a0f8ba4cb3a40923756dff9a8b5ebee9e2bdb 100644 (file)
@@ -148,12 +148,18 @@ define Package/base-files$(TARGET)/install
        if [ -d $(PLATFORM_DIR)/base-files-$(PROFILE)/. ]; then \
                $(CP) $(PLATFORM_DIR)/base-files-$(PROFILE)/* $(1)/; \
        fi
+       if [ -d $(PLATFORM_DIR)/$(PROFILE)/base-files/. ]; then \
+               $(CP) $(PLATFORM_DIR)/$(PROFILE)/base-files/* $(1)/; \
+       fi
        $(if $(filter-out $(PLATFORM_DIR),$(PLATFORM_SUBDIR)), \
                if [ -d $(PLATFORM_SUBDIR)/base-files/. ]; then \
                        $(CP) $(PLATFORM_SUBDIR)/base-files/* $(1)/; \
                fi; \
                if [ -d $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/. ]; then \
                        $(CP) $(PLATFORM_SUBDIR)/base-files-$(PROFILE)/* $(1)/; \
+               fi; \
+               if [ -d $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/. ]; then \
+                       $(CP) $(PLATFORM_SUBDIR)/$(PROFILE)/base-files/* $(1)/; \
                fi \
        )
 # Form valid /etc/shadow entries, by copying the user:pw pairs