Skip to content
Snippets Groups Projects
  1. Nov 10, 2014
  2. 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
      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: remove "clobber" target · 48aa812d
      Masahiro Yamada authored
      
      Now we stick to Linux Kernel's build system, so squash
      "clobber" to "clean" target.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      48aa812d
    • Masahiro Yamada's avatar
      generic-board: make compile-time noise for non-generic boards · 5add293b
      Masahiro Yamada authored
      
      Commit 0f605c15 (Start the deprecation process for generic board)
      added a run-time warning message.  Let's be noisier for non-generic
      boards to inform the dead line of the conversion.
      
      This commit intentionally outputs a warning message to stdout.
      We still have many unconverted boards.  If we print the message
      to stderr, MAKEALL and buildman will report tons of broken boards
      and really important information will be buried.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@ti.com>
      5add293b
  3. Nov 05, 2014
  4. Oct 23, 2014
  5. Oct 14, 2014
  6. Oct 13, 2014
  7. Oct 07, 2014
  8. Sep 24, 2014
    • Masahiro Yamada's avatar
      kbuild: refactor some makefiles · f494e0a1
      Masahiro Yamada authored
      
      [1] Move driver/core/, driver/input/ and drivers/input/ entries
          from the top Makefile to drivers/Makefile
      
      [2] Remove the conditional by CONFIG_DM in drivers/core/Makefile
          because the whole drivers/core directory is already selected
          by CONFIG_DM in the upper level
      
      [3] Likewise for CONFIG_DM_DEMO in drivers/demo/Makefile
      
      [4] Simplify common/Makefile - both CONFIG_DDR_SPD and
          CONFIG_SPD_EEPROM are boolean macros so they can directly
          select objects
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Acked-by: default avatarMarek Vasut <marex@denx.de>
      f494e0a1
  9. Sep 16, 2014
  10. Sep 11, 2014
  11. Sep 02, 2014
  12. Aug 28, 2014
  13. Aug 22, 2014
  14. 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
  15. Aug 09, 2014
  16. Aug 06, 2014
  17. 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
  18. Jul 25, 2014
  19. 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
  20. Jul 14, 2014
  21. Jul 07, 2014
  22. Jul 02, 2014
  23. Jun 20, 2014
  24. Jun 19, 2014
  25. Jun 11, 2014
Loading