aboutsummaryrefslogtreecommitdiffstats
path: root/include/quilt.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-04-28 22:01:14 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-04-28 22:01:14 +0000
commit2448cb8a1587da880c525f9bd7e8c029bb56f81f (patch)
tree7503cac1d598858ea363c10317735a914074ec25 /include/quilt.mk
parent19cb0b369307d45b9fc49ca1e6ad3762e95109d8 (diff)
downloadupstream-2448cb8a1587da880c525f9bd7e8c029bb56f81f.tar.gz
upstream-2448cb8a1587da880c525f9bd7e8c029bb56f81f.tar.bz2
upstream-2448cb8a1587da880c525f9bd7e8c029bb56f81f.zip
add optional version suffix to kernel files/ directories
SVN-Revision: 10972
Diffstat (limited to 'include/quilt.mk')
-rw-r--r--include/quilt.mk7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/quilt.mk b/include/quilt.mk
index 95f81e7094..c310fd99ac 100644
--- a/include/quilt.mk
+++ b/include/quilt.mk
@@ -12,6 +12,7 @@ ifeq ($(TARGET_BUILD),1)
PKG_BUILD_DIR:=$(LINUX_DIR)
endif
PATCH_DIR?=./patches
+FILES_DIR?=./files
ifeq ($(MAKECMDGOALS),refresh)
override QUILT=1
@@ -67,9 +68,9 @@ endef
define Kernel/Patch/Default
$(if $(QUILT),rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches)
- if [ -d $(GENERIC_PLATFORM_DIR)/files ]; then $(CP) $(GENERIC_PLATFORM_DIR)/files/* $(LINUX_DIR)/; fi
- if [ -d ./files ]; then \
- $(CP) ./files/* $(LINUX_DIR)/; \
+ if [ -d $(GENERIC_FILES_DIR) ]; then $(CP) $(GENERIC_FILES_DIR)/* $(LINUX_DIR)/; fi
+ if [ -d $(FILES_DIR) ]; then \
+ $(CP) $(FILES_DIR)/* $(LINUX_DIR)/; \
find $(LINUX_DIR)/ -name \*.rej | xargs rm -f; \
fi
$(call PatchDir,$(GENERIC_PATCH_DIR),generic/)