Skip to content
Snippets Groups Projects
  1. Nov 14, 2016
  2. Oct 31, 2016
  3. Oct 30, 2016
  4. Oct 18, 2016
  5. Oct 07, 2016
    • 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
  6. Oct 06, 2016
  7. Oct 03, 2016
  8. Sep 22, 2016
    • 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
  9. Sep 16, 2016
  10. Sep 14, 2016
  11. Sep 12, 2016
  12. Aug 23, 2016
  13. Aug 20, 2016
  14. Aug 15, 2016
  15. Aug 06, 2016
  16. Jul 27, 2016
  17. Jul 26, 2016
  18. Jul 15, 2016
  19. Jul 14, 2016
  20. Jul 11, 2016
  21. Jul 01, 2016
  22. Jun 24, 2016
  23. Jun 20, 2016
  24. Jun 06, 2016
  25. May 27, 2016
  26. May 23, 2016
  27. May 16, 2016
  28. May 02, 2016
  29. Apr 25, 2016
  30. Apr 21, 2016
  31. Apr 12, 2016
  32. Apr 10, 2016
  33. Mar 22, 2016
    • Tom Rini's avatar
      cmd: Fix license command · 8a7367ac
      Tom Rini authored
      
      The license command isn't usually built and has a few problems:
      - The rules to generate license.h haven't worked in a long time,
        re-write these based on the bmp_logo.h rules.
      - 'tok' is unused and the license text size has increased
      - bin2header.c wasn't grabbing unistd.h to know the prototype for
        read().
      
      Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
      Signed-off-by: default avatarTom Rini <trini@konsulko.com>
      8a7367ac
Loading