summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-02-05 16:50:08 +0100
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2012-02-05 16:50:08 +0100
commita3f1b37c8012272a25d651c3b76a056bb0d94c15 (patch)
treeaa0eb8c134e042b4179e23132d05e56f8eea65be
parentb2f2c033d907656ab6086ead06663184a73cf7eb (diff)
downloadembtoolkit-a3f1b37c8012272a25d651c3b76a056bb0d94c15.tar.gz
embtoolkit-a3f1b37c8012272a25d651c3b76a056bb0d94c15.tar.bz2
embtoolkit-a3f1b37c8012272a25d651c3b76a056bb0d94c15.tar.xz
Toolchain: linux headers: add linux-3.1.x series
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
-rw-r--r--kconfig/linux-kconfigs/linux-3.1.kconfig72
-rw-r--r--kconfig/linux.kconfig11
-rw-r--r--mk/linux.mk1
3 files changed, 81 insertions, 3 deletions
diff --git a/kconfig/linux-kconfigs/linux-3.1.kconfig b/kconfig/linux-kconfigs/linux-3.1.kconfig
new file mode 100644
index 0000000..320a3ce
--- /dev/null
+++ b/kconfig/linux-kconfigs/linux-3.1.kconfig
@@ -0,0 +1,72 @@
+################################################################################
+# Embtoolkit
+# Copyright(C) 2012 Abdoulaye Walsimou GAYE.
+#
+# 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 2 of the License, or
+# (at your option) any later version.
+#
+# 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 linux-3.1.kconfig
+# \brief linux v3.1.x series
+# \author Abdoulaye Walsimou GAYE <awg@embtoolkit.org>
+# \date February 2012
+################################################################################
+
+choice
+ prompt "Linux v3.1.x series exact version to use."
+ help
+ Linux v3.1.x series exact version to use.
+
+ config EMBTK_LINUX_VERSION_3_1_10
+ bool "linux-3.1.10"
+ config EMBTK_LINUX_VERSION_3_1_9
+ bool "linux-3.1.9"
+ config EMBTK_LINUX_VERSION_3_1_8
+ bool "linux-3.1.8"
+ config EMBTK_LINUX_VERSION_3_1_7
+ bool "linux-3.1.7"
+ config EMBTK_LINUX_VERSION_3_1_6
+ bool "linux-3.1.6"
+ config EMBTK_LINUX_VERSION_3_1_5
+ bool "linux-3.1.5"
+ config EMBTK_LINUX_VERSION_3_1_4
+ bool "linux-3.1.4"
+ config EMBTK_LINUX_VERSION_3_1_3
+ bool "linux-3.1.3"
+ config EMBTK_LINUX_VERSION_3_1_2
+ bool "linux-3.1.2"
+ config EMBTK_LINUX_VERSION_3_1_1
+ bool "linux-3.0.1"
+ config EMBTK_LINUX_VERSION_3_1
+ bool "linux-3.1"
+endchoice
+
+config EMBTK_LINUX_VERSION_STRING
+ string
+ default "3.1.10" if EMBTK_LINUX_VERSION_3_1_10
+ default "3.1.9" if EMBTK_LINUX_VERSION_3_1_9
+ default "3.1.8" if EMBTK_LINUX_VERSION_3_1_8
+ default "3.1.7" if EMBTK_LINUX_VERSION_3_1_7
+ default "3.1.6" if EMBTK_LINUX_VERSION_3_1_6
+ default "3.1.5" if EMBTK_LINUX_VERSION_3_1_5
+ default "3.1.4" if EMBTK_LINUX_VERSION_3_1_4
+ default "3.1.3" if EMBTK_LINUX_VERSION_3_1_3
+ default "3.1.2" if EMBTK_LINUX_VERSION_3_1_2
+ default "3.1.1" if EMBTK_LINUX_VERSION_3_1_1
+ default "3.1" if EMBTK_LINUX_VERSION_3_1
+
+config EMBTK_LINUX_MAJOR_VERSION_STRING
+ string
+ default "v3.0"
+
diff --git a/kconfig/linux.kconfig b/kconfig/linux.kconfig
index e62dfd7..69271c4 100644
--- a/kconfig/linux.kconfig
+++ b/kconfig/linux.kconfig
@@ -29,6 +29,10 @@ choice
Here you can choose which Linux kernel headers you
you want to use.
+ config EMBTK_LINUX_VERSION_3_1_X
+ bool "linux-3.1.x"
+ help
+ Use a linux-3.1.x version.
config EMBTK_LINUX_VERSION_3_0_X
bool "linux-3.0.x"
help
@@ -87,6 +91,10 @@ choice
Use a linux-2.6.27.x version.
endchoice
+if EMBTK_LINUX_VERSION_3_1_X
+source kconfig/linux-kconfigs/linux-3.1.kconfig
+endif
+
if EMBTK_LINUX_VERSION_3_0_X
source kconfig/linux-kconfigs/linux-3.0.kconfig
endif
@@ -156,6 +164,3 @@ config EMBTK_LINUX_HAVE_MIRROR_SITE
config EMBTK_LINUX_NEED_PATCH
bool
-config EMBTK_LINUX_PKG_IS_TARBZ2
- bool
- default y
diff --git a/mk/linux.mk b/mk/linux.mk
index 3318aa0..6ac9641 100644
--- a/mk/linux.mk
+++ b/mk/linux.mk
@@ -38,6 +38,7 @@ LINUX_SITE := $(call __LINUX_SITE)
LINUX_PACKAGE := linux-$(LINUX_VERSION).tar.bz2
LINUX_SRC_DIR := $(TOOLS_BUILD)/linux-$(LINUX_VERSION)
LINUX_BUILD_DIR := $(TOOLS_BUILD)/linux-$(LINUX_VERSION)
+LINUX_HEADERS_KCONFIGS_NAME := LINUX
linux_headers_install:
$(Q)test -e $(LINUX_BUILD_DIR)/.headers_installed || \