Skip to content
Snippets Groups Projects
  1. Sep 16, 2014
  2. Sep 09, 2014
  3. Aug 28, 2014
  4. Aug 22, 2014
  5. Aug 21, 2014
    • Masahiro Yamada's avatar
      bf52b8ae
    • Masahiro Yamada's avatar
      scripts: objdiff: sync with Linux 3.16 · 9b586031
      Masahiro Yamada authored
      
      Import scripts/objdiff improvements from Linux v3.16, which
      consists of 7 commits written by me.
      
        commit 7fa0e6db3cedc9b70d68a4170f1352e2b1aa0f90
        scripts: objdiff: support directories for the augument of record command
      
        commit 8ac28bee76eec006aac5ba5c418878a607d53a9b
        scripts: objdiff: fix a comment
      
        commit 8b5d0f20d64f00ffd5685879f8eb3659379f5aaa
        scripts: objdiff: change the extension of disassembly from .o to .dis
      
        commit 18165efa8203a34d82f60a1831ea290e7304c654
        scripts: objdiff: improve path flexibility for record command
      
        commit 1ecc8e489abfdaa6d8d1689f7ff62fdf1adda30c
        scripts: objdiff: remove unnecessary code
      
        commit 5ab370e91af70d5f1b1dbaec78798a2ff236a2d5
        scripts: objdiff: direct error messages to stderr
      
        commit fd6e12423311697860f30d10398a0f9eb91977d2
        scripts: objdiff: get the path to .tmp_objdiff more simply
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      9b586031
    • 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
    • Masahiro Yamada's avatar
      tools, scripts: refactor error-out statements of Python scripts · 31e2141d
      Masahiro Yamada authored
      
      In Python, sys.exit() function can also take an object other
      than an integer.
      
      If an integer is given to the argument, Python exits with the return
      code of it.  If a non-integer argument is given, Python outputs it
      to stderr and exits with the return code of 1.
      
      That means,
      
          print >> sys.stderr, "Blah Blah"
          sys.exit(1)
      
      is equivalent to
      
          sys.exit("Blah Blah")
      
      The latter is a useful shorthand.
      
      Note:
      Some error messages in Buildman and Patman were output to stdout.
      But they should go to stderr.  They are also fixed by this commit.
      This is a nice side effect.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      31e2141d
  6. Aug 09, 2014
  7. 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
    • Masahiro Yamada's avatar
      kconfig: import Kconfig files from Linux 3.16-rc7 · 0a9064fb
      Masahiro Yamada authored
      
      Import
        - scripts/kconfig/*
        - include/linux/kconfig.h
      from Linux 3.16-rc7.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      0a9064fb
  8. Jul 29, 2014
    • Masahiro Yamada's avatar
      scripts: add scripts/show-gnu-make to get GNU Make command name · b68a4062
      Masahiro Yamada authored
      
      U-Boot is expected to be built on various platforms.
      
      We should keep in mind that the command 'make' is not always GNU Make,
      while all the makefiles are written for GNU Make.
      
      For example, on Linux, people generally do:
      
        make <board>_config; make
      
      But FreeBSD folks do
      
        gmake <board>_config; gmake
      
      (The command 'make' on FreeBSD is BSD Make, not GNU Make)
      
      It is not a good idea to hard-code the command name 'make'
      in MAKEALL or buildman.
      
      They should call this helper script and get the command name
      for GNU Make.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      b68a4062
  9. Jul 22, 2014
    • Masahiro Yamada's avatar
      scripts: add mailmapper, a tool to create/update mailmap file · 45765eed
      Masahiro Yamada authored
      
      This tool helps to create/update the mailmap file.
      
      It runs 'git shortlog' internally and searches differently spelled author
      names which share the same email address. The author name with the most
      commits is asuumed to be a canonical real name. If the number of commits
      from the cananonical name is equal to or greater than 'MIN_COMMITS' (=50),
      the entry for the cananical name will be output. ('MIN_COMMITS' is used
      here because we do not want to create a fat mailmap by adding every author
      with only a few commits.)
      
      If there exists a mailmap file specified by the mailmap.file configuration
      options or '.mailmap' at the toplevel of the repository, it is used as
      a base file.
      
      The base file and the newly added entries are merged together and sorted
      alphabetically (but the comment block is kept untouched), and then printed
      to standard output.
      
       Usage
       -----
      
        scripts/mailmapper
      
      prints the mailmapping to standard output.
      
        scripts/mailmapper > tmp; mv tmp .mailmap
      
      will be useful for updating '.mailmap' file.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      45765eed
  10. Jun 20, 2014
  11. Jun 11, 2014
  12. Jun 05, 2014
  13. Apr 18, 2014
    • Masahiro Yamada's avatar
      kbuild: sync with Linux Kernel v3.15-rc1 · 598e2d33
      Masahiro Yamada authored
      
      This commit imports Kbuild-related updates
      from v3.14 to v3.15-rc1.
      
       - commit 3d3d6b8474204b6819688c9800774d52d370a538
          kbuild: LLVMLinux: Adapt warnings for compilation with clang
       - commit 61163efae02040f66a95c8ed17f4407951ba58fa
          kbuild: LLVMLinux: Add Kbuild support for building kernel with Clang
       - commit 79192ca8ebd9a25c583aa46024a250fef1e7766f
          scripts: objdiff: detect object code changes between two commits
       - commit 1c9e70a55b088d97a59241744fe459409d0c3582
          kbuild: create a build directory automatically for out-of-tree build
       - commit a03fcb50e816a69acffb13b5e56db75063aeba8a
          kbuild: remove redundant '.*.cmd' pattern from make distclean
       - commit 13338935f1574a2dcd1c891461b0dcc42f8cff42
          kbuild: move "quote" to Kbuild.include to be consistent
       - commit bfdfaeae500a3b194b73b01e92a8034791a58b7f
          kbuild: specify build_docproc as a phony target
       - commit f4d4ffc03efc864645b990e1d579bbe1b8e358a4
          kbuild: dtbs_install: new make target
       - commit 1e64ff42ea3d8d2fc8aa71f9717b3c1cb6c2f893
          Kbuild, lto: Disable LTO for asm-offsets.c
       - commit ccbef1674a1579842c7dbdf554efca85d2cd245a
          Kbuild, lto: add ld-version and ld-ifversion macros
       - commit ae63b2d7bdd9bd66b88843be0daf8e37d8f0b574
          scripts/tags.sh: Ignore *.mod.c
       - commit e36aaea28972c57a32a3ba5365e61633739719b9
          kbuild: Fix silent builds with make-4
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      598e2d33
  14. Mar 28, 2014
  15. Mar 07, 2014
    • Masahiro Yamada's avatar
      kbuild: improve Kbuild speed · 026f9cf2
      Masahiro Yamada authored
      
      Kbuild brought about many advantages for us but a significant
      performance regression was reported by Simon Glass.
      
      After some discussions and analysis, it turned out
      its main cause is in $(call cc-option,...).
      
      Historically, U-Boot parses all config.mk
      (arch/*/config.mk and board/*/config.mk)
      every time descending into subdirectories.
      That means cc-options are evaluated over and over again.
      
      $(call cc-option,...) is useful but costly.
      So we want to evaluate them only in ./Makefile
      and spl/Makefile and export compiler flags.
      
      This commit changes the build system as follows:
      
        - Modify scripts/Makefile.build to not include config.mk
          Instead, add $(PLATFORM_CPPFLAGS) to asflags-y, ccflags-y,
          cppflags-y.
      
        - Export many variables
          Going forward, Kbuild will not parse config.mk files
          when it descends into subdirectories.
          If we want to set variables in config.mk and use them
          in subdirectories, they must be exported.
      
          This is the list of variables to get exported:
            PLATFORM_CPPFLAGS
            CPUDIR
            BOARDDIR
            OBJCOPYFLAGS
            LDFLAGS
            LDFLAGS_FINAL
              (used in nand_spl/board/*/*/Makefile)
            CONFIG_STANDALONE_LOAD_ADDR
              (used in examples/standalone/Makefile)
            SYM_PREFIX
              (used in examples/standalone/Makefile)
            RELFLAGS
              (used in examples/standalone/Makefile)
      
        - Delete CPPFLAGS
          This variable has been replaced with PLATFORM_CPPFLAGS
      
        - Copy gcclibdir from example/standalone/Makefile
          to arch/sparc/config.mk
          The reference in CONFIG_STANDALONE_LOAD_ADDR must be
          resolved before it is exported.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Reported-by: default avatarSimon Glass <sjg@chromium.org>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Tested-by: Simon Glass <sjg@chromium.org> [on Sandbox]
      Tested-by: Stephen Warren <swarren@nvidia.com> [on Tegra]
      026f9cf2
  16. Mar 04, 2014
    • Tom Rini's avatar
      scripts: update checkpatch.pl to latest upstream version · 6b9709d9
      Tom Rini authored
      
      Update to v3.14-rc4's version of checkpatch.pl.  In doing so we drop the
      changes to top_of_kernel_tree() as we pass in --no-tree and drop our
      changes about MAINTAINERS as that's for reporting checkpatch.pl problems
      itself (and upstream has said they'll reword this section to be
      clearer).
      
      Signed-off-by: default avatarTom Rini <trini@ti.com>
      6b9709d9
  17. Feb 26, 2014
  18. Feb 25, 2014
    • Masahiro Yamada's avatar
      kbuild: consolidate version and timestamp headers generation · 7424145f
      Masahiro Yamada authored
      
      - Generate include/generated/{timestamp.h, version.h}
         more simply by using filechk rule.
      
       - Add $(UBOOTRELEASE) variable and re-write u-boot.imx rule
         more simply.
      
       - Rename U_BOOT_VERSION in Makefile to UBOOTVERSION
      
         Before this commit, the same variable name, "U_BOOT_VERSION"
         was used for two different strings.
      
         One of them was defined in Makefile.
         It takes the form like "2014.01-rc1" and used in
         makefiles and script files.
      
         The other is defined in include/generated/version.h
         It takes the form like "U-Boot 2014.01-rc1-00010-gbe6d426-dirty"
         and used in C and Aseembler.
      
         It is confusing when grepping the source tree. So, this commit
         renames the former to UBOOTVERSION.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      7424145f
    • Masahiro Yamada's avatar
      Makefile: add a new script to check -fstack-usage support · 5b1f1f4a
      Masahiro Yamada authored
      
      If -fstack-usage option is given to crosstools
      that do not support it, gcc displays a warning message
      but still exits with status 0.
      
      This means we can not rely on $(call cc-option,...)
      to detect if -fstack-usage option is supported or not.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      5b1f1f4a
  19. Feb 19, 2014
Loading