summaryrefslogtreecommitdiff
path: root/mk/image.mk
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2015-02-24 12:46:47 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-02-28 10:14:20 +0100
commita1f303c316be60e5a282a6a6a27726152b529a51 (patch)
tree61dc6385c385b37da1c790ad953a3862b3c95887 /mk/image.mk
parentf2179916b592f8a0a1feb89f992e1d496f0d62cb (diff)
extend KERNEL_MAKE_OPTS by the target directory
This change is straightforward but in toolchain/kernel-headers/Makefile which seems to be called before ${BUILD_DIR}/linux symlink exists. Therefore define LINUX_DIR to the correct value in between inclusion of vars.mk (through rules.mk) and kernel-vars.mk.
Diffstat (limited to 'mk/image.mk')
-rw-r--r--mk/image.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/image.mk b/mk/image.mk
index bd7d66f96..1563c2a63 100644
--- a/mk/image.mk
+++ b/mk/image.mk
@@ -203,7 +203,7 @@ ifeq ($(ADK_KERNEL_COMP_BZIP2),y)
echo "CONFIG_INITRAMFS_COMPRESSION_BZIP2=y" >> ${LINUX_DIR}/.config
endif
@-rm $(LINUX_DIR)/usr/initramfs_data.cpio* 2>/dev/null
- env $(KERNEL_MAKE_ENV) $(MAKE) -C $(LINUX_DIR) $(KERNEL_MAKE_OPTS) \
+ env $(KERNEL_MAKE_ENV) $(MAKE) $(KERNEL_MAKE_OPTS) \
-j${ADK_MAKE_JOBS} $(ADK_TARGET_KERNEL) $(MAKE_TRACE)
@cp $(KERNEL) $(FW_DIR)/$(TARGET_KERNEL)