diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-03 10:12:10 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-03 14:21:13 +0200 |
commit | 0994834462c4200dfe8479d8d694226008ca9d72 (patch) | |
tree | 4465dce1392aca300bbccce3ba683b311e458b31 /arch/arm/mach-imx/boot.c | |
parent | c74fb45f6427256a530bbf6682b10908942a3644 (diff) | |
download | barebox-0994834462c4200dfe8479d8d694226008ca9d72.tar.gz barebox-0994834462c4200dfe8479d8d694226008ca9d72.tar.xz |
ARM: i.MX: rename barebox_loc to bootsource
Rename the barebox_loc environment variable to bootsource, since
- barebox_loc is a mixture between abbriviation and fulltext which is not nice
- technically it describes the source the SoC has booted from. This is not
necessarily barebox but could also be some other first stage loader.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/boot.c')
-rw-r--r-- | arch/arm/mach-imx/boot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index 95a76739e7..3d0b09b0db 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -42,8 +42,8 @@ void imx_set_bootsource(enum imx_bootsource src) bootsource = src; - setenv("barebox_loc", bootsource_str[src]); - export("barebox_loc"); + setenv("bootsource", bootsource_str[src]); + export("bootsource"); } enum imx_bootsource imx_bootsource(void) @@ -51,7 +51,7 @@ enum imx_bootsource imx_bootsource(void) return bootsource; } -BAREBOX_MAGICVAR(barebox_loc, "The source barebox has been booted from"); +BAREBOX_MAGICVAR(bootsource, "The source barebox has been booted from"); /* [CTRL][TYPE] */ static const enum imx_bootsource locations[4][4] = { @@ -79,7 +79,7 @@ static const enum imx_bootsource locations[4][4] = { }; /* - * Saves the boot source media into the $barebox_loc environment variable + * Saves the boot source media into the $bootsource environment variable * * This information is useful for barebox init scripts as we can then easily * use a kernel image stored on the same media that we launch barebox with |