1. 09 Aug, 2012 7 commits
    • Simon Glass's avatar
      sandbox: Add basic test for command execution · a72007d9
      Simon Glass authored
      Since run_command() and run_command_list() are important and a little
      confusing, add some basic tests to check that the behaviour is correct.
      
      Note: I am not sure that this should be committed, nor where it should go
      in the source tree. Comments welcome.
      
      To run the unit tests use the ut_cmd command available in sandbox:
      
      make sandbox_config
      make
      ./u-boot -c ut_cmd
      
      (To test both hush and built-in parsers, you need to manually change
      CONFIG_SYS_HUSH_PARSER in include/configs/sandbox.h and build/run again)
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      a72007d9
    • Simon Glass's avatar
      Allow newlines within command environment vars · 3a8a02be
      Simon Glass authored
      Any environment variable can hold commands to be executed by the 'run'
      command. The environment variables preboot, bootcmd and menucmd have
      special code for triggering execution in certain circumstances.
      
      We adjust these calls to use run_command_list() instead of run_command().
      This change permits these variables to have embedded newlines so that
      they work the same as the 'source' command.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      3a8a02be
    • Simon Glass's avatar
      Add run_command_list() to run a list of commands · d51004a8
      Simon Glass authored
      This new function runs a list of commands separated by semicolon or newline.
      We move this out of cmd_source so that it can be used by other code. The
      PXE code also uses the new function.
      Suggested-by: default avatarMichael Walle <michael@walle.cc>
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      d51004a8
    • Marek Vasut's avatar
      Malloc: Fix -Wundef warnings · 213adf6d
      Marek Vasut authored
      In file included from arch/arm/lib/board.c:43:0:
      include/malloc.h:490:5: warning: "HAVE_MMAP" is not defined [-Wundef]
      include/malloc.h:590:5: warning: "HAVE_USR_INCLUDE_MALLOC_H" is not defined [-Wundef]
      include/malloc.h:757:5: warning: "HAVE_MMAP" is not defined [-Wundef]
      Signed-off-by: default avatarMarek Vasut <marek.vasut@gmail.com>
      Cc: Wolfgang Denk <wd@denx.de>
      213adf6d
    • Mike Frysinger's avatar
      global_data: unify global flag defines · 47fde91f
      Mike Frysinger authored
      All the global flag defines are the same across all arches.  So unify them
      in one place, and add a simple way for arches to extend for their needs.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      47fde91f
    • Andy Fleming's avatar
      MAKEALL: Allow empty ERR directory · 033220e7
      Andy Fleming authored
      If we build everything correctly with multiple builds, and an
      ERR directory had been previously created, we failed to report
      that everything was fine because grep failed to find anything
      in the ERR directory. Use grep -r, which doesn't complain if
      there are no input files.
      Signed-off-by: default avatarAndy Fleming <afleming@freescale.com>
      Tested-by: default avatarTom Rini <trini@ti.com>
      033220e7
    • Wolfgang Denk's avatar
      Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx · 1d56f63d
      Wolfgang Denk authored
      * 'master' of git://git.denx.de/u-boot-mpc85xx:
        powerpc/85xx: use CONFIG_SYS_FSL_PCIE_COMPAT macro when setting the PCI LIODNs
        powerpc/mpc85xx: Ignore E bit for BSC9130/1
        powerpc/sgmii: To support PHY link state auto detect in SGMII mode
        powerpc/85xx: improve definition of BR_PHYS_ADDR macro
        powerpc/p2041: configure the CPLD lane_mux according to RCW
        powerpc/ddr: fix fsl_ddr_get_dimm_params compile error
        powerpc/corenet: fix compile error when CONFIG_SYS_NO_FLASH is defined
        powerpc/mpc8xxx: fix workaround for errata DDR111 and DDR134 for DDR over 4GB
        powerpc/p1022ds: fix DIU/LBC switching with NAND enabled
        powerpc/p1022ds: add support for SPI and SD boot
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      1d56f63d
  2. 08 Aug, 2012 14 commits
  3. 07 Aug, 2012 4 commits
  4. 06 Aug, 2012 1 commit
  5. 31 Jul, 2012 14 commits