X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=include%2Fquilt.mk;h=d3233d823895cbcd06a3e742bad047923f507d37;hb=018a28f15805f8c1e3635314f0f96538a2912a5c;hp=c569231173ed63cc0ab0890ed330a7c0e2e524fc;hpb=79670e1e13de9f49a610f903feaedc3e8f60d632;p=openwrt-10.03%2F.git diff --git a/include/quilt.mk b/include/quilt.mk index c56923117..d3233d823 100644 --- a/include/quilt.mk +++ b/include/quilt.mk @@ -66,9 +66,10 @@ define Build/Patch/Default $(call PatchDir,$(PATCH_DIR),) endef +kernel_files=$(foreach fdir,$(GENERIC_FILES_DIR) $(FILES_DIR),$(fdir)/.) define Kernel/Patch/Default rm -rf $(PKG_BUILD_DIR)/patches; mkdir -p $(PKG_BUILD_DIR)/patches - $(CP) $(foreach fdir,$(GENERIC_FILES_DIR) $(FILES_DIR),$(fdir)/.) $(LINUX_DIR)/ + $(if $(kernel_files),$(CP) $(kernel_files) $(LINUX_DIR)/) find $(LINUX_DIR)/ -name \*.rej -or -name \*.orig | $(XARGS) rm -f $(call PatchDir,$(GENERIC_PATCH_DIR),generic/) $(call PatchDir,$(PATCH_DIR),platform/)