20 Feb, 2014

1 commit

  • Now we are ready to switch over to real Kbuild.

    This commit disables temporary scripts:
    scripts/{Makefile.build.tmp, Makefile.host.tmp}
    and enables real Kbuild scripts:
    scripts/{Makefile.build,Makefile.host,Makefile.lib}.

    This switch is triggered by the line in scripts/Kbuild.include
    -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
    +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj

    We need to adjust some build scripts for U-Boot.
    But smaller amount of modification is preferable.

    Additionally, we need to fix compiler flags which are
    locally added or removed.

    In Kbuild, it is not allowed to change CFLAGS locally.
    Instead, ccflags-y, asflags-y, cppflags-y,
    CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
    are prepared for that purpose.

    Signed-off-by: Masahiro Yamada
    Tested-by: Gerhard Sittig

    Masahiro Yamada
     

09 Nov, 2013

1 commit

  • Linux Kernel abolished include/linux/config.h long time ago.
    (around version v2.6.18..v2.6.19)

    We don't need to provide Linux copatibility any more.

    This commit deletes include/linux/config.h
    and fixes source files not to include this.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

01 Nov, 2013

1 commit


15 Oct, 2013

2 commits


24 Jul, 2013

2 commits


23 Jul, 2013

3 commits


17 Jul, 2013

1 commit


02 Jul, 2013

1 commit

  • Commit 35fc84fa1ff51e15ecd3e464dac87eb105ffed30 broke bootm on avr32. It
    requires to call do_bootm_linux() with flag set to BOOTM_STATE_OS_PREP before
    calling it again with flag set to BOOTM_STATE_OS_GO.
    Fix this by allowing flag set to BOOTM_STATE_OS_PREP, this however will
    require a complete refactoring later on.

    Signed-off-by: Andreas Bießmann
    [trini: Apply to m68k, microblaze, nds32, nios2, openrisc, sh and sparc]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     

27 Jun, 2013

3 commits


15 May, 2013

1 commit


02 May, 2013

1 commit

  • Delete all occurrences of hang() and provide a generic function.

    Signed-off-by: Andreas Bießmann
    Acked-by: Albert ARIBAUD
    [trini: Modify check around puts() in hang.c slightly]
    Signed-off-by: Tom Rini

    Andreas Bießmann
     

02 Apr, 2013

