Several places in U-Boot's board files can make use of a function like this, so this patch series creates the function, and changes the board files to use it.
As suggested by Mike Frysinger <vap...@gentoo.org>. Simon Glass (10): Add getenv_int() to read an integer from an environment variable arm: Use getenv_ulong() in place of getenv(), strtoul avr32: Use getenv_ulong() in place of getenv(), strtoul blackfin: Use getenv_ulong() in place of getenv(), strtoul m68k: Use getenv_ulong() in place of getenv(), strtoul microblaze: Use getenv_ulong() in place of getenv(), strtoul mips: Use getenv_ulong() in place of getenv(), strtoul powerpc: Use getenv_ulong() in place of getenv(), strtoul sparc: Use getenv_ulong() in place of getenv(), strtoul x86: Use getenv_ulong() in place of getenv(), strtoul arch/arm/lib/board.c | 36 +++++++++++------------------------- arch/avr32/lib/board.c | 16 +++------------- arch/blackfin/lib/board.c | 9 ++------- arch/m68k/lib/board.c | 33 ++++++++------------------------- arch/microblaze/lib/board.c | 6 ++---- arch/mips/lib/board.c | 14 +++----------- arch/powerpc/lib/board.c | 33 ++++++++------------------------- arch/sparc/lib/board.c | 13 +++---------- arch/x86/lib/board.c | 14 +++----------- common/cmd_nvedit.c | 7 +++++++ include/common.h | 12 ++++++++++++ 11 files changed, 62 insertions(+), 131 deletions(-) -- 1.7.3.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot