20 Feb, 2014

4 commits

  • This commit refactors cleaning targets such as
    clean, clobber, mrpropper, distclean
    with scripts/Makefile.clean.

    By using scripts/Makefile.clean, we can recursively descend
    into subdirectories and delete generated files there.

    We do not need add a big list of generated files
    to the "clean" target.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • 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
     
  • We are going to switch over to Kbuild in upcoming commits.

    Each makefile must have non-empty obj- or obj-y
    to generate built-in.o on Kbuild.

    Signed-off-by: Masahiro Yamada

    Masahiro Yamada
     
  • This commit changes the working directory
    where the build process occurs.

    Before this commit, build process occurred under the source
    tree for both in-tree and out-of-tree build.

    That's why we needed to add $(obj) prefix to all generated
    files in makefiles like follows:
    $(obj)u-boot.bin: $(obj)u-boot

    Here, $(obj) is empty for in-tree build, whereas it points
    to the output directory for out-of-tree build.

    And our old build system changes the current working directory
    with "make -C " syntax when descending into the
    sub-directories.

    On the other hand, Kbuild uses a different idea
    to handle out-of-tree build and directory descending.

    The build process of Kbuild always occurs under the output tree.
    When "O=dir/to/store/output/files" is given, the build system
    changes the current working directory to that directory and
    restarts the make.

    Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj="
    syntax for descending into sub-directories.
    (We can write it like "make $(obj)=" with a shorthand.)
    This means the current working directory is always the top
    of the output directory.

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

    Masahiro Yamada
     

19 Feb, 2014

2 commits


18 Feb, 2014

2 commits


14 Feb, 2014

1 commit


13 Feb, 2014

3 commits

  • This patch is here because of:
    "arm: keep all sections in ELF file"
    (sha1: 47ed5dd031d7d2c587e6afd386e79ccec1a1b7f7)

    Our tools expect to have elf with only LOAD header.
    Without this fix also PHDR, INTERP and DYNAMIC headers
    are available in ELF.

    Signed-off-by: Michal Simek

    Michal Simek
     
  • The entries in config.mk were needed so that U-Boot could be built
    with an old version of the Raspberry Pi Foundation's toolchain. Without
    them, the build would error out with:

    ...-ld: error: .../libgcc.a(_bswapsi2.o) uses VFP register arguments,
    u-boot does not

    However, none of the 3 toolchains in the latest version of their
    tools.git, nor the Ubuntu/Linaro ARM compilers in at least Ubuntu Quantal
    or Saucy, need these options set in order to compile a working U-Boot.
    Hence, remove the options for simplicity.

    Reported-by: Tom Rini
    Signed-off-by: Stephen Warren
    Reviewed-by: Andreas Färber

    Stephen Warren
     
  • Albert ARIBAUD
     

10 Feb, 2014

2 commits


08 Feb, 2014

1 commit

  • We use the switch CONFIG_SUPPORT_EMMC_BOOT today to enable some
    additional features of the eMMC boot partitions. Add support for being
    told that we have booted from one of these partitions to the spl
    framework and implement this on TI OMAP/related.

    Cc: Pantelis Antoniou
    Signed-off-by: Tom Rini
    Signed-off-by: Pantelis Antoniou

    Tom Rini
     

07 Feb, 2014

10 commits


05 Feb, 2014

4 commits


04 Feb, 2014

11 commits