summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-10-06 19:14:02 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-10-06 19:14:02 +0200
commita82460f03be841c19074d10a4bc0df9c8f2907b3 (patch)
tree4e8c85907bdfd9d770eb1f1892b24106d90f86eb /mk
parent7e248f0cbb04d705cbaf8bc180098bb59e67c4c6 (diff)
downloadembtoolkit-a82460f03be841c19074d10a4bc0df9c8f2907b3.tar.gz
embtoolkit-a82460f03be841c19074d10a4bc0df9c8f2907b3.tar.bz2
embtoolkit-a82460f03be841c19074d10a4bc0df9c8f2907b3.tar.xz
Build system: move define of embtk_os and embtk_clib in targetsys.mk
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/target-mcu.mk24
-rw-r--r--mk/targetsys.mk31
2 files changed, 41 insertions, 14 deletions
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 <awg@embtoolkit.org>.
#
# 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 <http://www.gnu.org/licenses/>.
#
-# 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 <awg@embtoolkit.org>
# \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 <awg@embtoolkit.org>.
+#
+# 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 <http://www.gnu.org/licenses/>.
+#
+################################################################################
+#
+# \file targetsys.mk
+# \brief This file defines system environment of the target
+# \brief (os, clib, etc.).
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \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)