Skip to content
Snippets Groups Projects
  1. Feb 26, 2014
  2. 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
  3. Feb 19, 2014
  4. Dec 13, 2013
    • Masahiro Yamada's avatar
      Makefile: Move some scripts imported from Linux · dd88ab32
      Masahiro Yamada authored
      
      We have some scripts imported from Linux Kernel:
      setlocalversion, checkstack.pl, checkpatch.pl, cleanpatch
      
      They are located under tools/ directory in U-Boot now.
      But they were originally located under scripts/ directory
      in Linux Kernel.
      
      This commit moves them to the original location.
      
      It is true that binutils-version.sh and dtc-version.sh
      do not originate in Linux Kernel, but they should
      be moved by analogy to gcc-version.sh.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      dd88ab32
  5. Nov 17, 2013
  6. Oct 31, 2013
    • Masahiro Yamada's avatar
      Makefile: support descending down to subdirectories · ac7e7353
      Masahiro Yamada authored
      
      This patch tweaks scripts/Makefile.build to allow
      the build system to descend into subdirectories like Kbuild.
      
      To use this feature, use "obj-y += foo/" syntax.
      
      Example:
          obj-$(CONFIG_FOO) += foo/
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      ac7e7353
    • Masahiro Yamada's avatar
      Makefile: prepare for using Kbuild-style Makefile · ce28d7ac
      Masahiro Yamada authored
      
      Every makefile in sub directories has common lines
      at the top and the bottom.
      This commit pushes the common parts into script/Makefile.build.
      
      Going forward sub-makefiles only need to describe this part:
      
          COBJS := ...
          COBJS += ...
          SOBJS := ...
      
      But using obj-y is preferable to prepare for switching to Kbuild.
      
      The conventional (non-Kbuild) Makefile style is still supported.
      This is achieved by greping the Makefile before entering into it.
      U-Boot conventional sub makefiles always include some other makefiles.
      So the build system searches a line beginning with "include" keyword
      in the makefile in order to distinguish which style it is.
      If the Makefile include a "include" line, we assume it is a conventional
      U-Boot style. Otherwise, it is treated as a Kbuild-style makefile.
      
      With this tweak, we can switch sub-makefiles
      from U-Boot style to Kbuild style little by little.
      
      obj-y := foo/
      syntax (descending into the sub directory) is not supportd yet.
      It will be implemented in the upcomming commit.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Tom Rini <trini@ti.com>
      ce28d7ac
Loading