Skip to content
Snippets Groups Projects
  1. Sep 16, 2014
  2. Sep 11, 2014
  3. Sep 02, 2014
  4. Aug 28, 2014
  5. Aug 22, 2014
  6. Aug 21, 2014
    • Vasili Galka's avatar
      Makefile: Use Kbuild style for system_map.o generation step · cac8f38a
      Vasili Galka authored
      
      The command generating the "common/system_map.o" file was always shown
      during the build making the output messy. Now it is called using the
      Kbuild "cmd" macro, so that the full command is shown only when
      building in verbose mode.
      
      Signed-off-by: default avatarVasili Galka <vvv444@gmail.com>
      cac8f38a
    • Masahiro Yamada's avatar
      kbuild: sync mixed targets handling with Linux 3.16 · e7734404
      Masahiro Yamada authored
      
      "make %_config all" was supported for the first time in U-Boot:
        commit 53bca5ab
        kbuild: support simultaneous board configuration and "make all"
      
      Surprisingly it had not been working in Linux Kernel for a long time.
      
      So I sent back the patch to the Linux Kbuild community and it was
      accepted with a little code improvement, at commit 9319f453.
      
      Now, you can do "make defconfig all" or "make %_defconfig all"
      in Linux too.
      
      This commit updates some scripts to fill the code-diff
      between Linux and U-Boot.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      e7734404
    • Masahiro Yamada's avatar
      kbuild: move extra gcc checks to scripts/Makefile.extrawarn · 6419e144
      Masahiro Yamada authored
      
      This commit was imported from Linux Kernel:
      commit a86fe353 written by me.
      
      W=... provides extra gcc checks.
      
      Having such code in scripts/Makefile.build results in the same flags
      being added to KBUILD_CFLAGS multiple times becuase
      scripts/Makefile.build is invoked every time Kbuild descends into
      the subdirectories.
      
      Since the top Makefile is already too cluttered, this commit moves
      all of extra gcc check stuff to a new file scripts/Makefile.extrawarn,
      which is included from the top Makefile.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      6419e144
  7. Aug 09, 2014
  8. Aug 06, 2014
  9. Jul 30, 2014
    • Masahiro Yamada's avatar
      kconfig: switch to Kconfig · 51148790
      Masahiro Yamada authored
      
      This commit enables Kconfig.
      Going forward, we use Kconfig for the board configuration.
      mkconfig will never be used. Nor will include/config.mk be generated.
      
      Kconfig must be adjusted for U-Boot because our situation is
      a little more complicated than Linux Kernel.
      We have to generate multiple boot images (Normal, SPL, TPL)
      from one source tree.
      Each image needs its own configuration input.
      
      Usage:
      
      Run "make <board>_defconfig" to do the board configuration.
      
      It will create the .config file and additionally spl/.config, tpl/.config
      if SPL, TPL is enabled, respectively.
      
      You can use "make config", "make menuconfig" etc. to create
      a new .config or modify the existing one.
      
      Use "make spl/config", "make spl/menuconfig" etc. for spl/.config
      and do likewise for tpl/.config file.
      
      The generic syntax of configuration targets for SPL, TPL is:
      
        <target_image>/<config_command>
      
      Here, <target_image> is either 'spl' or 'tpl'
            <config_command> is 'config', 'menuconfig', 'xconfig', etc.
      
      When the configuration is done, run "make".
      (Or "make <board>_defconfig all" will do the configuration and build
      in one time.)
      
      For futher information of how Kconfig works in U-Boot,
      please read the comment block of scripts/multiconfig.py.
      
      By the way, there is another item worth remarking here:
      coexistence of Kconfig and board herder files.
      
      Prior to Kconfig, we used C headers to define a set of configs.
      
      We expect a very long term to migrate from C headers to Kconfig.
      Two different infractructure must coexist in the interim.
      
      In our former configuration scheme, include/autoconf.mk was generated
      for use in makefiles.
      It is still generated under include/, spl/include/, tpl/include/ directory
      for the Normal, SPL, TPL image, respectively.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      51148790
  10. Jul 25, 2014
  11. Jul 22, 2014
    • Igor Grinberg's avatar
      Makefile: fix tags target documentation · 5fc2f924
      Igor Grinberg authored
      
      Replace the TAGS target name by the actual ctags target name.
      Also, add etags target documentation.
      
      Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      5fc2f924
    • Igor Grinberg's avatar
      Makefile: fix ctags/etags clean targets · b3dfe43c
      Igor Grinberg authored
      
      Commit efcf8619 (kbuild: use scripts/Makefile.clean)
      refactored the cleaning targets and accidentially replaced the actually
      generated "ctags" and "etags" files in the file list by "tags" and "TAGS".
      "tags" and "TAGS" are not part of the Makefile build targets and
      therefore should not be a part of the list for clean targets.
      
      Substitute the actually generated files instead, to fix the clean
      targets behavior.
      
      Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      b3dfe43c
    • Igor Grinberg's avatar
      Makefile: fix the {c, e}tags/cscope build targets · 8d819ab5
      Igor Grinberg authored
      
      Commit 9e414032 (kbuild: change out-of-tree build)
      changed the U-Boot build working directory to the output tree
      for the out-of-tree builds.
      This broke the {c,e}tags/cscope build targets as TAG_SUBDIRS variable
      collected directories based on assumption that the build working
      directory is the U-Boot source tree directory.
      
      Fix the {c,e}tags/cscope build targets by adding the $(srctree) prefix.
      Also, remove the $(obj) prefix from the etags build target to finish
      the $(obj) prefix removal started by the same commit.
      
      Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: default avatarIgor Grinberg <grinberg@compulab.co.il>
      8d819ab5
  12. Jul 14, 2014
  13. Jul 07, 2014
  14. Jul 02, 2014
  15. Jun 20, 2014
  16. Jun 19, 2014
  17. Jun 11, 2014
    • Masahiro Yamada's avatar
      kbuild: move spl/Makefile to scripts/Makefile.spl · c7163083
      Masahiro Yamada authored
      
      All files under spl/ and tpl/ are generated during the build process
      except spl/Makefile.
      
      We can simplify clean-rule and git-ignore by moving spl/Makefile
      to somewhere else.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      c7163083
    • Masahiro Yamada's avatar
      15c939f9
    • Simon Glass's avatar
      fdt: Add DEV_TREE_BIN option to specify a device tree binary file · 63b4b5ba
      Simon Glass authored
      
      In some cases, an externally-built device tree binary is required to be
      attached to U-Boot. An example is when using image signing, since in that
      case the .dtb file must include the public keys.
      
      Add a DEV_TREE_BIN option to the Makefile, and update the documentation.
      
      Usage is something like:
      
      	make DEV_TREE_BIN=boot/am335x-boneblack-pubkey.dtb
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      63b4b5ba
    • Simon Glass's avatar
      Check that u-boot.bin size looks correct · 89742924
      Simon Glass authored
      
      Check that the image size matches the size we get from u-boot.bin. If it
      doesn't, that generally means that some extra sections are being added to
      u-boot.bin, meaning that it is not possible to access data appended to
      the U-Boot binary. This is used for device tree, so needs to work.
      
      This problem was introduced by commit b02bfc4d. By adding a test we can
      prevent a reccurence.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      89742924
    • Jeroen Hofstee's avatar
      Makefile: fix clang warnings due to clang support · 9262233a
      Jeroen Hofstee authored
      
      Building u-boot tools with clang as a host compiler e.g. on
      FreeBSD with `gmake HOSTCC=clang CONFIG_USE_PRIVATE_LIBGCC=y tools`
      leads to many warnings [1] for every compiler invocation since
      commit 598e2d33. Part of mentioned commit imports linux patches:
      
       - kbuild: LLVMLinux: Adapt warnings for compilation with clang
       - kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
      
      No version of clang supports the gcc fno-delete-null-pointer-checks
      though, but it is only passed to clang. Gcc does not have the clang
      specific Qunused-arguments for the target. Furthermore several
      warnings are disabled which aren't encountered in u-boot. Since such
      a build has worked for quite some time and works after removing these
      changes, just remove the clang specific handling to restore normal
      building with clang as hostcc.
      
      [1] Actual warnings
      -------------------
        GEN     include/autoconf.mk.dep
      arm-freebsd-gcc: unrecognized option '-Qunused-arguments'
      
        HOSTCC  scripts/basic/fixdep
      clang: warning: argument unused during compilation:
                      '-fno-delete-null-pointer-checks'
      
      cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
      Signed-off-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
      9262233a
  18. Jun 10, 2014
  19. Jun 05, 2014
  20. May 27, 2014
  21. May 25, 2014
  22. May 23, 2014
  23. May 15, 2014
    • Masahiro Yamada's avatar
      build: support a new image u-boot-dtb.img · 2405d09c
      Masahiro Yamada authored
      
      In SPL framework, SPL uses u-boot.img to load u-boot.bin.
      Here,
          u-boot.img = uImage header + u-boot.bin
      
      To use OF control with a separate devicetree,
      u-boot.dtb must be placed right after u-boot.bin.
      In this case, u-boot-dtb.bin is generally used.
      Here,
          u-boot-dtb.bin = u-boot.bin + u-boot.dtb
      
      We need u-boot-dtb.img to use both SPL framework
      and separate OF control at the same time.
          u-boot-dtb.img = uImage header + u-boot-dtb.bin
      
      For example, Zynq boards already define all of
        - CONFIG_SPL
        - CONFIG_OF_CONTROL
        - CONFIG_OF_SEPARATE
      
      So, the support of u-boot-dtb.img is urgent.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Michal Simek <michal.simek@xilinx.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      2405d09c
  24. May 13, 2014
    • Christian Riesch's avatar
      arm, davinci: Use CONFIG_SPL_PAD_TO for padding the SPL in an ais image · 532d5318
      Christian Riesch authored
      
      The commits
      
      commit b7b5f1a1
      Author: Albert ARIBAUD <albert.u.boot@aribaud.net>
      da850evm, da850_am18xxevm: convert to CONFIG_SPL_MAX_FOOTPRINT
      
      and
      
      commit e7497891
      Author: Albert ARIBAUD <albert.u.boot@aribaud.net>
      cam_enc_4xx: convert to CONFIG_SPL_MAX_FOOTPRINT
      
      replaced CONFIG_SPL_MAX_SIZE by CONFIG_SPL_MAX_FOOTPRINT. However,
      CONFIG_SPL_MAX_SIZE is used in the Makefile for padding the SPL
      when preparing an u-boot.ais image. By removing CONFIG_SPL_MAX_SIZE
      said commits broke the ais image of the da850evm and cam_enc_4xx
      configurations.
      
      This patch converts the u-boot.ais target to use CONFIG_SPL_PAD_TO
      instead of CONFIG_SPL_MAX_SIZE for padding the SPL and adds
      a #define CONFIG_SPL_PAD_TO where it is required.
      
      Signed-off-by: default avatarChristian Riesch <christian.riesch@omicron.at>
      Reported-by: default avatarTom Taylor <ttaylor.tampa@gmail.com>
      Cc: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
      Cc: Heiko Schocher <hs@denx.de>
      Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
      532d5318
  25. May 12, 2014
Loading