summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-23 18:54:49 +0200
committerAbdoulaye Walsimou Gaye <walsimou@walsimou.com>2009-07-23 18:54:49 +0200
commitcafe27ded7fe39fd56b3c88198d2fba7007fca5d (patch)
treedb5309695ce4041ad52499a175745d27f4a47e0e
parent7fa3cdf7ce1132d69e209f289b390fe4f0afad53 (diff)
downloadembtoolkit-cafe27ded7fe39fd56b3c88198d2fba7007fca5d.tar.gz
embtoolkit-cafe27ded7fe39fd56b3c88198d2fba7007fca5d.tar.bz2
embtoolkit-cafe27ded7fe39fd56b3c88198d2fba7007fca5d.tar.xz
Toolchain: Allow users to specify where to download linux sources
-rw-r--r--kconfig/linux.kconfig40
-rw-r--r--mk/kernel-headers.mk10
2 files changed, 34 insertions, 16 deletions
diff --git a/kconfig/linux.kconfig b/kconfig/linux.kconfig
index ea01493..f76ef7d 100644
--- a/kconfig/linux.kconfig
+++ b/kconfig/linux.kconfig
@@ -1,4 +1,4 @@
-#########################################################################################
+################################################################################
# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
#
@@ -14,32 +14,46 @@
# 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 linux.kconfig
# \brief linux.kconfig of Embtoolkit
# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# \date May 2009
-#########################################################################################
+################################################################################
choice
prompt "Linux kernel headers you wish to use"
- default EMBTK_LINUX_VERSION_2_6_29_2
+ default EMBTK_LINUX_VERSION_2_6_29_X
help
Here you can choose which Linux kernel headers you
you want to use.
- config EMBTK_LINUX_VERSION_2_6_29_2
- bool "linux-2.6.29.2"
- config EMBTK_LINUX_VERSION_2_6_29_1
- bool "linux-2.6.29.1"
- config EMBTK_LINUX_VERSION_2_6_29
- bool "linux-2.6.29"
+ config EMBTK_LINUX_VERSION_2_6_30_X
+ bool "linux-2.6.30.x"
+ config EMBTK_LINUX_VERSION_2_6_29_X
+ bool "linux-2.6.29.x"
+ config EMBTK_LINUX_VERSION_2_6_28_X
+ bool "linux-2.6.28.x"
+ config EMBTK_LINUX_VERSION_2_6_27_X
+ bool "linux-2.6.27.x"
endchoice
+config EMBTK_LINUX_HAVE_MIRROR
+ bool "Use a linux mirror"
+ help
+ specify an alternate location where to download linux sources
+config EMBTK_LINUX_HAVE_MIRROR_SITE
+ depends on EMBTK_LINUX_HAVE_MIRROR
+ string "Mirror site"
+ default "ftp://ftp.free.fr/pub/linux/kernel/v2.6"
+ help
+ specify an alternate location where to download linux sources
+
config EMBTK_LINUX_VERSION_STRING
string
- default "2.6.29.2" if EMBTK_LINUX_VERSION_2_6_29_2
- default "2.6.29.1" if EMBTK_LINUX_VERSION_2_6_29_1
- default "2.6.29" if EMBTK_LINUX_VERSION_2_6_29
+ default "2.6.30.2" if EMBTK_LINUX_VERSION_2_6_30_X
+ default "2.6.29.6" if EMBTK_LINUX_VERSION_2_6_29_X
+ default "2.6.28.10" if EMBTK_LINUX_VERSION_2_6_28_X
+ default "2.6.27.19" if EMBTK_LINUX_VERSION_2_6_27_X
diff --git a/mk/kernel-headers.mk b/mk/kernel-headers.mk
index 6616028..d632050 100644
--- a/mk/kernel-headers.mk
+++ b/mk/kernel-headers.mk
@@ -1,4 +1,4 @@
-#########################################################################################
+################################################################################
# GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# Copyright(C) 2009 GAYE Abdoulaye Walsimou. All rights reserved.
#
@@ -14,16 +14,20 @@
# 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 kernel-headers.mk
# \brief kernel-headers.mk of Embtoolkit
# \author GAYE Abdoulaye Walsimou, <walsimou@walsimou.com>
# \date May 2009
-#########################################################################################
+################################################################################
LINUX_VERSION := $(subst ",,$(strip $(CONFIG_EMBTK_LINUX_VERSION_STRING)))
+ifeq ($(CONFIG_EMBTK_LINUX_HAVE_MIRROR),y)
+LINUX_SITE := $(subst ",,$(strip $(CONFIG_EMBTK_LINUX_HAVE_MIRROR_SITE)))
+else
LINUX_SITE := ftp://ftp.kernel.org/pub/linux/kernel/v2.6
+endif
LINUX_PACKAGE := linux-$(LINUX_VERSION).tar.bz2
LINUX_BUILD_DIR := $(TOOLS_BUILD)/linux-$(LINUX_VERSION)