mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 19:19:52 +02:00
Minor kernel build changes:
Change '[ -d ... ] && cmd' to 'if [ -d ... ]; then cmd; fi' to avoid make errors if the condition is false If $(PLATFORM_DIR)/files exists, copy it into the kernel tree on prepare. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6263 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c69b535a6b
commit
85dc32ec9f
@ -69,8 +69,9 @@ endif
|
|||||||
|
|
||||||
define Kernel/Prepare/Default
|
define Kernel/Prepare/Default
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
|
bzcat $(DL_DIR)/$(LINUX_SOURCE) | tar -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
[ -d $(GENERIC_PLATFORM_DIR)/patches ] && $(PATCH) $(LINUX_DIR) $(GENERIC_PLATFORM_DIR)/patches
|
if [ -d $(GENERIC_PLATFORM_DIR)/patches ]; then $(PATCH) $(LINUX_DIR) $(GENERIC_PLATFORM_DIR)/patches; fi
|
||||||
[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches
|
if [ -d ./files ]; then $(CP) ./files/* $(LINUX_DIR)/; fi
|
||||||
|
if [ -d ./patches ]; then $(PATCH) $(LINUX_DIR) ./patches; fi
|
||||||
endef
|
endef
|
||||||
define Kernel/Prepare
|
define Kernel/Prepare
|
||||||
$(call Kernel/Prepare/Default)
|
$(call Kernel/Prepare/Default)
|
||||||
|
Loading…
Reference in New Issue
Block a user