21 Nov, 2014

1 commit

  • This function can fail if the device tree runs out of space. Rather than
    silently booting with an incomplete device tree, allow the failure to be
    detected.

    Unfortunately this involves changing a lot of places in the code. I have
    not changed behvaiour to return an error where one is not currently
    returned, to avoid unexpected breakage.

    Eventually it would be nice to allow boards to register functions to be
    called to update the device tree. This would avoid all the many functions
    to do this. However it's not clear yet if this should be done using driver
    model or with a linker list. This work is left for later.

    Signed-off-by: Simon Glass
    Acked-by: Anatolij Gustschin

    Simon Glass
     

14 Sep, 2014

1 commit

  • Now the types of CONFIG_SYS_{ARCH, CPU, SOC, VENDOR, BOARD, CONFIG_NAME}
    are specified in arch/Kconfig.

    We can delete the ones in arch and board Kconfig files.

    This commit can be easily reproduced by the following command:

    find . -name Kconfig -a ! -path ./arch/Kconfig | xargs sed -i -e '
    /config[[:space:]]SYS_\(ARCH\|CPU\|SOC\|\VENDOR\|BOARD\|CONFIG_NAME\)/ {
    N
    s/\n[[:space:]]*string//
    }
    '

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     

30 Jul, 2014

2 commits

  • We have switched to Kconfig and the boards.cfg file is going to
    be removed. We have to retrieve the board status and maintainers
    information from it.

    The MAINTAINERS format as in Linux Kernel would be nice
    because we can crib the scripts/get_maintainer.pl script.

    After some discussion, we chose to put a MAINTAINERS file under each
    board directory, not the top-level one because we want to collect
    relevant information for a board into a single place.

    TODO:
    Modify get_maintainer.pl to scan multiple MAINTAINERS files.

    Signed-off-by: Masahiro Yamada
    Suggested-by: Tom Rini
    Acked-by: Simon Glass

    Masahiro Yamada
     
  • This commit adds:
    - arch/${ARCH}/Kconfig
    provide a menu to select target boards
    - board/${VENDOR}/${BOARD}/Kconfig or board/${BOARD}/Kconfig
    set CONFIG macros to the appropriate values for each board
    - configs/${TARGET_BOARD}_defconfig
    default setting of each board

    (This commit was automatically generated by a conversion script
    based on boards.cfg)

    In Linux Kernel, defconfig files are located under
    arch/${ARCH}/configs/ directory.
    It works in Linux Kernel since ARCH is always given from the
    command line for cross compile.

    But in U-Boot, ARCH is not given from the command line.
    Which means we cannot know ARCH until the board configuration is done.
    That is why all the "*_defconfig" files should be gathered into a
    single directory ./configs/.

    Signed-off-by: Masahiro Yamada
    Acked-by: Simon Glass

    Masahiro Yamada
     

01 Nov, 2013

1 commit


24 Jul, 2013

1 commit


04 Nov, 2011

1 commit


16 Oct, 2011

1 commit

  • The top level Makefile does not do any recursion into subdirs when
    cleaning, so these clean/distclean targets in random arch/board dirs
    never get used. Punt them all.

    MAKEALL didn't report any errors related to this that I could see.

    Signed-off-by: Mike Frysinger

    Mike Frysinger
     

18 Nov, 2010

1 commit

  • 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: Sebastien Carlier

    Sebastien Carlier
     

19 Oct, 2010

2 commits

  • Clean up Makefile, and drop a lot of the config.mk files on the way.

    We now also automatically pick all boards that are listed in
    boards.cfg (and with all configurations), so we can drop the redundant
    entries from MAKEALL to avoid building these twice.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     
  • The change is currently needed to be able to remove the board
    configuration scripting from the top level Makefile and replace it by
    a simple, table driven script.

    Moving this configuration setting into the "CONFIG_*" name space is
    also desirable because it is needed if we ever should move forward to
    a Kconfig driven configuration system.

    Signed-off-by: Wolfgang Denk

    Wolfgang Denk
     

24 Sep, 2010

1 commit


20 Aug, 2010

1 commit

  • We get two build errors:

    fsl_elbc_nand.c: In function 'fsl_elbc_run_command':
    fsl_elbc_nand.c:231: error: 'fsl_lbc_t' has no member named 'lsor'
    make[1]: *** [/work/wd/tmp-ppc/drivers/mtd/nand/fsl_elbc_nand.o] Error 1

    and

    ve8313.c: In function 'initdram':
    ve8313.c:104: error: expected '=', ',', ';', 'asm' or '__attribute__'
    before '*' token
    ve8313.c:104: error: 'lbc' undeclared (first use in this function)
    ve8313.c:104: error: (Each undeclared identifier is reported only once
    ve8313.c:104: error: for each function it appears in.)
    ve8313.c:104: error: 'immap_t' has no member named 'lbus'
    make[1]: *** [ve8313.o] Error 1
    make: *** [board/ve8313/libve8313.a] Error 2

    Due to changes to unifiy local bus struct definitions.

    Reported-by: Wolfgang Denk
    Signed-off-by: Kumar Gala

    Kumar Gala
     

10 Jul, 2010

1 commit

  • This patch add support for the ve8313 board based on
    Freescale MPC8313 CPU.

    - serial console on UART 1
    - 128 MB DDR RAM
    - 32 MB NOR Flash
    - 16 MB NAND Flash
    - Ethernet MII Mode over on TSEC0
    - micrel ksz804 phy
    - Hardware WDT MAX824

    changes since v1
    - Environment size = sector size
    - use red. environment
    - add comments from Kim Phillips
    - add MAKEALL, MAINTAINERS entry
    - Codingstyle issues fixed
    - inserted original Copyrights
    - PCI subsys vendor ID changed from 0x1057 (Motorola)
    to 0x1957 (Freescale)

    changes since v2
    - add comments from Wolfgang Denk
    - fix Codingstyle and some comments
    - reworked WDT reset (just toggling the WD_TRIG pin)
    - Environment size now 16KiB
    - fixed RAMBOOT version
    - fixed CONFIG_SYS_LOAD_ADDR
    - renamed CONFIG_TSEC1_NAME to TSEC1

    Signed-off-by: Heiko Schocher
    Signed-off-by: Kim Phillips

    Heiko Schocher