9
0
Fork 0
barebox/arch/arm/lib
Sascha Hauer 5ee4ad2229 environment variables: introduce new helpers
This introduces some new environment variable helpers and updates
the existing ones. Newly introduced are:

getenv_bool: read a bool variable
getenv_ul: read an unsigned long variable
getenev_uint: read an unsigned int variable
getenv_nonempty: like normal getenv, but does return NULL instead of an
                 empty string

All new helpers take a pointer to the value. This value is only modified
when the variable exists. This allows the following programming scheme:

	unsigned int myvalue = sanedefault;

	getenv_uint("myvalue", &myvalue);

So without checking the return value myvalue contains the best possible
value.

getenv_ull is updated to this scheme.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
2013-09-30 10:28:52 +02:00
..
.gitignore rename U-Boot-v2 project to barebox 2009-12-15 10:18:30 +01:00
Makefile ARM: compile bootm code depending on CONFIG_BOOTM 2013-09-24 09:03:18 +02:00
armlinux.c environment variables: introduce new helpers 2013-09-30 10:28:52 +02:00
ashldi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
ashrdi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
barebox.lds.S Merge branch 'for-next/relocate' 2013-04-04 14:20:42 +02:00
bootm.c ARM: bootm: Print Kernel commandline unconditionally 2013-07-27 07:48:18 +02:00
bootu.c of: make of_get_fixed_tree more universally usable 2013-01-11 14:08:30 +01:00
bootz.c of: make of_get_fixed_tree more universally usable 2013-01-11 14:08:30 +01:00
copy_template.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
div0.c Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
findbit.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
io-readsb.S ioreadsb: put the whole ioreadsb function into the .text.readsb section 2010-02-16 21:49:33 +01:00
io-readsl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-readsw-armv4.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesb.S Remove all ARM __raw_* functions. They are mixed all over 2009-07-01 14:35:35 +02:00
io-writesl.S Add IO string functions to also handle 32 bit IO locations 2009-07-01 10:45:21 +02:00
io-writesw-armv4.S ARM: Separate assembler functions into their own section 2012-07-23 23:57:44 +02:00
io.c ARM: import memcpy_from/toio and memset_io from linux 2012-01-02 12:08:24 +01:00
lib1funcs.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
lshrdi3.S Treewide: remove address of the Free Software Foundation 2012-09-17 10:57:41 +02:00
memcpy.S ARM: update string functions from Linux Kernel 2012-01-02 15:00:28 +01:00
memset.S ARM: fix the memset fix 2013-05-23 08:27:57 +02:00
module.c ARM: Using unsigned specifiers for unsigned arguments for printf 2013-05-31 08:53:51 +02:00
pbl.lds.S ARM: Add image end section 2013-06-26 23:43:19 +02:00
runtime-offset.S ARM: Add image end section 2013-06-26 23:43:19 +02:00
unwind.c include asm/sections.h instead of asm-generic/sections.h 2013-03-10 11:05:46 +01:00