diff options
-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 |