[U-Boot] Can i pass pass an environmental variable or argument from command line to build u-boot?

harsha kiran kj.h.kiran at us.abb.com
Thu Nov 6 16:30:35 CET 2014


Hi !

For our project, we are trying to build the Bootloader with a Software
partnumber. and i want it to be displayed on the first U-boot print..


U-Boot 2014.07 (Nov 05 2014 - 16:27:50) PN#12345678-001

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

I was able to do this by adding the following in the boards.cfg file..

Active  arm         armv7          am33xx      ti             
am335x_abb_uboot    am335x_abb_uboot_npa_dev				
am335x_abb_uboot:SERIAL4,CONS_INDEX=4,NPA_DEV,IDENT_STRING="PN#12345678-001" 

But i want to pass the IDENT_STRING from the command line to build the
u-boot..the command i use is 

sudo make ARCH=arm
CROSS_COMPILE=/abb/compilers/gcc-linaro-arm-linux-gnueabihf-4.7-2013.04-20130415_linux/bin/arm-linux-gnueabihf-
-j8 -s am335x_abb_uboot_npa_dev_config

is there a way i can pass this argument while building the u-boot? 

Thanks,
Harsha






--
View this message in context: http://u-boot.10912.n7.nabble.com/Can-i-pass-pass-an-environmental-variable-or-argument-from-command-line-to-build-u-boot-tp194962.html
Sent from the U-Boot mailing list archive at Nabble.com.


More information about the U-Boot mailing list