From a82460f03be841c19074d10a4bc0df9c8f2907b3 Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Sat, 6 Oct 2012 19:14:02 +0200 Subject: Build system: move define of embtk_os and embtk_clib in targetsys.mk Signed-off-by: Abdoulaye Walsimou Gaye --- mk/target-mcu.mk | 24 ++++++++++-------------- mk/targetsys.mk | 31 +++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 14 deletions(-) create mode 100644 mk/targetsys.mk (limited to 'mk') diff --git a/mk/target-mcu.mk b/mk/target-mcu.mk index 0113532..2cb5c41 100644 --- a/mk/target-mcu.mk +++ b/mk/target-mcu.mk @@ -1,31 +1,27 @@ ################################################################################ # Embtoolkit -# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE. +# Copyright(C) 2009-2012 Abdoulaye Walsimou GAYE . # # 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. +# This program is distributed in the hope that 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, see . # -# 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 target_mcu.mk -# \brief target_mcu.mk of Embtoolkit. Here we define LINUX_ARCH, -# \brief GNU_ARCH, GNU_TARGET and EMBTK_OS +# \file target-mcu.mk +# \brief target-mcu.mk of Embtoolkit. # \author Abdoulaye Walsimou GAYE # \date May 2009 ################################################################################ -embtk_os-$(CONFIG_EMBTK_OS_LINUX) := linux -embtk_os := $(or $(embtk_os-y),invalid-os) - # ARM ifeq ($(CONFIG_EMBTK_ARCH_ARM),y) include $(EMBTK_ROOT)/mk/arch/arm/arm.mk diff --git a/mk/targetsys.mk b/mk/targetsys.mk new file mode 100644 index 0000000..e5980cc --- /dev/null +++ b/mk/targetsys.mk @@ -0,0 +1,31 @@ +################################################################################ +# Embtoolkit +# Copyright(C) 2012 Abdoulaye Walsimou GAYE . +# +# 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 that 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, see . +# +################################################################################ +# +# \file targetsys.mk +# \brief This file defines system environment of the target +# \brief (os, clib, etc.). +# \author Abdoulaye Walsimou GAYE +# \date October 2012 +################################################################################ + +embtk_os-$(CONFIG_EMBTK_OS_LINUX) := linux +embtk_os := $(or $(embtk_os-y),invalid-os) + +embtk_clib-$(CONFIG_EMBTK_CLIB_EGLIBC) := eglibc +embtk_clib-$(CONFIG_EMBTK_CLIB_UCLIBC) := uclibc +embtk_clib := $(or $(embtk_clib-y),invalid-clib) -- cgit v1.2.3