1. 15 Sep, 2015 1 commit
    • Andreas Färber's avatar
      api_storage: Fix non-first storage device enumeration · ce2a07b7
      Andreas Färber authored
      When enabling CONFIG_API and chain-loading GRUB2 on jetson-tk1, only the
      eMMC would show up as (hd0), but not the SD card, leading to GRUB not
      finding its configuration and modules, falling back to a rescue shell.
      
      This is because enum_ended would get set for !more after returning a
      cookie for the first MMC device in group 3.
      
      Fix this by properly setting the "more" argument also in the case of the
      first storage device of a group.
      Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
      ce2a07b7
  2. 18 Apr, 2015 1 commit
  3. 21 Aug, 2014 1 commit
  4. 07 Mar, 2014 1 commit
    • Masahiro Yamada's avatar
      powerpc: mpc8260: consolidate CONFIG_MPC8260 and CONFIG_8260 · 58dac327
      Masahiro Yamada authored
      Before this commit, CONFIG_MPC8260 and CONFIG_8260
      were used mixed-up.
      
      All boards with mpc8260 cpu defined both of them:
        - CONFIG_MPC8260 was defined in board config headers
            and include/common.h
        - CONFIG_8260 was defined arch/powerpc/cpu/mpc8260/config.mk
      
      We do not need to have both of them.
      This commit keeps only CONFIG_MPC8260.
      
      This commit does:
       - Delete CONFIG_8260 and CONFIG_MPC8260 definition
         in config headers and include/common.h
       - Rename CONFIG_8260 to CONFIG_MPC8260
          in arch/powerpc/cpu/mpc8260/config.mk.
       - Rename #ifdef CONFIG_8260 to #ifdef CONFIG_MPC8260
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Wolfgang Denk <wd@denx.de>
      58dac327
  5. 25 Nov, 2013 2 commits
  6. 01 Nov, 2013 1 commit
  7. 24 Jul, 2013 1 commit
  8. 15 May, 2013 1 commit
  9. 21 Mar, 2013 1 commit
  10. 15 Nov, 2011 1 commit
  11. 05 Oct, 2011 1 commit
    • Mike Frysinger's avatar
      net: drop !NET_MULTI code · e2a53458
      Mike Frysinger authored
      This is long over due.  All but two net drivers have been converted, but
      those have now been dropped.
      
      The only thing left to do is actually delete all references to NET_MULTI
      and code that is compiled when that is not defined.  So here we scrub the
      core code.
      Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
      e2a53458
  12. 28 Nov, 2010 1 commit
  13. 17 Nov, 2010 1 commit
    • Sebastien Carlier's avatar
      Switch from archive libraries to partial linking · 6d8962e8
      Sebastien Carlier authored
      Before this commit, weak symbols were not overridden by non-weak symbols
      found in archive libraries when linking with recent versions of
      binutils.  As stated in the System V ABI, "the link editor does not
      extract archive members to resolve undefined weak symbols".
      
      This commit changes all Makefiles to use partial linking (ld -r) instead
      of creating library archives, which forces all symbols to participate in
      linking, allowing non-weak symbols to override weak symbols as intended.
      This approach is also used by Linux, from which the gmake function
      cmd_link_o_target (defined in config.mk and used in all Makefiles) is
      inspired.
      
      The name of each former library archive is preserved except for
      extensions which change from ".a" to ".o".  This commit updates
      references accordingly where needed, in particular in some linker
      scripts.
      
      This commit reveals board configurations that exclude some features but
      include source files that depend these disabled features in the build,
      resulting in undefined symbols.  Known such cases include:
      - disabling CMD_NET but not CMD_NFS;
      - enabling CONFIG_OF_LIBFDT but not CONFIG_QE.
      Signed-off-by: default avatarSebastien Carlier <sebastien.carlier@gmail.com>
      6d8962e8
  14. 04 Jul, 2010 1 commit
    • Wolfgang Denk's avatar
      Make sure that argv[] argument pointers are not modified. · 54841ab5
      Wolfgang Denk authored
      The hush shell dynamically allocates (and re-allocates) memory for the
      argument strings in the "char *argv[]" argument vector passed to
      commands.  Any code that modifies these pointers will cause serious
      corruption of the malloc data structures and crash U-Boot, so make
      sure the compiler can check that no such modifications are being done
      by changing the code into "char * const argv[]".
      
      This modification is the result of debugging a strange crash caused
      after adding a new command, which used the following argument
      processing code which has been working perfectly fine in all Unix
      systems since version 6 - but not so in U-Boot:
      
      int main (int argc, char **argv)
      {
      	while (--argc > 0 && **++argv == '-') {
      /* ====> */	while (*++*argv) {
      			switch (**argv) {
      			case 'd':
      				debug++;
      				break;
      			...
      			default:
      				usage ();
      			}
      		}
      	}
      	...
      }
      
      The line marked "====>" will corrupt the malloc data structures and
      usually cause U-Boot to crash when the next command gets executed by
      the shell.  With the modification, the compiler will prevent this with
      an
      	error: increment of read-only location '*argv'
      
      N.B.: The code above can be trivially rewritten like this:
      
      	while (--argc > 0 && **++argv == '-') {
      		char *arg = *argv;
      		while (*++arg) {
      			switch (*arg) {
      			...
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Acked-by: default avatarMike Frysinger <vapier@gentoo.org>
      54841ab5
  15. 21 Apr, 2010 1 commit
  16. 22 Jul, 2009 1 commit
  17. 12 Jun, 2009 1 commit
  18. 15 May, 2009 1 commit
  19. 18 Oct, 2008 1 commit
  20. 14 Oct, 2008 2 commits
  21. 10 Sep, 2008 1 commit
  22. 06 Aug, 2008 1 commit
  23. 29 Jul, 2008 2 commits
  24. 14 May, 2008 1 commit
  25. 11 May, 2008 2 commits
  26. 17 Apr, 2008 1 commit
  27. 14 Feb, 2008 1 commit
  28. 29 Jan, 2008 1 commit
  29. 09 Jan, 2008 2 commits