summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-13 15:36:37 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-05-13 15:38:30 +0200
commitb41f872d463573a15c43fb449bb7240c721f4c7c (patch)
treeb9d6c419ae44b619419cb707d3ce7993e7cd7d1c /Makefile
parentfc6512f3d4172ffe0780c1cc0707a60978728560 (diff)
downloadembtoolkit-b41f872d463573a15c43fb449bb7240c721f4c7c.tar.gz
embtoolkit-b41f872d463573a15c43fb449bb7240c721f4c7c.tar.bz2
embtoolkit-b41f872d463573a15c43fb449bb7240c721f4c7c.tar.xz
Determinate on which host we are and add some macros
This patch modifies the main Makefile in order to determinate on which host we are when we build the toolchain. It also introduce a new file mk/macros.mk which will define some usefull macros Signed-off-by: Abdoulaye Walsimou Gaye <walsimou@walsimou.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 40f9706..f070987 100644
--- a/Makefile
+++ b/Makefile
@@ -37,6 +37,10 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
else echo sh; fi ; fi)
export CONFIG_SHELL
+HOST_ARCH :=$(shell uname -m)-unknown-linux-gnu
+HOST_BUILD := $(HOST_ARCH)
+export HOST_ARCH HOST_BUILD
+
HOSTCC = gcc
HOSTCXX = g++
HOSTCFLAGS = -Wall
@@ -63,7 +67,7 @@ EMBTK_BUILD :=
endif
All: $(EMBTK_BUILD)
-
+
xconfig: basic
$(Q)$(MAKE) -f scripts/Makefile.build obj=scripts/kconfig xconfig
@@ -80,6 +84,7 @@ clean: rmallpath
startbuild: mkinitialpath buildtoolchain buildrootfs
+include mk/macros.mk
include mk/target_mcu.mk
include mk/initialpath.mk
include mk/toolchain.mk