summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-06-18 20:30:26 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-06-18 20:30:26 +0200
commitdc9f8ada3001f71533e9c27674fc1583d3f1e56b (patch)
tree0922adee83f19bef168d8ec336376b21808d407c
parentc266f9fbd1d77a985dcbc6fa8bdbb02eecd0519e (diff)
downloadembtoolkit-dc9f8ada3001f71533e9c27674fc1583d3f1e56b.tar.gz
embtoolkit-dc9f8ada3001f71533e9c27674fc1583d3f1e56b.tar.bz2
embtoolkit-dc9f8ada3001f71533e9c27674fc1583d3f1e56b.tar.xz
Embtk: install linux headers in host-tools
Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
-rw-r--r--mk/kernel-headers.mk2
-rw-r--r--mk/toolchain.mk8
2 files changed, 6 insertions, 4 deletions
diff --git a/mk/kernel-headers.mk b/mk/kernel-headers.mk
index 2bafc87..6616028 100644
--- a/mk/kernel-headers.mk
+++ b/mk/kernel-headers.mk
@@ -32,6 +32,8 @@ kernel-headers_install: download_linux $(LINUX_BUILD_DIR)/.decompressed
PATH=$(PATH):$(TOOLS)/bin/ $(MAKE) -C $(LINUX_BUILD_DIR) \
headers_install ARCH=$(LINUX_ARCH) CROSS_COMPILE=$(STRICT_GNU_TARGET)- \
INSTALL_HDR_PATH=$(SYSROOT)/usr
+ $(MAKE) -C $(LINUX_BUILD_DIR) distclean
+ $(MAKE) -C $(LINUX_BUILD_DIR) headers_install INSTALL_HDR_PATH=$(HOSTTOOLS)/usr
download_linux:
@test -e $(DOWNLOAD_DIR)/$(LINUX_PACKAGE) || \
diff --git a/mk/toolchain.mk b/mk/toolchain.mk
index 6908d52..83a32a9 100644
--- a/mk/toolchain.mk
+++ b/mk/toolchain.mk
@@ -49,10 +49,10 @@ include $(EMBTK_ROOT)/mk/kernel-headers.mk
include $(EMBTK_ROOT)/mk/eglibc.mk
#targets
-buildtoolchain: mkinitialpath ccachehost_install gmphost_install \
- mpfrhost_install binutils_install gcc1_install \
- kernel-headers_install eglibc-headers_install \
- gcc2_install eglibc_install gcc3_install symlink_tools
+buildtoolchain: mkinitialpath kernel-headers_install ccachehost_install \
+ gmphost_install mpfrhost_install binutils_install \
+ gcc1_install eglibc-headers_install gcc2_install \
+ eglibc_install gcc3_install symlink_tools
$(call EMBTK_GENERIC_MESSAGE,"You successfully build a toolchain for $(STRICT_GNU_TARGET) !!!")
symlink_tools:
@cd $(TOOLS)/bin/; export TOOLS_LIST="`ls`"; \