Skip to content
Snippets Groups Projects
  1. Nov 21, 2014
  2. Nov 17, 2014
  3. Nov 12, 2014
  4. Nov 07, 2014
    • Masahiro Yamada's avatar
      kbuild: sync misc scripts with Linux 3.18-rc1 · 176d0982
      Masahiro Yamada authored
      
      This commit imports some updates in misc scripts from Linux 3.18-rc1.
      
      [1] commit cbb4d3e6510b99522719c5ef0 by Horia Geanta
      scripts/kernel-doc: handle object-like macros
      
      [2] commit 164f0d2efaaef83 by Michal Marek
      kbuild: Fix handling of backslashes in *.cmd files
      
      [3] commit 270a00963cd367214e by Randy Dunlap
      scripts/kernel-doc: recognize __meminit
      
      [4] commit a4954fd7724c0f55361eb5 by Masahiro Yamada
        kbuild: remove obj-n and lib-n handling
      
      [5] commit 5b2389b45d1a9c12b9f by Masahiro Yamada
      kbuild: simplify build, clean, modbuiltin shorthands
      
      Signed-off-by: default avatarHoria Geanta <horia.geanta@freescale.com>
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      Signed-off-by: default avatarRandy Dunlap <rdunlap@infradead.org>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      176d0982
    • Masahiro Yamada's avatar
      kconfig: sync kconfig files with Linux 3.18-rc1 · ad618992
      Masahiro Yamada authored
      
      This commit imports Kconfig updates from Linux 3.18-rc1.
      
      'kvmconfig' and 'tinyconfig' help message have been commented out
      since they are unavailable at least now;  in the future perhaps
      we can implement 'tinyconfig' to disable most of CONFIG_CMD_* to
      create a very small U-Boot image.
      
      [1] commit 3aaefce10351 by Josh Triplett
      x86, platform, kconfig: move kvmconfig functionality to a helper
      
      [2] commit 0da1d4a0b951 by Josh Triplett
      x86: Add "make tinyconfig" to configure the tiniest possible kernel
      
      [3] commit c40724d3f381 by Brian Norris
        kconfig: lxdialog: fix spelling
      
      [4] commit 7285996aa000 by Brian Norris
        kconfig: nconfig: fix multi-byte UTF handling
      
      Signed-off-by: default avatarJosh Triplett <josh@joshtriplett.org>
      Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      ad618992
    • Masahiro Yamada's avatar
      kbuild: sync top Makefile with Linux 3.18-rc1 · ffe29ebc
      Masahiro Yamada authored
      
      Since Linux 3.15, relative path feature and related fixes,
      cleanups have been merged to the top Makefile.
      
      The relative path feature looks stable enough, so let's import it
      to U-Boot along with various cleanups.
      
      Commits imported from Linux (some need adjustment) are:
      
      [1] commit 7e1c04779efd by Michal Marek
        kbuild: Use relative path for $(objtree)
      
      [2] commit 890676c65d69 by Michal Marek
        kbuild: Use relative path when building in the source tree
      
      [3] commit 9da0763bdd82 by Michal Marek
        kbuild: Use relative path when building in a subdir of the source tree
      
      [4] commit c2e28dc975ea by Michal Marek
        kbuild: Print the name of the build directory
      
      [5] commit 066b7ed95580 by Michal Marek
        kbuild: Do not print the build directory with make -s
      
      [6] commit 3f1d9a6cec01 by Michal Marek
        kbuild: make -s should be used with kernelrelease/kernelversion/image_name
      
      [7] commit 7ff525712acf by Masahiro Yamada
        kbuild: fake the "Entering directory ..." message more simply
      
      [8] commit 745a254322c8 by Masahiro Yamada
        kbuild: use $(Q) for sub-make target
      
      [9] commit aa55c8e2f7a3 by Masahiro Yamada
        kbuild: handle C=... and M=... after entering into build directory
      
      [10] commit ab7474ea5361 by Borislav Petkov
        Kbuild: Ignore GREP_OPTIONS env variable
      
      To use relative path feature, tools/Makefile and scripts/Makefile.autoconf
      must be tweaked.
      
      Signed-off-by: default avatarMichal Marek <mmarek@suse.cz>
      Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      ffe29ebc
    • Masahiro Yamada's avatar
      kbuild: improve multi-objs dependency and cleanups · cb6e7b0d
      Masahiro Yamada authored
      
      Since Linux 3.18-rc1, Kbuild is able to handle multi-objs
      dependency correctly, which also allows us futher cleanups
      of some makefiles.
      
      This commit imports those commits:
      
      [1] commit c8589d1e9e01 by Masahiro Yamada
      kbuild: handle multi-objs dependency appropriately
      
      [2] commit 97e3226e6e98 by Masahiro Yamada
      kbuild: handle the dependency of multi-objs hostprogs appropriately
      
      [3] commit 022af62d0190 by Masahiro Yamada
      kbuild: refactor script/kconfig/Makefile
      
      [4] commit 221ecca6cafe by Masahiro Yamada
      kbuild: remove redundant clean-files from scripts/kconfig/Makefile
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      cb6e7b0d
    • Masahiro Yamada's avatar
      kbuild: bug fixes and cleanups of Makefile.host · 87e90729
      Masahiro Yamada authored
      
      This commit imports updates of scripts/Makefile.host
      from Linux 3.18-rc1.
      
      Imported commits are:
      
      [1] commit d8d9efe22709 by Masahiro Yamada
        kbuild: fix a typo in scripts/Makefile.host
      
      [2] commit edb950c17de0 by Masahiro Yamada
        kbuild: fix a bug of C++ host program handling
      
      [3] commit 62e2210798ed by Masahiro Yamada
        kbuild: drop shared library support from Makefile.host
      
      [4] commit 663935593915 by Masahiro Yamada
        kbuild: clean up scripts/Makefile.host
      
      [5] commit 1791ff7179f6 by Masahiro Yamada
        kbuild: clean-up and bug fix of scripts/Makefile.host
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      87e90729
  5. Nov 05, 2014
  6. Nov 04, 2014
  7. Oct 27, 2014
  8. Oct 23, 2014
  9. Oct 10, 2014
  10. Sep 25, 2014
    • Joe Perches's avatar
      checkpatch: remove unnecessary + after {8,8} · e3a4facd
      Joe Perches authored
      
      Pick the following commit from Linux kernel:
      commit 66cb4ee0e52ca721f609fd5eec16187189ae5fda
      Author: Joe Perches <joe@perches.com>
      Date:   Wed Sep 10 09:40:47 2014 +1000
      
      checkpatch: remove unnecessary + after {8,8}
      
      There's a useless "+" use that needs to be removed as perl 5.20 emits a
      "Useless use of greediness modifier '+'" message each time it's hit.
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Tom Rini <trini@ti.com>
      e3a4facd
  11. Sep 24, 2014
  12. Sep 16, 2014
  13. Sep 09, 2014
  14. Aug 28, 2014
  15. Aug 22, 2014
  16. 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
  17. Aug 09, 2014
  18. 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
  19. 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
  20. 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
Loading