[Buildroot] svn commit: trunk/buildroot/target/u-boot

Peter Korsgaard jacmet at uclibc.org
Sat Jan 3 20:46:21 UTC 2009


>>>>> "ulf" == ulf  <ulf at uclibc.org> writes:

 ulf> Author: ulf
 ulf> Date: 2009-01-03 00:02:07 +0000 (Sat, 03 Jan 2009)
 ulf> New Revision: 24653

 ulf> Log:
 ulf> Add Memory configration to u-boot (Config.in) and remove comments from 'choice's', Rearrange options for clarity

 ulf> Modified:
 ulf>    trunk/buildroot/target/u-boot/Config.in


 ulf> Changeset:
 ulf> Modified: trunk/buildroot/target/u-boot/Config.in
 ulf> ===================================================================
 ulf> --- trunk/buildroot/target/u-boot/Config.in	2009-01-03 00:00:46 UTC (rev 24652)
 ulf> +++ trunk/buildroot/target/u-boot/Config.in	2009-01-03 00:02:07 UTC (rev 24653)
 ulf> @@ -11,6 +11,14 @@
 ulf>  	  Build "Das U-Boot" Boot Monitor
 
 ulf>  if BR2_TARGET_UBOOT
 ulf> +config BR2_TARGET_UBOOT_BOARDNAME
 ulf> +	string "board name"
 ulf> +	depends on BR2_TARGET_UBOOT
 ulf> +	default "$(BOARD_NAME)"
 ulf> +	help
 ulf> +	  One of U-Boot supported boards to be built.
 ulf> +	  This will be suffixed with _config to meet U-Boot standard naming.
 ulf> +
 ulf>  choice
 ulf>  	prompt "U-Boot Version"
 ulf>  	default BR2_TARGET_UBOOT_2009_01_RC1
 ulf> @@ -20,27 +28,18 @@
 ulf>  config BR2_TARGET_UBOOT_2009_01_RC1
 ulf>  	bool "u-boot-2009.01-rc1"
 ulf>  	depends on BR2_TARGET_UBOOT
 ulf> -	help
 ulf> -	  Use u-boot from December 2008 (RC1)
 
 ulf>  config BR2_TARGET_UBOOT_2008_10
 ulf>  	bool "u-boot-2008.10"
 ulf>  	depends on BR2_TARGET_UBOOT
 ulf> -	help
 ulf> -	  Use u-boot from October 2008
 	
 ulf>  config BR2_TARGET_UBOOT_1_3_4
 ulf>  	bool "u-boot-1.3.4"
 ulf>  	depends on BR2_TARGET_UBOOT
 ulf> -	help
 ulf> -	  Use u-boot from mid 2008
 	
 ulf>  config BR2_TARGET_UBOOT_2009_01
 ulf>  	bool "u-boot-2009.01"
 ulf>  	depends on BR2_TARGET_UBOOT
 ulf> -	help
 ulf> -	  Use u-boot from January 2009
 ulf> -	  Release date 2009-01-17
 
 ulf>  endchoice
 
 ulf> @@ -51,14 +50,6 @@
 ulf>  	default "1.3.4"		if BR2_TARGET_UBOOT_1_3_4
 ulf>  	default "2009.01"	if BR2_TARGET_UBOOT_2009_01
 
 ulf> -config BR2_TARGET_UBOOT_BOARDNAME
 ulf> -	string "board name"
 ulf> -	depends on BR2_TARGET_UBOOT
 ulf> -	default "$(BOARD_NAME)"
 ulf> -	help
 ulf> -	  One of U-Boot supported boards to be built.
 ulf> -	  This will be suffixed with _config to meet U-Boot standard naming.
 ulf> -
 ulf>  config BR2_TARGET_UBOOT_CUSTOM_PATCH
 ulf>  	string "custom patch"
 ulf>  	depends on BR2_TARGET_UBOOT
 ulf> @@ -74,42 +65,27 @@
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_DATAFLASHCARD
 ulf>  	bool "Boot from dataflashcard"
 ulf>  	depends on BR2_BOOTSOURCE_DATAFLASHCARD
 ulf> -	help
 ulf> -	  
 
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_DATAFLASH
 ulf>  	bool "Boot from dataflash
 ulf>  	depends on BR2_BOOTSOURCE_DATAFLASH
 ulf> -	help
 ulf> -	  
 
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_NANDFLASH
 ulf>  	bool "Boot from a NAND flash"
 ulf>  	depends on BR2_BOOTSOURCE_NANDFLASH
 ulf> -	help
 ulf> -	  Build u-boot with environment in the NAND flash
 
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_FLASH
 ulf>  	bool "Boot from a parallell flash"
 ulf>  	depends on BR2_BOOTSOURCE_FLASH
 ulf> -	help
 ulf> -	  Build u-boot with environment in a flash RAM
 
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_SDCARD
 ulf> -	bool "Boot from a NAND flash"
 ulf> +	bool "Boot from an SD-Card"
 ulf>  	depends on BR2_BOOTSOURCE_SDCARD
 ulf> -	help
 ulf> -	  Build u-boot with environment on an SD-Card
 ulf> -	  Not yet supported
 
 ulf>  	config BR2_TARGET_UBOOT_BOOTSOURCE_EEPROM
 ulf> -	bool "Boot from a serial EEPROM"
 ulf> +	bool "Boot from a serial EEPROM (Not yet supported)"
 ulf>  	depends on BR2_BOOTSOURCE_EEPROM
 ulf> -	help
 ulf> -	  Build u-boot with environment in a serial EEPROM
 ulf> -	  Not yet supported

Why then have it as an option?

 ulf> +choice
 ulf> +	prompt "SDRAM Memory size"
 ulf> +	default BR2_TARGET_UBOOT_SDRAM_SIZE_64M
 ulf> +	help
 ulf> +	  Size of the onboard SDRAM
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_256MB
 ulf> +	bool "256 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_128MB
 ulf> +	bool "128 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_64MB
 ulf> +	bool "64 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_32MB
 ulf> +	bool "32 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_16MB
 ulf> +	bool "16 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_SDRAM_SIZE_8MB
 ulf> +	bool "8 MB"
 ulf> +
 ulf> +endchoice

I don't believe in providing buildroot config options for every U-Boot
option - If the boards are really that different, then just add them
as seperate platforms in U-Boot.

How are you handling the CFG -> CONFIG -> CONFIG_SYS renaming U-boot
has recently been doing?

 ulf> +	prompt "Kernel Size"
 ulf> +	default BR2_TARGET_UBOOT_KERNEL_SIZE_2_00MB
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_1_25MB
 ulf> +	bool "Kernel size is less than 1.25 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_1_50MB
 ulf> +	bool "Kernel size is less than 1.50 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_1_75MB
 ulf> +	bool "Kernel size is less than 1.75 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_2_00MB
 ulf> +	bool "Kernel size is less than 2.00 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_2_25MB
 ulf> +	bool "Kernel size is less than 2.25 MB"
 ulf> +
 ulf> +config BR2_TARGET_UBOOT_KERNEL_SIZE_2_50MB
 ulf> +	bool "Kernel size is less than 2.50 MB"
 ulf> +

And again .. Please get rid of all of those.

Please clean up.

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list