Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] UBOOT: Provide Version selection option to user
@ 2008-04-15  4:53 Hebbar
  2008-04-15  7:10 ` Peter Korsgaard
  0 siblings, 1 reply; 5+ messages in thread
From: Hebbar @ 2008-04-15  4:53 UTC (permalink / raw)
  To: buildroot


Hi,

  Below patch provides Uboot version selection option to user.

Comments welcome.

Regards
Gururaja

Modified Files:
target/u-boot/Config.in
target/u-boot/Makefile.in


diff -purN u-boot_orig/Config.in u-boot/Config.in
--- u-boot_orig/Config.in	2008-04-03 03:15:11.000000000 -0400
+++ u-boot/Config.in	2008-04-15 16:24:47.000000000 -0400
@@ -5,6 +5,29 @@ config BR2_TARGET_UBOOT
 	help
 	  Build "Das U-Boot" Boot Monitor
 
+choice
+	prompt "Uboot Version"
+	default BR2_UBOOT_VERSION_1_3_0
+	depends on BR2_TARGET_UBOOT
+	help
+	  Select the version of Uboot you wish to use.
+
+	config BR2_UBOOT_VERSION_1_3_0
+		bool "uboot 1.3.0"
+
+	config BR2_UBOOT_VERSION_1_3_1
+		bool "uboot 1.3.1"
+
+	config BR2_UBOOT_VERSION_1_3_2
+		bool "uboot 1.3.2"
+endchoice
+
+config BR2_UBOOT_VERSION
+	string
+	default "1.3.0"    if BR2_UBOOT_VERSION_1_3_0
+	default "1.3.1"    if BR2_UBOOT_VERSION_1_3_1
+	default "1.3.2"    if BR2_UBOOT_VERSION_1_3_2
+
 config BR2_TARGET_UBOOT_BOARDNAME
 	string "board name"
 	depends on BR2_TARGET_UBOOT

diff -purN u-boot_orig/Makefile.in u-boot/Makefile.in
--- u-boot_orig/Makefile.in	2008-04-15 16:21:56.000000000 -0400
+++ u-boot/Makefile.in	2008-04-15 16:18:32.000000000 -0400
@@ -3,7 +3,7 @@
 # U-Boot
 #
 #############################################################
-U_BOOT_VERSION:=1.3.0
+U_BOOT_VERSION:=$(strip $(subst ",, $(BR2_UBOOT_VERSION)))
 U_BOOT_SOURCE:=u-boot-$(U_BOOT_VERSION).tar.bz2
 U_BOOT_SITE:=ftp://ftp.denx.de/pub/u-boot
 U_BOOT_DIR:=$(PROJECT_BUILD_DIR)/u-boot-$(U_BOOT_VERSION)

-- 
View this message in context: http://www.nabble.com/-PATCH--UBOOT%3A-Provide-Version-selection-option-to-user-tp16695022p16695022.html
Sent from the BuildRoot mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-16  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-15  4:53 [Buildroot] [PATCH] UBOOT: Provide Version selection option to user Hebbar
2008-04-15  7:10 ` Peter Korsgaard
2008-04-15  7:20   ` [Buildroot] [PATCH] UBOOT: Provide Version selection option touser Ulf Samuelsson
2008-04-15  7:30   ` [Buildroot] [PATCH] UBOOT: Provide Version selection option to user Gururaja Hebbar K R
2008-04-16  0:02   ` Hebbar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox