summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2015-01-01 15:21:38 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2015-01-01 15:21:38 +0100
commit26e9dd7eb842d76d89f1061413e8c615738b7c19 (patch)
treebdb655a48d87e71e8ad4f2e5b5b3b4ed008cd325
parentb8ad1aa4a631198c3b2136e5a8e912d9f64a12e7 (diff)
downloadembtoolkit-26e9dd7eb842d76d89f1061413e8c615738b7c19.tar.gz
embtoolkit-26e9dd7eb842d76d89f1061413e8c615738b7c19.tar.bz2
embtoolkit-26e9dd7eb842d76d89f1061413e8c615738b7c19.tar.xz
Toolchain: linux: use buildir based on embtk_pkg_srcdir value for linux
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--core/toolchain/linux/common.mk3
-rw-r--r--core/toolchain/linux/linux.mk2
2 files changed, 3 insertions, 2 deletions
diff --git a/core/toolchain/linux/common.mk b/core/toolchain/linux/common.mk
index 5a40c30..61c8917 100644
--- a/core/toolchain/linux/common.mk
+++ b/core/toolchain/linux/common.mk
@@ -36,7 +36,8 @@ LINUX_VERSION := $(call embtk_pkg_version,linux)
LINUX_SITE := $(pembtk_linux_site)
LINUX_PACKAGE := linux-$(LINUX_VERSION).tar.xz
LINUX_SRC_DIR := $(embtk_toolsb)/linux-$(LINUX_VERSION)
-LINUX_BUILD_DIR := $(embtk_toolsb)/linux-$(LINUX_VERSION)
+LINUX_BUILD_DIR := $(call embtk_pkg_srcdir,linux)
+
LINUX_KEEP_SRC_DIR := $(CONFIG_EMBTK_BUILD_LINUX_KERNEL)
#
diff --git a/core/toolchain/linux/linux.mk b/core/toolchain/linux/linux.mk
index b8dec08..1fe8fcc 100644
--- a/core/toolchain/linux/linux.mk
+++ b/core/toolchain/linux/linux.mk
@@ -34,7 +34,7 @@ endif
pembtk_linux_dotconfig_f := $(call embtk_abspath,$(CONFIG_EMBTK_LINUX_DOTCONFIG))
pembtk_linux_extsrc-y := $(CONFIG_EMBTK_LINUX_BUILD_USE_EXTSRC)
pembtk_linux_extsrcdir := $(call embtk_abspath,$(CONFIG_EMBTK_LINUX_BUILD_EXTSRC))
-pembtk_linux_srcdir := $(or $(pembtk_linux_extsrcdir),$(LINUX_SRC_DIR))
+pembtk_linux_srcdir := $(or $(pembtk_linux_extsrcdir),$(LINUX_BUILD_DIR))
pembtk_linux_modules-y := $(shell grep MODULES=y "$(pembtk_linux_dotconfig_f)" 2>/dev/null)
pembtk_linux_extracmd := $(call embtk_uquote,$(CONFIG_EMBTK_LINUX_BUILD_EXTRACMD))
pembtk_linux_extracmd := $(filer-out modules_install,$(pembtk_linux_extracmd))