aboutsummaryrefslogtreecommitdiff
path: root/boot/uboot
Commit message (Collapse)AuthorAgeFilesLines
* boot/uboot: bump to version 2021.04Gravatar Fabio Estevam2021-04-202-3/+3
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* boot/uboot: fix kconfig with per-package directories and host-makeGravatar Nicolas Toromanoff2021-03-131-0/+1
| | | | | | | | | | | | If PER_PACKAGE_DIRECTORIES=Y and using host-make package (because BR2_FORCE_HOST_BUILD=Y or local make is too old) .stamp_dotconfig target needs per-package/uboot/host/bin/host-make that doesn't exist yet. Add host-make into UBOOT_KCONFIG_DEPENDENCIES. Signed-off-by: Nicolas Toromanoff <nicolas.toromanoff@foss.st.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* uboot: fix binman with a new dependencyGravatar Francois Perrad2021-02-121-2/+2
| | | | | | | | | | since 2021.01, tools/binman is broken. tools/binman/control.py imports pkg_resources the module pkg_resources is supplied by setuptools, so this new dependency is required. Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* Replace LIBFOO_CPE_ID_NAME by LIBFOO_CPE_ID_PRODUCTGravatar Fabrice Fontaine2021-01-211-1/+1
| | | | | | | | | | Replace LIBFOO_CPE_ID_NAME by LIBFOO_CPE_ID_PRODUCT to better "comply" with the official "Well-Formed CPE Name Data Model" parameters: - https://csrc.nist.gov/publications/detail/nistir/7695/final - https://nvlpubs.nist.gov/nistpubs/Legacy/IR/nistir7695.pdf Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: bump to version 2021.01Gravatar Michael Walle2021-01-182-3/+3
| | | | | Signed-off-by: Michael Walle <michael@walle.cc> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: introduce BR2_TARGET_UBOOT_NEEDS_OPENSBIGravatar Bin Meng2021-01-162-0/+15
| | | | | | | | | Some RISC-V platforms (such as SiFive HiFive Unleashed) encapsulate the OpenSBI firmware image inside U-Boot. Signed-off-by: Bin Meng <bin.meng@windriver.com> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package: provide CPE ID details for numerous packagesGravatar Matt Weber2021-01-041-0/+2
| | | | | | | | This patch adds CPE ID information for a significant number of packages. Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: fix custom repo error messageGravatar Garret Kelly2020-11-161-1/+1
| | | | | | | | | | When using a custom git or mercurial repository for u-boot the error message indicating a version had not been provided incorrectly stated that the URL was missing. Update the error message to indicate that it's the version that's missing. Signed-off-by: Garret Kelly <garret.kelly@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: add stm32 binary formatGravatar Shlomi Vaknin2020-10-132-0/+9
| | | | | | | | Add `.stm32` binary format that U-Boot generates for the trusted configuration of STM32MP platforms. Signed-off-by: Shlomi Vaknin <shlomi.39sd@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: bump to version 2020.10Gravatar Pierre-Jean Texier2020-10-082-3/+3
| | | | | | | See: https://lists.denx.de/pipermail/u-boot/2020-October/428516.html Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* package/uboot-tools: migrate BR2_TARGET_UBOOT_BOOT_SCRIPT from U-Boot pkgGravatar Matt Weber2020-10-062-29/+0
| | | | | | | | | | For consistancy and dependencies between uboot and uboot-tools, this patch migrates the script creation over in a similar way as the env image creation. Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* package/uboot-tools: migrate BR2_TARGET_UBOOT_ENVIMAGE from U-Boot pkgGravatar Matt Weber2020-10-062-68/+0
| | | | | | | | | | | | | | | | | | | | Migrating the support for this feature to uboot-tools to gain the ability to build env files when BR2_TARGET_UBOOT isn't selected. When _ENVIMAGE_SOURCE is not set, we generate a default environment. However, this default depends on the U-Boot configuration. Therefore, this can only be done if uboot itself is built as well, and host-uboot-tools needs to depend on uboot. For the same reason, the commands for creating the environment have to be adapted a little. Take this occasion to drastically simplify them. Note: This patch creates a circular dependency with uboot until the similar migration patch is merged for uboot scripts Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boot/uboot/Config.in: sort uboot's format extensions alphabeticallyGravatar Bartosz Bilas2020-10-061-27/+27
| | | | | | | It's easier to locate given format when it's sorted. Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: Fix kconfig to use $(BR2_MAKE)Gravatar Brandon Maier2020-08-061-2/+3
| | | | | | | | | | | | U-Boot must use $(BR2_MAKE) as it uses a Make feature from v4.0. We already use $(BR2_MAKE) in the BUILD_CMDS, but the kconfig commands still uses $(MAKE). Without this fix, building U-Boot with kconfig will fail with the following cryptic error. > Makefile:37: *** missing separator. Stop. Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* boot/uboot: bump to version 2020.07Gravatar Fabio Estevam2020-07-152-3/+3
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: zynqmp: Support loading a PMU configGravatar Brandon Maier2020-06-272-0/+39
| | | | | | | | | | | | | | | | | Before now, U-Boot SPL could only load the Platform Management Unit (PMU) by patching the board-specific pm_cfg_obj.c file into the generic PMU firmware, but that then requires generating a new PMU firmware for every board configuration. To fix that, Luca Ceresoli added support to U-Boot to load the pm_cfg_obj[1]. Like the PMU firmware, we need a way to pass the PMU cfg to U-Boot during build. U-Boot only accepts the binary format of the cfg, so we must convert the source file with the tool provided with U-Boot. [1] https://lucaceresoli.net/zynqmp-uboot-spl-pmufw-cfg-load/ Signed-off-by: Brandon Maier <brandon.maier@rockwellcollins.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* legacy: drop options removed more than 5 years ago nowGravatar Yann E. MORIN2020-06-221-4/+0
| | | | | Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: change from FTP to HTTPS for official releasesGravatar Joachim Nilsson2020-06-041-1/+1
| | | | | | | | | The HTTPS URL seems to be more reliable and quicker for download than FTP. FTP may also be a blocked protocol on some sites and in CI/CD setups. Signed-off-by: Joachim Nilsson <troglobit@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: support building U-Boot with Python 3.xGravatar Thomas Petazzoni2020-05-152-1/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | U-Boot versions newer than 2020.01 use Python 3.x instead of Python 2.x in various scripts. We already had the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT and BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS options, but depending on the U-Boot version, we now need to indicate if Python 2.x or Python 3.x should be used. In addition, it turns out that some U-Boot configurations need a Python interpreter, without needing pylibfdt or pyelftools. Some of our defconfigs were abusing the BR2_TARGET_UBOOT_NEEDS_PYLIBFDT option to make sure a Python interpreter was built. To solve this issue, we introduce a choice, that let the users specify what, if any, host python version is needed. The default is 'no', to preserve the previous behaviour, unless any of the pylibfdt or the pyelftools options is enabled, in which case we hide the 'no' option, and use python 2 by default. This dfault is guaranteed by the order of options in the choice. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> [yann.morin.1998@free.fr: - explicitly make the choice a bool - make BR2_TARGET_UBOOT_NEEDS_PYTHON a blind option - introduce the 'no' option in the choice - reword the commit log accordingly ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* boot/uboot: don't specify .config to mungeGravatar Yann E. MORIN2020-05-011-4/+2
| | | | | Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: bump to version 2020.04Gravatar Pierre-Jean Texier2020-04-132-3/+3
| | | | | | | See https://lists.denx.de/pipermail/u-boot/2020-April/406522.html Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: license files hashes only valid for latest versionGravatar Yann E. MORIN2020-02-061-0/+2
| | | | | | | | | | | | | | We can only know the details of the license files for known versions. For custom, older or newer versions, the license files may change, or may be moved around. So, do for U-Boot as was done for ATF, linux, and linux-headers, and only define the list of license files for the latest version. Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Markus Mayer <mmayer@broadcom.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: needs make >= 4.0Gravatar Yann E. MORIN2020-02-031-2/+5
| | | | | | | | | | | | | | | | | Starting with 2020.01, uboot started using the 'undefine' make directive, which was only introduced with make 4.0. In the general case, we do not have a way to know if the uboot selected by the user is older or later than 2020.01, so we have no way to know before hand if make >= 4.0 is needed or not. As such, we have no other option than to always require it. So, use the existing $(BR2_MAKE_HOST_DEPENDENCY) and $(BR2_MAKE), both of each will ensure that we do use a make that is at least 4.0. Reported-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: bump to version 2020.01Gravatar Fabio Estevam2020-01-102-3/+3
| | | | | | | Bump to U-Boot 2020.01 version. Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: cover more u-boot versions when fixing up libfdt include pathsGravatar Arnout Vandecappelle (Essensium/Mind)2020-01-011-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original UBOOT_FIXUP_LIBFDT_INCLUDE hook only works for u-boot versions starting from v2017.11. As older u-boot versions are still in common use today, e.g. in the ci20_defconfig, extend the hook to cover a wider range of u-boot versions. The main code change was proposed by Arnout Vandecappelle in [1]. Testing and comment changes were done by Thomas De Schampheleire. Additional (build) testing done by Yann. [1] http://lists.busybox.net/pipermail/buildroot/2019-May/251231.html This was tested with the following defconfigs, that each excercise one case: ----.-- No defconfig identified 2010.06 'lib/libfdt/', used to be simply 'libfdt' before upstream commit 0de71d507157... 2013.10 ci20_defconfig 2014.04 'srctree' used to be called 'SRCTREE' before upstream commit 01286329b27b27ea... 2017.05 olimex_a13_olinuxino_defconfig 2017.11 scripts/dtc/libfdt only exists since upstream commit c0e032e0090d6541549b19cc... 2018.01 mx6udoo_defconfig 2018.03 core change is equivalent to upstream commit e0d20dc1521e74b82dbd69be53a04884... 2019.10 nanopi_neo_defconfig Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> [yann.morin.1998@free.fr: add the build-test results] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* boot/uboot: add an upstream URL to Config.inGravatar Mark Corbin2019-12-291-0/+2
| | | | | | | | | Add an upstream URL to the help text in Config.in. This addresses the issue where an incorrect URL is displayed on the package stats web page. Signed-off-by: Mark Corbin <mark@dibsco.co.uk> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
* boot/uboot: add option to build u-boot.itb imageGravatar Dario Binacchi2019-12-082-0/+8
| | | | | | | | | It allows you to add the u-boot.itb to the list of U-Boot images that can be created. Like the others, this one is also copied to the image folder. Signed-off-by: Dario Binacchi <dariobin@libero.it> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: add missing spaces around variable assignmentGravatar Thomas Petazzoni2019-10-271-1/+1
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: fix the help text of BR2_TARGET_UBOOT_ENVIMAGE_SOURCEGravatar Thomas Petazzoni2019-10-271-2/+2
| | | | | | | | | | | | | | | | | | In commit 2c8ff251cb16d38fb417a488ee0367cd03eebda2 ("boot/uboot: add option to generate env image from default env"), the possibility of generating an environment image using the built-in U-Boot environment as a source was added. This is meant to happen when the string option BR2_TARGET_UBOOT_ENVIMAGE_SOURCE is empty, but the original commit added the Config.in help text to BR2_TARGET_UBOOT_ENVIMAGE, which is a boolean option, and therefore cannot be empty. Move the help text to BR2_TARGET_UBOOT_ENVIMAGE_SOURCE, where it belongs. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: bump to version 2019.10Gravatar Pierre-Jean Texier2019-10-082-3/+3
| | | | | | | See https://lists.denx.de/pipermail/u-boot/2019-October/385775.html Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: use proper spelling of "U-Boot"Gravatar Pierre-Jean Texier2019-08-042-4/+4
| | | | | Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: add option to pass custom variables to U-Boot buildGravatar Thomas Petazzoni2019-08-032-1/+8
| | | | | | | | | | | | | | | | | | | | | U-Boot supports a number of environment variables to pass specific information. The following patches were submitted in the past to one some specific Config.in option to pass some of these variables: - http://patchwork.ozlabs.org/patch/881197/ proposed an option to pass a custom EXT_DTB= variable - http://patchwork.ozlabs.org/patch/1018245/ proposed an option to pass a custom DEVICE_TREE= variable Instead of adding one Config.in option for each of those variables, let's provide a generic mechanism to pass arbitrary variables during U-Boot build step. Cc: Konstantin Porotchkin <kostap@marvell.com> Cc: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot/uboot: add option to generate env image from default envGravatar Denis Osterland2019-08-012-4/+6
| | | | | | | | This patch adds support to extract compiled in default env via u-boot's get_default_envs script and generate env image from it. Signed-off-by: Denis Osterland <Denis.Osterland@diehl.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boot/uboot: add hash for license fileGravatar Pierre-Jean Texier2019-07-171-0/+1
| | | | | | | | | Fixes: >>> uboot 2019.07 Collecting legal info ERROR: No hash found for Licenses/gpl-2.0.txt Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: bump to version 2019.07Gravatar Pierre-Jean Texier2019-07-142-3/+3
| | | | | | | See https://lists.denx.de/pipermail/u-boot/2019-July/375451.html Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: add support for having host-python-pyelftools as a dependencyGravatar Shyam Saini2019-04-202-0/+12
| | | | | | | | | | | Rockchip rk3399 SOC based boards require python pyelftools library for parsing dtb files, so lets add it as uboot dependency. This commit introduces a new config option BR2_TARGET_UBOOT_NEEDS_PYELFTOOLS to achieve this. Signed-off-by: Shyam Saini <shyam.saini@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: bump to version 2019.01Gravatar Jörg Krause2019-02-122-3/+3
| | | | | Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: fix order of Config.in propertiesGravatar Thomas Petazzoni2019-02-061-1/+1
| | | | | | | | Fixes the following check-package warning: boot/uboot/Config.in:185: attributes order: type, default, depends on, select, help (http://nightly.buildroot.org/#_config_files) Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: add support for bundling ATF BL31 in ELF format into U-BootGravatar Michał Łyszczek2019-02-062-0/+17
| | | | | | | | | | | | Rockchip's rk3328 encapsulates the BL31 part of ATP but it needs image in ELF format. This is extension to 2c4809e6088660dc71de9de8cee0bba312aafbe4 This commit introduces a BR2_TARGET_UBOOT_NEEDS_ATF_BL31_ELF variable to achieve this. Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: use HOSTCC_NOCCACHE as kconfig HOSTCCGravatar Thomas Petazzoni2019-01-161-2/+3
| | | | | | | | | | | | | | | | | At kconfig time, dependencies are not built, and therefore host-ccache is not ready. Due to this, using $(HOSTCC) as the host compiler in KCONFIG_OPTS does not work: a "make uboot-menuconfig" invocation from a clean tree with ccache enabled fails. This commit fixes this by using $(HOSTCC_NOCCACHE). We cannot rely on the default value of HOSTCC passed by the kconfig-package infrastructure, because $(UBOOT_MAKE_OPTS) also contains a HOSTCC definition that would override the one passed by the kconfig-package infrastructure. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: bump to version 2018.09Gravatar Jagan Teki2018-11-032-3/+3
| | | | | Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: replace mkimage invocation with MKIMAGEGravatar Danomi Manchego2018-10-261-1/+1
| | | | | | | | We already use $(MKIMAGE) instead of $(HOST_DIR)/bin/mkimage in xvisor, linux, and cpio; use it here too. Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: fix environment image generation on big endian systemsGravatar Thomas Petazzoni2018-10-141-1/+1
| | | | | | | | | | | | | | As reported by Jeff Wittrock in bug #11396, the U-Boot environment image checksum is invalid for big endian targets, because the test on the BR2_ENDIAN Config.in option doesn't take into account that it is double quoted. The fix was provided by Jeff himself on bugzilla. Fixes bug #11396. Reported-by: Jeff Wittrock <jwittrock@faultrecorder.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/uboot: needs bison/flex even for the legacy buildsystemGravatar Yann E. MORIN2018-09-141-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | When using the legacy buildsystem, the kconfig parser may still be used, as reported by Thomas: >>> uboot 2018.09 Configuring ...] HOSTCC scripts/basic/fixdep HOSTCC scripts/kconfig/conf.o YACC scripts/kconfig/zconf.tab.c bin/sh: 1: bison: not found ake[3]: *** [scripts/kconfig/zconf.tab.c] Error 127 ake[3]: *** Waiting for unfinished jobs.... LEX scripts/kconfig/zconf.lex.c bin/sh: 1: flex: not found However, in that case, the kconfig parser is only generated during the 'configure' step, so we can add bison/flex as standard dependencies. Reported-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* Merge branch 'next'Gravatar Peter Korsgaard2018-09-072-0/+12
|\ | | | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
| * uboot: add option to depend on host-lzopGravatar Thomas Petazzoni2018-08-142-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some U-Boot configurations use lzop, which may not be available on the build machine since it's not a mandatory dependency of Buildroot. To solve this, a new option BR2_TARGET_UBOOT_NEEDS_LZOP is introduced, and handled in a similar way to the existing BR2_TARGET_UBOOT_NEEDS_OPENSSL option. This fixes the build of the dra7xx_evm U-Boot defconfig as of U-Boot 2018.07, on a build machine without lzop installed. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boot/uboot: Set MAKE_ENV for kconfig build systemGravatar Thomas Preston2018-09-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | U-Boot fails to build in a GitLab CI context because the kconfig-package build stage is unable to find bison or flex even though they are installed in HOST_DIR. To fix this, set UBOOT_MAKE_ENV so that UBOOT_KCONFIG_MAKE uses the correct PATH. Signed-off-by: Thomas Preston <thomas.preston@codethink.co.uk> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* | boot/uboot: needs host-{flex,bison}Gravatar Yann E. MORIN2018-08-201-0/+3
|/ | | | | | | | | | | | | | Recent U-Boot no longer ship the flex/bison generated kconfig parser, as of commit e91610da7c8a9fe42f3e5a75f06c3d1a0cb5f815 (kconfig: re-sync with Linux 4.17-rc4). So, add the conditional kconfig dependencies, as we just did for the kernel. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: zynqmp: allow to use custom psu_init filesGravatar Luca Ceresoli2018-07-282-0/+38
| | | | | | | | | | | | | | | | | | | | | | U-Boot SPL configures pinmuxes, clocks and other low-level devices. On the Xilinx ZynqMP SoCs the code to do this resides in a file called psu_init_gpl.c which is initially generated by the Xilinx development tools. Add an option to pass these files from the outside (e.g. in the board files). For this to work properly, a patch to U-Boot is needed. However this patch must be applied by each defconfig using BR2_TARGET_UBOOT_ZYNQMP_PSU_INIT_DIR. If it were in boot/uboot/ to be applied unconditionally, it would break the build for configs using a U-Boot version where the patch is already applied. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Joel Carlson <joelsoncarl@gmail.com> Reviewed-by: Joel Carlson <JoelsonCarl@gmail.com> Tested-by: Joel Carlson <JoelsonCarl@gmail.com> [Thomas: add comment about U-Boot version requirements to use this option.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: zynqmp: generate SPL image with PMUFW binaryGravatar Luca Ceresoli2018-07-282-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | In order to boot on the Xilinx ZynqMP SoCs, U-Boot SPL requires a recent PMU firmware loaded. Instruct U-Boot to add pmufw.bin to the boot.bin file together with U-Boot SPL, and the boot ROM will load both. For this to work properly, a patch to U-Boot is needed. However this patch must be applied by each defconfig that wishes to use BR2_TARGET_UBOOT_ZYNQMP_PMUFW. If it were in boot/uboot/ to be applied unconditionally, it would break the build for configs using a U-Boot version higher than 2018.7-rc1 where the patch is already applied. Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Cc: Joel Carlson <joelsoncarl@gmail.com> Reviewed-by: Joel Carlson <JoelsonCarl@gmail.com> Tested-by: Joel Carlson <JoelsonCarl@gmail.com> [Thomas: - indicate that this feature requires U-Boot 2018.07, since commit c7df098a71e05dc81cee818747759e8060b59626 is needed. - define UBOOT_ZYNQMP_KCONFIG_PMUFW only once, and instead use a variable named UBOOT_ZYNQMP_PMUFW_PATH to store the path to the PMU firmware] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>