1. 14 Feb, 2018 1 commit
  2. 30 Nov, 2017 1 commit
  3. 26 Mar, 2017 1 commit
  4. 25 Jan, 2016 1 commit
    • Masahiro Yamada's avatar
      Revert "devicetree: use wildcard to clean arch subdir" · be6b2b31
      Masahiro Yamada authored
      This reverts commit 67871a59.
      Since that commit, out-of-tree cleaning emits lots of warnings.
      $ make O=foo clean
      make[1]: Entering directory `/home/masahiro/workspace/u-boot/foo'
      ../dts/../arch/arm/dts/Makefile:209: warning: overriding commands for target `dtbs'
      ../dts/../arch/arc/dts/Makefile:15: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/microblaze/dts/Makefile:13: warning: overriding commands for target `dtbs'
      ../dts/../arch/arm/dts/Makefile:209: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/mips/dts/Makefile:14: warning: overriding commands for target `dtbs'
      ../dts/../arch/microblaze/dts/Makefile:13: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/nios2/dts/Makefile:13: warning: overriding commands for target `dtbs'
      ../dts/../arch/mips/dts/Makefile:14: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/powerpc/dts/Makefile:13: warning: overriding commands for target `dtbs'
      ../dts/../arch/nios2/dts/Makefile:13: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/sandbox/dts/Makefile:14: warning: overriding commands for target `dtbs'
      ../dts/../arch/powerpc/dts/Makefile:13: warning: ignoring old commands for target `dtbs'
      ../dts/../arch/x86/dts/Makefile:22: warning: overriding commands for target `dtbs'
      ../dts/../arch/sandbox/dts/Makefile:14: warning: ignoring old commands for target `dtbs'
      make[1]: Leaving directory `/home/masahiro/workspace/u-boot/foo'
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
  5. 22 Jan, 2016 1 commit
  6. 16 Jan, 2016 1 commit
  7. 19 Jun, 2014 1 commit
  8. 11 Jun, 2014 1 commit
  9. 05 Jun, 2014 1 commit
  10. 28 Mar, 2014 1 commit
  11. 19 Feb, 2014 6 commits
    • Masahiro Yamada's avatar
      dts: generate multiple device tree blobs · 3284c8b8
      Masahiro Yamada authored
      It is convenient to have all device trees on the same SoC compiled.
      It allows for later easy repackaging without the need to re-run
      the make file.
        - Build device trees with the same SoC under arch/$(ARCH)/dts
        - Copy the one specified by CONFIG_DEFAULT_DEVICE_TREE or
          DEVICE_TREE=... to dts/dt.dtb
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    • Masahiro Yamada's avatar
      dts: move device tree sources to arch/$(ARCH)/dts/ · 5ab502cb
      Masahiro Yamada authored
      Unlike Linux Kernel, U-Boot historically had *.dts files under
      board/$(VENDOR)/dts/ and *.dtsi files under arch/$(ARCH)/dts/.
      I think arch/$(ARCH)/dts dicretory is a better location
      to store both *.dts and *.dtsi files.
      For example, before this commit, board/xilinx/dts directory
      had both Microblaze dts (microblaze-generic.dts) and
      ARM dts (zynq-*.dts), which are totally unrelated.
      This commit moves *.dts to arch/$(ARCH)/dts/ directories,
      allowing us to describe nicely mutiple DTBs generation in the next commit.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    • Masahiro Yamada's avatar
      dts: re-write dts/Makefile more simply with Kbuild · 6ab6b2af
      Masahiro Yamada authored
      Useful rules in scripts/Makefile.lib allows us to easily
      generate a device tree blob and wrap it in assembly code.
      We do not need to parse a linker script to get output format and arch.
      This commit deletes ./u-boot.dtb since it is a copy of dts/dt.dtb.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    • Masahiro Yamada's avatar
      kbuild: use scripts/Makefile.clean · efcf8619
      Masahiro Yamada authored
      This commit refactors cleaning targets such as
      clean, clobber, mrpropper, distclean
      with scripts/Makefile.clean.
      By using scripts/Makefile.clean, we can recursively descend
      into subdirectories and delete generated files there.
      We do not need add a big list of generated files
      to the "clean" target.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
    • Masahiro Yamada's avatar
      kbuild: use Linux Kernel build scripts · 6825a95b
      Masahiro Yamada authored
      Now we are ready to switch over to real Kbuild.
      This commit disables temporary scripts:
        scripts/{Makefile.build.tmp, Makefile.host.tmp}
      and enables real Kbuild scripts:
      This switch is triggered by the line in scripts/Kbuild.include
        -build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build.tmp obj
        +build := -f $(if $(KBUILD_SRC),$(srctree)/)scripts/Makefile.build obj
      We need to adjust some build scripts for U-Boot.
      But smaller amount of modification is preferable.
      Additionally, we need to fix compiler flags which are
      locally added or removed.
      In Kbuild, it is not allowed to change CFLAGS locally.
      Instead, ccflags-y, asflags-y, cppflags-y,
      CFLAGS_$(basetarget).o, CFLAGS_REMOVE_$(basetarget).o
      are prepared for that purpose.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
    • Masahiro Yamada's avatar
      kbuild: change out-of-tree build · 9e414032
      Masahiro Yamada authored
      This commit changes the working directory
      where the build process occurs.
      Before this commit, build process occurred under the source
      tree for both in-tree and out-of-tree build.
      That's why we needed to add $(obj) prefix to all generated
      files in makefiles like follows:
        $(obj)u-boot.bin:  $(obj)u-boot
      Here, $(obj) is empty for in-tree build, whereas it points
      to the output directory for out-of-tree build.
      And our old build system changes the current working directory
      with "make -C <sub-dir>" syntax when descending into the
      On the other hand, Kbuild uses a different idea
      to handle out-of-tree build and directory descending.
      The build process of Kbuild always occurs under the output tree.
      When "O=dir/to/store/output/files" is given, the build system
      changes the current working directory to that directory and
      restarts the make.
      Kbuild uses "make -f $(srctree)/scripts/Makefile.build obj=<sub-dir>"
      syntax for descending into sub-directories.
      (We can write it like "make $(obj)=<sub-dir>" with a shorthand.)
      This means the current working directory is always the top
      of the output directory.
      Signed-off-by: default avatarMasahiro Yamada <yamada.m@jp.panasonic.com>
      Tested-by: default avatarGerhard Sittig <gsi@denx.de>
  12. 13 Dec, 2013 1 commit
  13. 01 Nov, 2013 1 commit
  14. 02 Aug, 2013 5 commits
  15. 24 Jul, 2013 1 commit
  16. 02 Apr, 2013 1 commit
  17. 14 Mar, 2013 1 commit
  18. 08 Feb, 2013 1 commit
  19. 17 Jan, 2013 1 commit
  20. 10 Aug, 2012 2 commits
  21. 10 Jul, 2012 1 commit
    • Stephan Linz's avatar
      fdt: Add board specific dts inclusion · a1d2478e
      Stephan Linz authored
      Some architectures, for example Microblaze, doesn't need a
      splitted device tree because every Microblaze hw design is
      different. The individuell Microblaze device tree will be
      auto generated by FPGA design tools and could be used directly
      with dtc.
      The auto generated dts for Microblaze can not processed by CPP.
      Unfortunately that is the default procedure in U-Boot to merge
      a splitted device tree (substitution of ARCH_CPU_DTS).
      Microblaze will never use the ARCH_CPU_DTS substitution and we
      introduce the new board specific substitution variable BOARD_DTS
      that points into vendor/board/dts subdir with the file name
      of CONFIG_DEFAULT_DEVICE_TREE. The common dts file in vendor/dts
      subdir (defined by CONFIG_DEFAULT_DEVICE_TREE) contain a single
      include line that can processed by CPP:
          /include/ BOARD_DTS
      Signed-off-by: default avatarStephan Linz <linz@li-pro.net>
      Tested-by: default avatarMichal Simek <monstr@monstr.eu>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
  22. 09 Jul, 2012 1 commit
    • Stephen Warren's avatar
      fdt: send all dtc output to stderr · 58e22f8a
      Stephen Warren authored
      Commit 896bbb53 "fdt: avoid bad MAKEALL status" added logic to capture
      the result code from dtc by echoing $? to stdout and capturing it using
      $(). However, dtc emits some diagnostics to stderr and some to stdout.
      The diagnostics send to stdout ended up getting captured via $() rather
      than being echo'd to the user. This caused those diagnostics to be passed
      to the exit command, which would then fail with the following cryptic
      error message:
          /bin/sh: line 1: exit: too many arguments
      Solve this by redirecting all dtc output to stderr so that $() does not
      capture it. This allows the user to see the actual error message from dtc.
      Cc: Wolfgang Denk <wd@denx.de>
      Cc: Simon Glass <sjg@chromium.org>
      Cc: albert.u.boot@aribaud.net
      Cc: Tom Warren <twarren@nvidia.com>
      Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
      Acked-by: default avatarSimon Glass <sjg@chromium.org>
  23. 21 Apr, 2012 2 commits
  24. 26 Oct, 2011 1 commit
    • Simon Glass's avatar
      fdt: Add support for embedded device tree (CONFIG_OF_EMBED) · bbb0b128
      Simon Glass authored
      This new option allows U-Boot to embed a binary device tree into its image
      to allow run-time control of peripherals. This device tree is for U-Boot's
      own use and is not necessarily the same one as is passed to the kernel.
      The device tree compiler output should be placed in the $(obj)
      rooted tree. Since $(OBJCOPY) insists on adding the path to the
      generated symbol names, to ensure consistency it should be
      invoked from the directory where the .dtb file is located and
      given the input file name without the path.
      This commit contains my entry for the ugliest Makefile / shell interaction
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>