9
0
Fork 0

defaultenv: enable glovalvar support

This will allow to do not have 2 set of var for defaultenv and the new
defaultenv-2.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2012-09-03 20:02:31 +08:00 committed by Sascha Hauer
parent 9b22271b7b
commit 4676721b30
2 changed files with 3 additions and 0 deletions

View File

@ -575,6 +575,7 @@ config DEFAULT_ENVIRONMENT_GENERIC
select CMD_CRC select CMD_CRC
select CMD_CRC_CMP select CMD_CRC_CMP
select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW select CMD_AUTOMOUNT if HAVE_DEFAULT_ENVIRONMENT_NEW
select CMD_GLOBAL
prompt "Default environment generic" prompt "Default environment generic"
help help
With this option barebox will use the generic default With this option barebox will use the generic default

View File

@ -3,6 +3,8 @@
PATH=/env/bin PATH=/env/bin
export PATH export PATH
global hostname
. /env/config . /env/config
if [ -e /dev/nor0 -a -n "$nor_parts" ]; then if [ -e /dev/nor0 -a -n "$nor_parts" ]; then
addpart /dev/nor0 $nor_parts addpart /dev/nor0 $nor_parts