1. 26 2月, 2014 5 次提交
  2. 24 2月, 2014 1 次提交
  3. 20 2月, 2014 9 次提交
    • M
      kbuild: refactor Makefile and spl/Makefile more · 656de6b8
      Masahiro Yamada 提交于
      This commit refactors rules of directory descending
      and defines u-boot-dirs and u-boot-all-dirs.
      (We will need u-boot-all-dirs when using
      scripts/Makefile.clean)
      
      Additionally, rename LIBS-y to libs-y.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      656de6b8
    • M
      kbuild: generate {spl, tpl}-autoconf.mk only when it is necessary · 5fe6301a
      Masahiro Yamada 提交于
      Before this commit, {spl,tpl}-autoconf.mk was always generated
      at the top Makefile even if SPL(TPL) build was not selected.
      
      This commit moves the build rule of {spl,tpl}-autoconf.mk
      from the top Makefile to spl/Makefile.
      It prevents unnecessary {spl,tpl}-autoconf.mk from being
      generated.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      5fe6301a
    • M
      kbuild: move include directives of board configuration files · 01072b44
      Masahiro Yamada 提交于
      This commit changes the location of include directives
      of board configuration files.
      
      The purpose of this change is:
       - Slim down $(TOPDIR)/config.mk
       - Prevent $(TOPDIR)/Makefile from including the same
          configuration file twice
       - Do not include include/config.mk multiple times
          because ARCH, CPU, BOARD, VENDOR, SOC are exported
      
      Before this commit:
      
       - include/autoconf.mk was included from $(TOPDIR)/Makefile
         and $(TOPDIR)/config.mk
         (This means $(TOPDIR)/Makefile included include/autoconf.mk twice)
      
       - include/{spl,tpl}-autoconf.mk was included from $(TOPDIR)/config.mk
      
       - include/config.mk was included from $(TOPDIR)/Makefile
         and $(TOPDIR)/config.mk
         (This means $(TOPDIR)/Makefile included include/config.mk twice)
      
      After this commit:
      
       - include/autoconf.mk is included from $(TOPDIR)/Makefile
         and $(TOPDIR)/scripts/Makefile.build
      
       - include/{spl,tpl}-autoconf.mk is included from $(TOPDIR)/spl/Makefile
         and $(TOPDIR)/scripts/Makefile.build
      
       - include/config.mk is included from $(TOPDIR)/config.mk and
         $(TOPDIR)/spl/Makefile
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      01072b44
    • M
      kbuild: use Linux Kernel build scripts · 6825a95b
      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: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: NGerhard Sittig <gsi@denx.de>
      6825a95b
    • M
      kbuild: change out-of-tree build · 9e414032
      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 <sub-dir>" 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=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: NGerhard Sittig <gsi@denx.de>
      9e414032
    • M
      Makefile: move some flags to spl/Makefile · e0d5d9f8
      Masahiro Yamada 提交于
      Some flags are used for SPL (and TPL) build only.
      This commit moves them from config.mk to spl/Makefile.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      e0d5d9f8
    • M
      kbuild: Use Kbuild.include · bf4b3de1
      Masahiro Yamada 提交于
      This commit adjusts some files to use Kbuild.include.
      
       - Use cc-option defined in Kbuild.include
          (Delete cc-option in config.mk)
       - Use cc-version defined in
          (Delete cc-version in config.mk)
       - Move binutils-version and dtc-version to Kbuild.include
           by analogy to cc-version
      
      This commit also adds srctree (same as SRCTREE)
      to use Kbuild scripts.
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      bf4b3de1
    • M
      board: samsung: refactor host programs · e183a174
      Masahiro Yamada 提交于
      Some Samsung boards have their own tools under board/samsung/<board>/tools/.
      This commit refactor more makefiles with "hostprogs-y".
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      e183a174
    • M
      tools: convert makefiles to kbuild style · 940db16d
      Masahiro Yamada 提交于
      Before this commit, makefiles under tools/ directory
      were implemented with their own way.
      
      This commit refactors them by using "hostprogs-y" variable.
      
      Several C sources have been added to wrap other C sources
      to simplify Makefile.
      For example, tools/crc32.c includes lib/crc32.c
      Signed-off-by: NMasahiro Yamada <yamada.m@jp.panasonic.com>
      940db16d
  4. 19 2月, 2014 1 次提交
  5. 25 1月, 2014 1 次提交
  6. 22 1月, 2014 1 次提交
  7. 14 1月, 2014 1 次提交
  8. 30 12月, 2013 1 次提交
  9. 16 12月, 2013 1 次提交
  10. 13 12月, 2013 3 次提交
  11. 26 11月, 2013 1 次提交
  12. 18 11月, 2013 4 次提交
  13. 01 11月, 2013 6 次提交
  14. 20 9月, 2013 1 次提交
  15. 28 8月, 2013 1 次提交
  16. 21 8月, 2013 2 次提交
    • Y
      TPL : introduce the TPL based on the SPL · 3aa29de0
      Ying Zhang 提交于
      Due to the nand SPL on some board(e.g. P1022DS)has a size limit, it can
      not be more than 4K. So, the SPL cannot initialize the DDR with the SPD
      code. This patch introduces TPL to enable a loader stub that is loaded
      by the code from the SPL. It initializes the DDR with the SPD or other
      operations.
      
      The TPL's size is sizeable, the maximum size is decided by the memory's
      size that TPL runs. It initializes the DDR through SPD code, and copys
      final uboot image to DDR. So there are three stage uboot images:
      	* spl_boot, * tpl_boot, * final uboot image
      Signed-off-by: NYing Zhang <b40530@freescale.com>
      Acked-by: NYork Sun <yorksun@freescale.com>
      3aa29de0
    • Y
      powerpc: mpc85xx: Support booting from SD Card with SPL · bb0dc108
      Ying Zhang 提交于
      The code from the internal on-chip ROM. It loads the final uboot image
      into DDR, then jump to it to begin execution.
      
      The SPL's size is sizeable, the maximum size must not exceed the size of L2
      SRAM. It initializes the DDR through SPD code, and copys final uboot image
      to DDR. So there are two stage uboot images:
      	* spl_boot, 96KB size. The env variables are copied to L2 SRAM, so that
      	ddr spd code can get the interleaving mode setting in env. It loads
      	final uboot image from offset 96KB.
      	* final uboot image, size is variable depends on the functions enabled.
      Signed-off-by: NYing Zhang <b40530@freescale.com>
      Acked-by: NYork Sun <yorksun@freescale.com>
      bb0dc108
  17. 20 8月, 2013 1 次提交
    • J
      SPL: Makefile: Build a separate autoconf.mk for SPL · 39bc12dd
      Joel Fernandes 提交于
      SPL defines CONFIG_SPL_BUILD but this does not percolate to the
      autoconf.mk Makefile.  As a result the build breaks when
      CONFIG_SPL_BUILD is used in the board-specific include header file. With
      this, there is a possibility of having a CONFIG option defined in the
      header file but not defined in the Makefile causing all kinds of build
      failure and problems.
      
      It also messes things for up, for example, when one might want to
      undefine options to keep the SPL small and doesn't want to be stuck with
      the CONFIG options used for U-boot.  Lastly, this also avoids defining
      special CONFIG_SPL_ variables for cases where some options are required
      in U-boot but not in SPL.
      
      We add a spl-autoconf.mk rule that is generated for SPL with the
      CONFIG_SPL_BUILD flag and conditionally include it for SPL builds.
      Signed-off-by: NJoel Fernandes <joelf@ti.com>
      Signed-off-by: NYing Zhang <b40530@freescale.com>
      39bc12dd