1 commit

  • 'bool' is defined in random places. This patch consolidates them into a
    single header file include/linux/types.h, using stdbool.h introduced in C99.

    All other #define, typedef and enum are removed. They are all consistent with
    true = 1, false = 0.

    Replace FALSE, False with false. Replace TRUE, True with true.
    Skip *.py, *.php, lib/* files.

    Signed-off-by: York Sun

    York Sun
     

16 Mar, 2013

3 commits

  • These functions are only available for powerpc and are not declared in a
    header file. We want to use the rest function in two places (board_f and
    board_r), so declare the functions in watchdog.h.

    Signed-off-by: Simon Glass

    Simon Glass
     
  • We create a separate header file for link symbols defined by the link
    scripts. It is helpful to have these all in one place and try to
    make them common across architectures. Since Linux already has a similar
    file, we bring this in even though many of the symbols there are not
    relevant to us.

    Each architecture has its own asm/sections.h where symbols specifc to
    that architecture can be added. For now everything except AVR32 just
    includes the generic header.

    One change is needed in arch/avr32/lib/board.c to make this conversion
    work.

    Reviewed-by: Tom Rini (version 5)
    Signed-off-by: Simon Glass

    Simon Glass
     
  • Note this is a tree-wide change affecting multiple architectures.

    At present we use __bss_start, but mostly __bss_end__. This seems
    inconsistent and in a number of places __bss_end is used instead.

    Change to use __bss_end for the BSS end symbol throughout U-Boot. This
    makes it possible to use the asm-generic/sections.h file on all
    archs.

    Signed-off-by: Simon Glass

    Simon Glass
     

20 Feb, 2013

1 commit

  • On architectures where manual relocation
    is needed, the 'malloc_bin_reloc' function
    must be called after 'mem_malloc_init'.

    Make the 'malloc_bin_reloc' function static
    and call it directly from 'mem_malloc_init'
    instead of calling that from board_init_{r,f}
    functions of the affected architectures.

    Signed-off-by: Gabor Juhos
    Cc: Wolfgang Denk
    Cc: Andreas Bießmann
    Cc: Jason Jin
    Cc: Macpaul Lin
    Cc: Daniel Hellstrom
    Cc: Daniel Schwierzeck

    Gabor Juhos
     

04 Feb, 2013

3 commits


02 Feb, 2013

1 commit

  • We plan to move architecture-specific data into a separate structure so
    that we can make the rest of it common.

    As a first step, create struct arch_global_data to hold these fields.
    Initially it is empty.

    This patch applies to all archs at once. I can split it if this is really
    a pain.

    Signed-off-by: Simon Glass

    Simon Glass
     

12 Jan, 2013

1 commit

  • Fix coldfire serial driver bindings no more relocated to ram after last
    changes to drivers/serial/serial.c (regression).
    Serial initialization in ram has to be called after that gd->reloc_off is
    calculated.

    Signed-off-by: Angelo Dureghello
    Cc: Jason Jin
    Acked-by: Jens Scharsig (BuS Elektronik)
    Tested-by: Jens Scharsig (BuS Elektronik)

    angelo
     

14 Dec, 2012

1 commit


12 Dec, 2012

1 commit

  • strncasecmp() is present as strnicmp() but disabled. Make it available
    and define strcasecmp() also. There is a only a small performance penalty
    to having strcasecmp() call strncasecmp(), so do this instead of a
    standalone function, to save code space.

    Update the prototype in arch-specific headers as needed to avoid warnings.

    Signed-off-by: Simon Glass

    Simon Glass
     

24 Oct, 2012

2 commits

  • Add MCF5441x CPU support.

    The MCF5441x devices are a family of highly-integrated 32-bit
    microprocessors based on the Version 4m ColdFire microarchitecture,
    comprising of the V4 integer core, memory management unit(MMU) and
    enchanced multiply-accumulate unit(EMAC).

    Signed-off-by: TsiChung Liew
    Signed-off-by: Jason Jin
    Signed-off-by: Alison Wang

    Alison Wang
     
  • Fix the following build warnings in cpu_init.c:

    cpu_init.c: In function 'cpu_init_f':
    cpu_init.c:47:9: warning: unused variable 'pll'
    cpu_init.c:46:10: warning: unused variable 'fbcs'
    cpu_init.c:44:10: warning: unused variable 'scm1'

    Signed-off-by: Alison Wang

    Alison Wang
     

22 Oct, 2012

1 commit

  • This patch converts the old method of creating a list of command
    onto the new LG-arrays code. The old u_boot_cmd section is converted
    to new u_boot_list_cmd subsection and LG-array macros used as needed.

    Minor adjustments had to be made to the common code to work with the
    LG-array macros, mostly the fixup_cmdtable() calls are now passed the
    ll_entry_start and ll_entry_count instead of linker-generated symbols.

    The command.c had to be adjusted as well so it would use the newly
    introduced LG-array API instead of directly using linker-generated
    symbols.

    Signed-off-by: Marek Vasut
    Cc: Joe Hershberger
    Cc: Mike Frysinger

    Marek Vasut
     

20 Oct, 2012

1 commit


19 Oct, 2012

5 commits

  • The following warning was produced, fix it:

    board.c: In function 'board_init_r':
    board.c:390:8: warning: unused variable 's' [-Wunused-variable]

    Signed-off-by: Marek Vasut
    Cc: "Jin Zhengxiong-R64188"
    Cc: Jason Jin

    Marek Vasut
     
  • The following warning was produced, fix it:

    speed.c: In function 'get_clocks':
    speed.c:94:15: warning: variable 'bPci' set but not used [-Wunused-but-set-variable]

    Signed-off-by: Marek Vasut
    Cc: "Jin Zhengxiong-R64188"
    Cc: Jason Jin

    Marek Vasut
     
  • The fbcs variable was unused, producing the following warning:

    cpu_init.c: In function 'cpu_init_f':
    cpu_init.c:52:10: warning: unused variable 'fbcs' [-Wunused-variable]

    Signed-off-by: Marek Vasut
    Cc: "Jin Zhengxiong-R64188"
    Cc: Jason Jin

    Marek Vasut
     
  • The jmp _fault generated the following error message, thus change it
    to bra _fault:

    start.S: Assembler messages:
    start.S:310: Error: Conversion of PC relative displacement to absolute

    Signed-off-by: Marek Vasut
    Cc: "Jin Zhengxiong-R64188"
    Cc: Jason Jin

    Marek Vasut
     
  • When the environment sectors in the flash are big, one get those errors :

    mcf547x_8x/start.S:173: relocation truncated to fit: R_68K_PC16 against
    symbol `cpu_init_f' defined in .text section in libmcf547x_8x.a(cpu_init.o)
    mcf547x_8x/start.S:174: relocation truncated to fit: R_68K_PC16 against
    symbol `board_init_f' defined in .text section in libm68k.a(board.o)

    Fix that.

    Signed-off-by: Philippe De Muyter
    Cc: "Jin Zhengxiong-R64188"
    Cc: Jason Jin

    Philippe De Muyter
     

16 Oct, 2012

1 commit


27 Sep, 2012

1 commit