diff options
author | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-13 15:36:37 +0200 |
---|---|---|
committer | Abdoulaye Walsimou Gaye <walsimou@walsimou.com> | 2009-05-13 15:38:30 +0200 |
commit | b41f872d463573a15c43fb449bb7240c721f4c7c (patch) | |
tree | b9d6c419ae44b619419cb707d3ce7993e7cd7d1c | |
parent | fc6512f3d4172ffe0780c1cc0707a60978728560 (diff) | |
download | embtoolkit-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>
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | mk/macros.mk | 39 |
2 files changed, 45 insertions, 1 deletions
@@ -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 diff --git a/mk/macros.mk b/mk/macros.mk new file mode 100644 index 0000000..9a8d9bd --- /dev/null +++ b/mk/macros.mk @@ -0,0 +1,39 @@ +######################################################################################### +# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved. +# +# This program is free software; you can distribute it and/or modify it +# under the terms of the GNU General Public License +# (Version 2 or later) published by the Free Software Foundation. +# +# This program is distributed in the hope it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with this program; if not, write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. +######################################################################################### +# +# \file macros.mk +# \brief macros.mk of Embtoolkit +# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com> +# \date May 2009 +######################################################################################### + +#Decompress message +#unsage $(call DECOMPRESS_MESSAGE,$(NAME_PACKAGE)) +define DECOMPRESS_MESSAGE + @echo "########################### EmbToolkit ###########################" + @echo "Decompressing $(1)" + @echo "##################################################################" +endef + +#Configure message +#unsage $(call CONFIGURE_MESSAGE,$(NAME_PACKAGE)) +define CONFIGURE_MESSAGE + @echo "########################### EmbToolkit ###########################" + @echo "configure $(1)" + @echo "##################################################################" +endef |