Skip to content
Snippets Groups Projects
  1. Jan 12, 2018
  2. Jan 09, 2018
  3. Jan 02, 2018
  4. Dec 19, 2017
  5. Dec 13, 2017
    • Simon Glass's avatar
      binman: tegra: Convert to use binman · f2faffec
      Simon Glass authored
      
      Update tegra to use binman for image creation. This still includes the
      current Makefile logic, but a later patch will remove this. Three output
      files are created, all of which combine
      SPL and U-Boot:
      
         u-boot-tegra.bin        - standard image
         u-boot-dtb-tegra.bin    - same as u-boot-tegra.bin
         u-boot-nodtb-target.bin - includes U-Boot without the appended device tree
      
      The latter is useful for build systems where the device is appended later,
      perhaps after being modified.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      f2faffec
  6. Dec 04, 2017
  7. Nov 21, 2017
    • Stefan Agner's avatar
      envtools: make sure version/timestamp header file are available · ded84f90
      Stefan Agner authored
      
      With commit 84d46e7e ("tools: env: allow to print U-Boot version")
      the fw_env utilities need the version.h header file. Building only
      the envtools in a pristine build directory will fail due to missing
      header files.
      
      Make sure the header files are a dependency of the envtools target.
      
      Fixes: 84d46e7e ("tools: env: allow to print U-Boot version")
      Signed-off-by: default avatarStefan Agner <stefan.agner@toradex.com>
      Tested-by: default avatarPeter Robinson <pbrobinson@gmail.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      ded84f90
    • M. Vefa Bicakci's avatar
      Makefile: Correct SPL/TPL/DTB build race condition · dd2081a8
      M. Vefa Bicakci authored
      
      When building on a multi-core machine for an SPL-enabled board that
      also uses CONFIG_OF_EMBED, the following error can be encountered
      due to a race condition:
      
        make[3]: *** No rule to make target 'spl/dts/dt.dtb.o', needed by
          'spl/dts/built-in.o'.  Stop.
        ../scripts/Makefile.spl:364: recipe for target 'spl/dts' failed
        make[2]: *** [spl/dts] Error 2
        make[2]: *** Waiting for unfinished jobs....
      
      A reliable way to trigger this race condition is to add "sleep 60" to
      the end of the "arch-dtbs" rule's recipe in "dts/Makefile" and to build
      U-Boot against a board which uses the CONFIG_OF_EMBED and CONFIG_SPL
      options using "make -j8" or a similar command.
      
      This commit corrects this race condition via the use of CONFIG_OF_EMBED
      in the same way that commit 3c00a2c8 ("Makefile: Correct dependency
      race condition with TPL") and commit 054b3a1e ("dm: Makefile: Build
      of-platdata before SPL") use CONFIG_OF_SEPARATE.
      
      Signed-off-by: default avatarM. Vefa Bicakci <m.v.b@runbox.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      dd2081a8
    • Heinrich Schuchardt's avatar
      Makefile: add coccicheck target · 8a28caf0
      Heinrich Schuchardt authored
      Coccinelle is a program for static code analysis.
      For details on Coccinelle see
      
      	http://coccinelle.lip6.fr/
      
      
      
      Add scripts/coccicheck copied from Linux kernel v4.14.
      
      The coccicheck script executes the tests *.cocci in
      directory scripts/coccinelle by calling spatch.
      
      In Makefile add a coccicheck target. You can use it with
      
      	make coccicheck MODE=<mode>
      
      	where mode in patch, report, context, org.
      
      Add a copy of Linux v4.14 file Documentation/dev-tools/coccinelle.rst
      as doc/README.coccinelle.
      
      Cc: Simon Glass <sjg@chromium.org>
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      8a28caf0
  8. Nov 17, 2017
    • Masahiro Yamada's avatar
      pylibfdt: compile pylibfdt only when dtoc/binman is necessary · d6a0c78a
      Masahiro Yamada authored
      
      Currently, pylibfdt is always compiled if swig is installed on your
      machine.  It is really annoying because most of targets (excepts
      x86, sunxi, rockchip) do not use dtoc or binman.
      
      "checkbinman" and "checkdtoc" are wrong.  It is odd that the final
      build stage checks if we have built necessary tools.  If your platform
      depends on dtoc/binman, you must be able to build pylibfdt.  If swig
      is not installed, it should fail immediately.
      
      I added PYLIBFDT, DTOC, BINMAN entries to Kconfig.  They should be
      property select:ed by platforms that need them.  Kbuild will descend
      into scripts/dtc/pylibfdt/ only when CONFIG_PYLIBFDT is enabled.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
      d6a0c78a
    • Masahiro Yamada's avatar
      pylibfdt: move pylibfdt to scripts/dtc/pylibfdt and refactor makefile · 15b97f5c
      Masahiro Yamada authored
      
      The pylibfdt is used by dtoc (and, indirectly by binman), but there
      is no reason why it must be generated in the tools/ directory.
      
      Recently, U-Boot switched over to the bundled DTC, and the directory
      structure under scripts/dtc/ now mirrors the upstream DTC project.
      So, scripts/dtc/pylibfdt is the best location.
      
      I also rewrote the Makefile in a cleaner Kbuild style.
      
      The scripts from the upstream have been moved as follows:
      
        lib/libfdt/pylibfdt/setup.py -> scripts/dtc/pylibfdt/setup.py
        lib/libfdt/pylibfdt/libfdt.i -> scripts/dtc/pylibfdt/libfdt.i_shipped
      
      The .i_shipped is coped to .i during building because the .i must be
      located in the objtree when we build it out of tree.
      
      Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
      15b97f5c
  9. Nov 14, 2017
  10. Nov 06, 2017
  11. Oct 31, 2017
  12. Oct 19, 2017
    • Heinrich Schuchardt's avatar
      x86: provide CONFIG_BUILD_ROM · 871aa41d
      Heinrich Schuchardt authored
      
      Up to now we depended on an exported variable to build u-boot.rom.
      We should be able to specify it in the configuration file, too.
      
      With this patch this becomes possible using the new Kconfig option
      CONFIG_BUILD_ROM.
      
      This option depends on CONFIG_X86 and is selected in
      qemu-x86_defconfig and qemu-x86_64_defconfig.
      
      Cc: Simon Glass <sjg@chromium.org>
      Cc: Bin Meng <bmeng.cn@gmail.com>
      Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
      Reviewed-by: default avatarBin Meng <bmeng.cn@gmail.com>
      871aa41d
  13. Oct 17, 2017
  14. Oct 06, 2017
  15. Oct 03, 2017
  16. Sep 24, 2017
  17. Sep 22, 2017
  18. Sep 12, 2017
  19. Sep 11, 2017
  20. Sep 06, 2017
  21. Sep 05, 2017
  22. Sep 04, 2017
  23. Aug 29, 2017
  24. Aug 20, 2017
    • Clément Bœsch's avatar
      Makefile: honor PYTHON configuration properly · 3809e302
      Clément Bœsch authored
      
      On some systems `python` is `python3` (for instance, Archlinux). The
      `PYTHON` variable can be used to point to `python2` to have a successful
      build.
      
      The use of `PYTHON` is currently limited in the Makefile and needs to be
      extended in other places:
      
      First, pylibfdt is required to be a Python 2 binding (binman imports
      pylibfdt and is only compatible Python 2), so its setup.py needs to be
      called accordingly. An alternative would be to change the libfdt
      setup.py shebang to python2, but the binding is actually portable. Also,
      it would break on system where there is no such thing as `python2`.
      
      Secondly, the libfdt import checks need to be done against Python 2 as
      well since the Python 2 compiled modules (in this case _libdft.so) can
      not be imported from Python 3.
      
      Note on the libfdt imports: "@if ! PYTHONPATH=tools $(PYTHON) -c 'import
      libfdt'; then..." is probably simpler than the currently sub-optimal
      pipe.
      Reviewed-by: default avatarJonathan Gray <jsg@jsg.id.au>
      3809e302
  25. Aug 15, 2017
  26. Aug 13, 2017
  27. Aug 01, 2017
  28. Jul 30, 2017
  29. Jul 25, 2017
  30. Jul 22, 2017
  31. Jul 12, 2017
    • Stefano Babic's avatar
      imx: reorganize IMX code as other SOCs · 552a848e
      Stefano Babic authored
      
      Change is consistent with other SOCs and it is in preparation
      for adding SOMs. SOC's related files are moved from cpu/ to
      mach-imx/<SOC>.
      
      This change is also coherent with the structure in kernel.
      
      Signed-off-by: default avatarStefano Babic <sbabic@denx.de>
      
      CC: Fabio Estevam <fabio.estevam@nxp.com>
      CC: Akshay Bhat <akshaybhat@timesys.com>
      CC: Ken Lin <Ken.Lin@advantech.com.tw>
      CC: Marek Vasut <marek.vasut@gmail.com>
      CC: Heiko Schocher <hs@denx.de>
      CC: "Sébastien Szymanski" <sebastien.szymanski@armadeus.com>
      CC: Christian Gmeiner <christian.gmeiner@gmail.com>
      CC: Stefan Roese <sr@denx.de>
      CC: Patrick Bruenn <p.bruenn@beckhoff.com>
      CC: Troy Kisky <troy.kisky@boundarydevices.com>
      CC: Nikita Kiryanov <nikita@compulab.co.il>
      CC: Otavio Salvador <otavio@ossystems.com.br>
      CC: "Eric Bénard" <eric@eukrea.com>
      CC: Jagan Teki <jagan@amarulasolutions.com>
      CC: Ye Li <ye.li@nxp.com>
      CC: Peng Fan <peng.fan@nxp.com>
      CC: Adrian Alonso <adrian.alonso@nxp.com>
      CC: Alison Wang <b18965@freescale.com>
      CC: Tim Harvey <tharvey@gateworks.com>
      CC: Martin Donnelly <martin.donnelly@ge.com>
      CC: Marcin Niestroj <m.niestroj@grinn-global.com>
      CC: Lukasz Majewski <lukma@denx.de>
      CC: Adam Ford <aford173@gmail.com>
      CC: "Albert ARIBAUD (3ADEV)" <albert.aribaud@3adev.fr>
      CC: Boris Brezillon <boris.brezillon@free-electrons.com>
      CC: Soeren Moch <smoch@web.de>
      CC: Richard Hu <richard.hu@technexion.com>
      CC: Wig Cheng <wig.cheng@technexion.com>
      CC: Vanessa Maegima <vanessa.maegima@nxp.com>
      CC: Max Krummenacher <max.krummenacher@toradex.com>
      CC: Stefan Agner <stefan.agner@toradex.com>
      CC: Markus Niebel <Markus.Niebel@tq-group.com>
      CC: Breno Lima <breno.lima@nxp.com>
      CC: Francesco Montefoschi <francesco.montefoschi@udoo.org>
      CC: Jaehoon Chung <jh80.chung@samsung.com>
      CC: Scott Wood <oss@buserror.net>
      CC: Joe Hershberger <joe.hershberger@ni.com>
      CC: Anatolij Gustschin <agust@denx.de>
      CC: Simon Glass <sjg@chromium.org>
      CC: "Andrew F. Davis" <afd@ti.com>
      CC: "Łukasz Majewski" <l.majewski@samsung.com>
      CC: Patrice Chotard <patrice.chotard@st.com>
      CC: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
      CC: Hans de Goede <hdegoede@redhat.com>
      CC: Masahiro Yamada <yamada.masahiro@socionext.com>
      CC: Stephen Warren <swarren@nvidia.com>
      CC: Andre Przywara <andre.przywara@arm.com>
      CC: "Álvaro Fernández Rojas" <noltari@gmail.com>
      CC: York Sun <york.sun@nxp.com>
      CC: Xiaoliang Yang <xiaoliang.yang@nxp.com>
      CC: Chen-Yu Tsai <wens@csie.org>
      CC: George McCollister <george.mccollister@gmail.com>
      CC: Sven Ebenfeld <sven.ebenfeld@gmail.com>
      CC: Filip Brozovic <fbrozovic@gmail.com>
      CC: Petr Kulhavy <brain@jikos.cz>
      CC: Eric Nelson <eric@nelint.com>
      CC: Bai Ping <ping.bai@nxp.com>
      CC: Anson Huang <Anson.Huang@nxp.com>
      CC: Sanchayan Maity <maitysanchayan@gmail.com>
      CC: Lokesh Vutla <lokeshvutla@ti.com>
      CC: Patrick Delaunay <patrick.delaunay@st.com>
      CC: Gary Bisson <gary.bisson@boundarydevices.com>
      CC: Alexander Graf <agraf@suse.de>
      CC: u-boot@lists.denx.de
      Reviewed-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
      Reviewed-by: default avatarChristian Gmeiner <christian.gmeiner@gmail.com>
      552a848e
  32. Jul 10, 2017
Loading