Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Hebbar <gururajakr@sanyo.co.in>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] UBOOT: Provide Version selection option to user
Date: Mon, 14 Apr 2008 21:53:14 -0700 (PDT)	[thread overview]
Message-ID: <16695022.post@talk.nabble.com> (raw)


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.

             reply	other threads:[~2008-04-15  4:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-15  4:53 Hebbar [this message]
2008-04-15  7:10 ` [Buildroot] [PATCH] UBOOT: Provide Version selection option to user 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=16695022.post@talk.nabble.com \
    --to=gururajakr@sanyo.co.in \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox