summaryrefslogtreecommitdiff
path: root/kconfig
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-12 20:12:08 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-12 20:12:38 +0200
commit932197cf2955399f4bfe600b172e96f51c1f79a3 (patch)
tree8948646afc1223d4890c0cfbb89df2bfe9b1ea32 /kconfig
parent72fecb4f085d15a6a86ab32ccccbbbb574d9d5db (diff)
downloadembtoolkit-932197cf2955399f4bfe600b172e96f51c1f79a3.tar.gz
embtoolkit-932197cf2955399f4bfe600b172e96f51c1f79a3.tar.bz2
embtoolkit-932197cf2955399f4bfe600b172e96f51c1f79a3.tar.xz
Embtk: create general kconfig symbols for big/little endian
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'kconfig')
-rw-r--r--kconfig/arch-variant-arm.kconfig29
-rw-r--r--kconfig/arch-variant-mips.kconfig29
-rw-r--r--kconfig/arch.kconfig45
3 files changed, 60 insertions, 43 deletions
diff --git a/kconfig/arch-variant-arm.kconfig b/kconfig/arch-variant-arm.kconfig
index 1288e75..979612a 100644
--- a/kconfig/arch-variant-arm.kconfig
+++ b/kconfig/arch-variant-arm.kconfig
@@ -1,24 +1,25 @@
################################################################################
-# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2009-2010 Abdoulaye Walsimou GAYE. 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 free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# 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 arch-variant-arm.kconfig
# \brief ARM architecture kconfig options
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date August 2009
################################################################################
@@ -30,10 +31,12 @@ choice
config EMBTK_ARCH_ARM_LITTLE_ENDIAN
bool "armel: Little endian"
+ select EMBTK_TARGET_ARCH_LITTLE_ENDIAN
help
Your ARM MCU is little endian
config EMBTK_ARCH_ARM_BIG_ENDIAN
bool "armeb: Big endian"
+ select EMBTK_TARGET_ARCH_BIG_ENDIAN
help
Your ARM MCU is big endian
endchoice
diff --git a/kconfig/arch-variant-mips.kconfig b/kconfig/arch-variant-mips.kconfig
index cf312c4..bb35179 100644
--- a/kconfig/arch-variant-mips.kconfig
+++ b/kconfig/arch-variant-mips.kconfig
@@ -1,24 +1,25 @@
################################################################################
-# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2009-2010 Abdoulaye Walsimou GAYE. 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 free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# 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 arch-variant.kconfig
# \brief MIPS architecture kconfig options.
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date August 2009
################################################################################
@@ -123,5 +124,7 @@ endchoice
config EMBTK_ARCH_MIPS_BIG_ENDIAN
bool
+ select EMBTK_TARGET_ARCH_BIG_ENDIAN
config EMBTK_ARCH_MIPS_LITTLE_ENDIAN
bool
+ select EMBTK_TARGET_ARCH_LITTLE_ENDIAN
diff --git a/kconfig/arch.kconfig b/kconfig/arch.kconfig
index 610b40e..ad4acd3 100644
--- a/kconfig/arch.kconfig
+++ b/kconfig/arch.kconfig
@@ -1,27 +1,27 @@
-#########################################################################################
-# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
-# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
-# For Copyrright from linux kernel's build/configure system, see their source code
+################################################################################
+# Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# Copyright(C) 2009-2010 Abdoulaye Walsimou GAYE. 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 free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
#
-# 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, write to the Free Software Foundation, Inc.,
-# 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
-#########################################################################################
+# 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 arch.kconfig
# \brief arch.kconfig of Embtoolkit
-# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
# \date May 2009
-#########################################################################################
+################################################################################
choice
prompt "Architecture"
@@ -76,3 +76,14 @@ config EMBTK_64BITS_FS_COMPAT32
help
we will build 64bits filesystem layout, with 32 compatibility
+config EMBTK_TARGET_ARCH_LITTLE_ENDIAN
+ bool
+ depends on !EMBTK_TARGET_ARCH_BIG_ENDIAN
+ help
+ Little endian target
+
+config EMBTK_TARGET_ARCH_BIG_ENDIAN
+ bool
+ depends on !EMBTK_TARGET_ARCH_LITTLE_ENDIAN
+ help
+ Big endian target