1. 02 Nov, 2017 2 commits
  2. 13 Mar, 2017 1 commit
  3. 09 Mar, 2017 1 commit
  4. 27 Feb, 2017 1 commit
  5. 13 Feb, 2017 1 commit
  6. 08 Feb, 2017 3 commits
    • Masahiro Yamada's avatar
      kbuild: beautify the log of config whitelist check · 1bdd942b
      Masahiro Yamada authored
      Use the kbuild style log.
      
      Prior to this commit:
      
      ./scripts/check-config.sh u-boot.cfg \
      	./scripts/config_whitelist.txt . 1>&2
      
      With this commit:
      
        CFGCHK  u-boot.cfg
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      1bdd942b
    • Masahiro Yamada's avatar
      cmd: rework "license" command · d726f225
      Masahiro Yamada authored
      The previous commit ("add a new command to show .config contents")
      improves the basic infrastructure of "embed a compressed file into
      the U-Boot image, and print it by a command".  The same pattern for
      the "license" command.
      
      This commit reworks the command to improve the following:
      
      [1] Improve log style
      
      Kbuild style log
      
        GZIP    cmd/license_data.gz
        CHK     cmd/license_data_gz.h
        UPD     cmd/license_data_gz.h
        CHK     cmd/license_data_size.h
        UPD     cmd/license_data_size.h
      
      instead of the bare Make log:
      
      cat ./Licenses/gpl-2.0.txt | gzip -9 -c | \
      		tools/bin2header license_gzip > ./include/license.h
      
      [2] Collect related code into the "cmd" directory
      
      Prior to this commit, the license.h was created by tools/Makefile,
      placed under the "include" directory, included from cmd/license.c,
      and deleted by the top-level Makefile.  It is not a good idea to
      scatter related code.
      
      [3] Drop the fixed-malloc size LICENSE_MAX
      
      Just allocate the minimum required size of buffer because we know
      the size of the original gpl-2.0.txt.
      
      [4] Fix more issues
      
      Terminate the buffer with zero to prevent puts() from over-running.
      Add "static" to do_license.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d726f225
    • Masahiro Yamada's avatar
      cmd: add a new command "config" to show .config contents · 61304dbe
      Masahiro Yamada authored
      This feature is inspired by /proc/config.gz of Linux.  In Linux,
      if CONFIG_IKCONFIG is enabled, the ".config" file contents are
      embedded in the kernel image.  If CONFIG_IKCONFIG_PROC is also
      enabled, the ".config" contents are exposed to /proc/config.gz.
      Users can do "zcat /proc/config.gz" to check which config options
      are enabled on the running kernel image.
      
      The idea is almost the same here; if CONFIG_CMD_CONFIG is enabled,
      the ".config" contents are compressed and saved in the U-Boot image,
      then printed by the new command "config".
      
      The usage is quite simple.  Enable CONFIG_CMD_CONFIG, then run
       > config
      from the command line interface.  The ".config" contents will be
      printed on the console.
      
      This feature increases the U-Boot image size by about 4KB (this is
      mostly due to the gzip-compressed .config file).  By default, it is
      enabled only for Sandbox because we do not care about the memory
      footprint on it.  Of course, this feature is architecture agnostic,
      so you can enable it on any board if the image size increase is
      acceptable for you.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      61304dbe
  7. 06 Feb, 2017 1 commit
  8. 01 Feb, 2017 1 commit
  9. 31 Jan, 2017 1 commit
  10. 09 Jan, 2017 1 commit
  11. 03 Jan, 2017 1 commit
  12. 02 Jan, 2017 2 commits
  13. 19 Dec, 2016 4 commits
  14. 05 Dec, 2016 1 commit
  15. 02 Dec, 2016 1 commit
    • Simon Glass's avatar
      Makefile: Add a target to create the .cfg files · 1bd87630
      Simon Glass authored
      A common requirement when converting CONFIG options to Kconfig is to check
      that the effective configuration has not changed due to the conversion. Add
      a target which creates this configuration (in the form of u-boot.cfg) but
      does not build U-Boot. This speeds up the checking.
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      1bd87630
  16. 14 Nov, 2016 3 commits
  17. 31 Oct, 2016 1 commit
  18. 30 Oct, 2016 1 commit
  19. 18 Oct, 2016 1 commit
  20. 07 Oct, 2016 2 commits
    • Masahiro Yamada's avatar
      kbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk · e19b0fb4
      Masahiro Yamada authored
      Our build system still parses ad-hoc CONFIG options in header files
      and generates include/autoconf.mk so that Makefiles can reference
      them.  This gimmick was introduced in the pre-Kconfig days and will
      be kept until Kconfig migration is completed.
      
      The include/autoconf.mk is generated like follows:
      
        [1] Preprocess include/common.h with -DDO_DEPS_ONLY and
            retrieve macros into include/autoconf.mk.tmp
        [2] Reformat include/autoconf.mk.dep into include/autoconf.mk
            with tools/scripts/define2mk.sed script
        [3] Remove include/autoconf.mk.tmp
      
      Here, include/autoconf.mk.tmp is similar to u-boot.cfg, which is
      also generated by preprocessing include/config.h with -DDO_DEPS_ONLY.
      In other words, there is much overlap among include/autoconf.mk and
      u-boot.cfg build rules.
      
      So, the idea is to split the build rule of include/autoconf.mk
      into two stages.  The first preprocesses headers into u-boot.cfg.
      The second parses the u-boot.cfg into include/autoconf.mk.  The
      build rules of u-boot.cfg in Makefile and spl/Makefile will be gone.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      e19b0fb4
    • Masahiro Yamada's avatar
      kbuild: move no_new_adhoc_configs_check to "all" target command · 4bf06d11
      Masahiro Yamada authored
      I am going to move the build rule of u-boot.cfg.  Before that,
      no_new_adhoc_configs_check must be tweaked to not depend on it.
      
      The ad-hoc option check can be done at the end of build, along
      with other checks.
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      4bf06d11
  21. 06 Oct, 2016 1 commit
  22. 03 Oct, 2016 1 commit
  23. 22 Sep, 2016 2 commits
    • Stephen Warren's avatar
      Makefile: rm u-boot.cfg dependencies are missing · a6c13097
      Stephen Warren authored
      Prior to the previous patch, a freshly created .u-boot.cfg.cmd may not
      correctly represent all dependencies for u-boot.cfg. The previous change
      only solved this issue for fresh builds; when performing an incremental
      build, the deficient .u-boot.cfg.cmd is already present, so u-boot.cfg
      is not rebuilt, and hence .u-boot.cfg.cmd is not rebuilt with the correct
      content.
      
      Solve this by explicitly detecting when the dependency file .u-boot.cfg.d
      has not been integrated into .u-boot.cfg.cmd, and force u-boot.cfg to be
      rebuilt in this case by deleting it first. This is possible since
      if_changed_dep will always delete .u-boot.cfg.d when it executes
      successfully, so its presence means either that the previous build was
      made by a source tree that contained a Makefile that didn't include the
      previous patch, or that the build failed part way through executing
      if_changed_dep for u-boot.cfg. Forcing a rebuild of u-boot.cfg is required
      in the former case, and will cause no additional work in the latter case,
      since the file would be rebuilt anyway for the same reason it was being
      rebuilt by the previous build.
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      a6c13097
    • Stephen Warren's avatar
      Makefile: use if_change_dep for u-boot.cfg · fcd29a4d
      Stephen Warren authored
      cmd_cpp_cfg generates a dependency output, but because it's invoked using
      if_changed rather than if_changed_dep, that dependency file is ignored.
      This results in Kbuild not knowing about which files u-boot.cfg depends
      on, so it may not be rebuilt when required.
      
      A practical result of this is that u-boot.cfg may continue to reference
      CONFIG_ options that no longer exist in the source tree, and this can
      cause the adhoc config options check to fail.
      
      This change modifies Makefile to use if_changed_dep, which in turn causes
      all dependencies to be known to the next make invocation.
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      fcd29a4d
  24. 16 Sep, 2016 1 commit
  25. 14 Sep, 2016 1 commit
  26. 12 Sep, 2016 1 commit
  27. 23 Aug, 2016 1 commit
  28. 20 Aug, 2016 2 commits