aboutsummaryrefslogtreecommitdiff
path: root/boot
Commit message (Collapse)AuthorAgeFilesLines
* boot/*/Config.in: re-wrap help textGravatar Ricardo Martincoski2018-04-013-27/+32
| | | | | | | ... to follow the convention <tab><2 spaces><62 chars>. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/*/Config.in: fix attributes orderGravatar Ricardo Martincoski2018-04-016-14/+14
| | | | | | | ... to follow the convention: type, default, depends on, select, help. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* boot/*/*.mk: fix code styleGravatar Ricardo Martincoski2018-04-013-12/+12
| | | | | | | | Use only one space before backslash. Indent with tabs. Signed-off-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: fix build for older uboot source treesGravatar Stefan Becker2018-03-121-1/+5
| | | | | | | | | | The change in commit bf733342324b414a1142b57781504111f81c97ea only works for newer uboot source trees. Add a check that scripts/dtc/libfdt directory exists before making this change. [Peter: add comment explaining why] Signed-off-by: Stefan Becker <chemobejk@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: fix build when libfdt-devel is installed system-wideGravatar Thomas Petazzoni2018-03-101-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When libfdt-devel is installed system-wide, the build of U-Boot host programs currently fails with lots of: HOSTCC tools/aisimage.o In file included from tools/../include/../lib/libfdt/libfdt.h:10:0, from tools/../include/libfdt.h:1, from tools/fdt_host.h:11, from tools/imagetool.h:24, from tools/aisimage.c:8: /usr/include/libfdt_env.h:70:30: error: conflicting types for ‘fdt64_t’ typedef uint64_t FDT_BITWISE fdt64_t; ^~~~~~~ In file included from <command-line>:0:0: ././include/libfdt_env.h:19:16: note: previous declaration of ‘fdt64_t’ was here typedef __be64 fdt64_t; ^~~~~~~ In file included from ././include/libfdt_env.h:12:0, from <command-line>:0: /usr/include/libfdt_env.h:90:24: error: expected ‘)’ before ‘x’ static inline uint32_t fdt32_to_cpu(fdt32_t x) ^ This commit adds a fixup in the U-Boot code to fix this problem. The fixup is equivalent to applying upstream commit http://git.denx.de/?p=u-boot.git;a=commitdiff;h=e0d20dc1521e74b82dbd69be53a048847798a90a, but we can't use a patch for the uboot package, since people are using arbitrary versions. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: ensure host includes are searched before system default includesGravatar Peter Korsgaard2018-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | Commit baae5156ce37e (uboot: use local fdt headers) changed the uboot logic to pass the host include directories with -idirafter instead of -I, so include files local to u-boot would be preferred over host includes. This unfortunately breaks configurations using BR2_TARGET_UBOOT_NEEDS_OPENSSL on hosts with incompatible openssl headers installed in the system default include directories as explained here: http://lists.busybox.net/pipermail/buildroot/2018-March/214651.html The problem is that -idirafter directories gets added to the very end of the search order, AFTER the system default directories. Instead use -isystem which causes the directories to be added after -I but before the system default directories. With this in place, the include directories of u-boot will first be scanned, followed by the host includes and finally the system default include directories. Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: revert "uboot: use local libfdt.h"Gravatar Thomas De Schampheleire2018-02-251-7/+0
| | | | | | | | | This reverts commit 3a6573ccee2624de0c604abf2c7df6704a4cf566. It is no longer necessary after solving the problem differently. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: use local fdt headersGravatar Thomas De Schampheleire2018-02-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | After commit b8c3e941731d ("package/dtc: qemu system build need libfdt") changed the dtc install target from 'install-bin' to 'install', uboot compilation failures occurred because libfdt related headers were now suddenly taken from output/host/include rather than from the uboot sources itself. Commit 3a6573ccee26 ("uboot: use local libfdt.h") solved this by patching one specific uboot source file, tools/fdtgrep.c, to replace '<...>'-style includes by '"..."'-style includes. However, depending on the uboot version, this may not be enough: there may be other references to fdt header files. In particular taking into account that it is not uncommon to have vendor-provided uboot trees which have custom changes. The root of the problem is that the uboot.mk file passes the host compiler as follows: UBOOT_MAKE_OPTS += \ ... HOSTCC="$(HOSTCC) $(HOST_CFLAGS)" \ ... where HOST_CFLAGS contains the string '-I$(HOST_DIR)/include' The uboot makefiles then use constructs of the form: $(CC) $(CPPFLAGS) $(CFLAGS) ..... where CPPFLAGS may contain -I references pointing to local directories. On the expanded compiler command-line, Buildroot's '-I$(HOST_DIR)/include' is thus present _before_ any -I to local directories, and thus takes precedence. And that becomes a problem for header files present both locally as in the Buildroot host directory, which is the case for libfdt. To fix this problem without having to patch u-boot sources, use '-idirafter' rather than '-I' to pass the Buildroot host include directory. '-idirafter' is basically the same thing, but adds the specified directory at the end of the include precedence chain, rather than at the beginning. Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
* uboot: bump to version 2018.01Gravatar Jörg Krause2018-01-122-3/+3
| | | | | Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot/arm-trusted-firmware: build fiptool separately with dependency on ↵Gravatar Thomas Petazzoni2017-12-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | host-openssl ATF >= 1.3 builds a host program called fiptool which uses OpenSSL, so we need to build host-openssl. We could have made it an optional dependency like U-Boot does, but since most ATF versions are going to be >= 1.3 in the near future, we simply make host-openssl a mandatory dependency. However, the ATF build system is not very good, and you can't easily pass flags that will affect the build of host programs. Therefore, we take the approach of building fiptool separately before triggering the real build process. It would obviously be better to fix ATF itself, but as usual with those bootloader packages, we fetch different versions depending on the platform/configuration, making it difficult to use patches. Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/44868961 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* package/uboot: detect missing user-supplied environment source filesGravatar Yann E. MORIN2017-12-141-6/+13
| | | | | | | | | | | | | | | | | | | | | | Since 0542bb79e8 (uboot: Support multiple environment source files), missing user-supplied environment source files is no longer detected. This is because we cat them all, and feed the concatenation to the stdin of mkenvimage. So, if one source file is missing, the cat exits in error, but the compound command exits with the exit code of the last command, which is that of mkenvimage, which happens to be happy with whatever it is fed on its stdin, even is empty. We fix that by creating a temporary file, that we even leave afterward for the user to inspect. We also move it out of the _CMDS block and into a macro of its own, so that it is easier to write and maintain. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Cam Hutchison <camh@xdna.net> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* atf: add support for Marvell Armada SoCsGravatar Sergey Matyukevich2017-12-081-0/+10
| | | | | | | | | | | Add Marvell Armada 7k/8k SoCs support to arm-trusted-firmware package. Marvell ATF needs two additional dependencies: DDR training code and SCP_BL2 image. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> [Thomas: adjust to previous ATF changes.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* binaries-marvell: bump version, add license file and hashGravatar Thomas Petazzoni2017-12-082-5/+4
| | | | | | | | | | | | Following our feedback, Marvell has added a README.md file into the branch that contains the firmware. Thereore, this commit bumps the version to the commit that includes the README.md file (it's the only change, the firmware files are unmodified), updates <pkg>_LICENSE_FILES to point to README.md, and adds the hash for this license files. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* boot: uboot: fix typoGravatar Yegor Yefremov2017-12-081-1/+1
| | | | | | | Replace "depend" with "depends". Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* binaries-marvell: new packageGravatar Sergey Matyukevich2017-12-084-0/+57
| | | | | | | | | | | | | | | | | | | Some systems, including Marvell Armada 7k/8k SoCs, have a separate System Control Processor (SCP) for power management, clocks, reset and system control. ATF Boot Loader stage 2 (BL2) loads optional SCP_BL2 image into a platform-specific region of secure memory. This package adds SCP_BL2 firmware for Marvell Armada 7040 and 8040 SoCs. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> [Thomas: - Use "binaries-marvell" in the Config.in prompt and in the .mk file header. - Change the license information. - Adjust license information: it is GPL-2.0 with the FreeRTOS exception, and therefore can be redistributed.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* mv-ddr-marvell: new packageGravatar Sergey Matyukevich2017-12-084-0/+25
| | | | | | | | | | | | | | | | | This package adds Marvell Armada SoC DDR training algorithms. This code is not built separately, it is needed as dependency to build ATF firmware for Marvell Armada SoCs. Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com> [Thomas: - Remove MV_DDR_MARVELL_SRC_SYMLINK, ATF will directly pick up the mv-ddr-marvell code from where it is. - Use "mv-ddr-marvell" as the Config.in prompt, and in the comment header of the .mk file. - Add upstream URL in Config.in help text - Adjust license information.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: add support for bundling ATF BL31 into U-BootGravatar Jagan Teki2017-12-082-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some ARM64 platforms (such as Allwinner A64/H5) have a boot process where U-Boot encapsulates the BL31 part of the ARM trusted firmware. For such platforms, we need to build ATF before U-Boot, and pass a BL31 variable pointing to ATF bl31.bin to the U-Boot build process. This commit introduces a BR2_TARGET_UBOOT_NEEDS_ATF_BL31 variable to achieve this. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> [Thomas: - Rename option to BR2_TARGET_UBOOT_NEEDS_ATF_BL31 - Drop changes to arm-trusted-firmware.mk, they are taken care of by previous commits. - Improve Config.in help text - Add missing dependency on arm-trusted-firmware when BR2_TARGET_UBOOT_NEEDS_ATF_BL31 is enabled. - Use bl31.bin from $(BINARIES_DIR) instead of taking it from ATF's build dir.] [Peter: depend on toplevel atf option and select bl31 option. Ensure it cannot be enabled together with ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33 as that would cause circular dependencies] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* arm-trusted-firmware: allow to generate the BL31 imageGravatar Thomas Petazzoni2017-12-082-0/+11
| | | | | | | | | | Some platforms (e.g Allwinner ARM64) don't build a FIP image out of ATF, but only a BL31 image, which is then encapsulated in U-Boot. This commit adds an ATF option to build such an image. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Tested-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* arm-trusted-firmware: add BR2_TARGET_ARM_TRUSTED_FIRMWARE_UBOOT_AS_BL33Gravatar Thomas Petazzoni2017-12-082-3/+14
| | | | | | | | | | | | | | | | | | | | | ATF can be used in different ways: - ATF encapsulates U-Boot as the BL33, which is what is done on ARM Juno (currently supported in Buildroot) and Marvell platforms (soon to be supported) - U-Boot encapsulates ATF's BL31, which is what is done on Allwinner ARM64 platforms. Until now we were assumming the former was always the case, but obviously it isn't. Therefore, this patch adds an option that allows to explicitly tell ATF that it encapsulates U-Boot as its BL33. We adapt the only defconfig that uses ATF so that it enables this option as appropriate. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* arm-trusted-firmware: add option to enable/disable building FIP imageGravatar Thomas Petazzoni2017-12-082-1/+15
| | | | | | | | | | | | | | | | | | | | Currently, our arm-trusted-firmware unconditionally builds a FIP (Firmware Image Package). While this is often needed on platforms where ATF encapsulates U-Boot, it is not the case on some other platforms where it's U-Boot that encapsulates parts of ATF. In order to prepare the support for the later platforms, we make building the FIP image optional, and update the only defconfig we have that uses ARM Trusted Firmware. Note: we considered adding a "default y" here to preserve backward compatibility, but there really isn't any default that is sane: whether a FIP image needs to be built or not is purely platform specific. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: Sergey Matyukevich <geomatsi@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* uboot: Use BR2_TARGET_UBOOT_SPL_NAME for TPL nameGravatar Jagan Teki2017-11-231-4/+5
| | | | | | | | | | Since the BR2_TARGET_UBOOT_SPL_NAME option accepts a space-separated list of binaries, the same option can be reuses for TPL binaries as well. This commit updates the string and help text to indicate that the same option can be used for SPL and TPL. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* uboot: bump to version 2017.11Gravatar Fabio Estevam2017-11-152-3/+3
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* uboot: use local libfdt.hGravatar Matt Weber2017-11-061-0/+7
| | | | | | | | | | | | | | | | | Use of libfdt.h by u-boot is currently using the <system-path>. Jan submitted the following upstream https://patchwork.ozlabs.org/patch/833760/ Resolves a failure like this one observed on uboot-tools http://autobuild.buildroot.net/results/347cde4b5c0e6ca76d354396385be4ec1294da73 [Peter: only sed if file exists] CC: Jan Kundrát <jan.kundrat@cesnet.cz> CC: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* barebox: bump to version 2017.09.0Gravatar Peter Seiderer2017-10-272-5/+5
| | | | | Signed-off-by: Peter Seiderer <ps.report@gmx.net> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* arm-trusted-firmware: bump to version 1.4Gravatar Peter Korsgaard2017-10-123-5/+5
| | | | | | | | | | The license file got reformatted as reStructuredText, but the license itself didn't change. Drop unneeded md5sum and add license hash. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* arm-trusted-firmware: fix comment typoGravatar Peter Korsgaard2017-10-121-1/+1
| | | | | Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* u-boot: add option to specify config fragmentsGravatar Peter Korsgaard2017-10-062-0/+7
| | | | | | | | U-Boot nowadays also uses kconfig, so we can handle config fragments like we do for barebox/busybox/linux. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* boot/grub: removeGravatar Yann E. MORIN2017-09-2310-48849/+0
| | | | | | | | | | | | | | | | | | | | | | grub is no longer maintained: it is stuck at version 0.97 with huge patches that have no opportunity to be applied upstream, as upstream has even renamed it grub-legacy. Besides, it no longer builds correctly with recent binutils versions, and even the huge patches we could grab from Debian do not help the slightest. Since upstream really considers it dead, and there are at least two alternatives (grub2 and syslinux), just remove grub. Add a legacy entry. Remove the test cases as well. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
* uboot: bump to version 2017.09Gravatar Fabio Estevam2017-09-122-3/+3
| | | | | Signed-off-by: Fabio Estevam <festevam@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* grub2: force -fno-stack-protector in CFLAGSGravatar Erico Nunes2017-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | grub2 fails to configure when BR2_SSP_ALL is enabled, with the following configure error: checking whether -fno-asynchronous-unwind-tables works... yes checking whether -fno-unwind-tables works... yes checking for target linking format... unknown configure: error: no suitable link format found This can be worked around by enforcing -fno-stack-protector in the package CFLAGS in a way that overrides the SSP flag, as is already done for the valgrind package. Fixes bug #10261. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Reported-by: Dr I J Ormshaw <ian_ormshaw@waters.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot/syslinux: fix i386 bios build with recent binutilsGravatar Arnout Vandecappelle2017-08-162-0/+917
| | | | | | | | | | | | | | | | | | | | | | | | | When we use the cross-compiler to build syslinux with a recent binutils version, it fails with: /builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld -Bsymbolic -pie -E --hash-style=gnu -T /builds/arnout/buildroot/output/build/syslinux-6.03/core/i386/syslinux.ld -M -o ldlinux.elf ldlinux.o \ --start-group libcom32.a --whole-archive /builds/arnout/buildroot/output/build/syslinux-6.03/bios/com32/lib/libcom32core.a libldlinux.a --end-group -N --no-omagic \ > ldlinux.map /builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: ldlinux.elf: Not enough room for program headers, try linking with -N /builds/arnout/buildroot/output/host/bin/i586-buildroot-linux-uclibc-ld: final link failed: Bad value /builds/arnout/buildroot/output/build/syslinux-6.03/core/Makefile:167: recipe for target 'ldlinux.elf' failed Backport an upstream patch that reorganises the i386 bios build by removing some symbols and making others hidden. To simplify the backport, an additional patch that also touches the link script is also included - it anyway looks like that patch could be relevant as well. Partially fixes: https://gitlab.com/arnout/buildroot/-/jobs/28979377 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot/syslinux: renumber patchesGravatar Arnout Vandecappelle2017-08-166-10/+10
| | | | | | | | Also the last two are regenerated, their context has changed due to the patches that have been removed earlier. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* uboot: bump to version 2017.07Gravatar Jörg Krause2017-07-213-3/+13
| | | | | | | | | Add a new config option BR2_TARGET_UBOOT_NEEDS_PYLIBFDT for U-Boot targets, like sunxi, needing the Python libfdt library. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> [Thomas: drop bogus selects on BR2_PACKAGE_HOST_{PYTHON,SWIG}.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* grub2: move usage notes to package readme.txtGravatar Erico Nunes2017-07-162-98/+100
| | | | | | | | | | | | | | As discussed in the mailing list, grub2 usage notes were growing too big for a Config.in documentation, and so it was agreed that a readme.txt in the package directory is a better place to put them. This commit simply moves the documentation as-is to preserve the original contents as they were in Config.in which can be worked on in further commits. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* grub2: bump up versionGravatar Erico Nunes2017-07-165-65/+15
| | | | | | | | | | | | | | | | | | | | | | | | | After many years since the last release and a long time with grub 2.02 in beta, there is finally a release and it brings many bug fixes and interesting features such as support for ARM. Patch boot/grub2/0001-remove-gets.patch doesn't seem to be required anymore as grub-core/gnulib/stdio.in.h has changed significantly since "053cfcd Import new gnulib." and has another treatment for gets. Patch boot/grub2/0002-grub-core-gettext-gettext.c-main_context-secondary_c.patch was a backport which is present after the bump and therefore is also no longer necessary. Since we're adding a Config.in comment, we also introduce a BR2_TARGET_GRUB2_ARCH_SUPPORTS hidden boolean, in order to avoid repeating the architecture dependencies. Signed-off-by: Erico Nunes <nunes.erico@gmail.com> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Thomas: add BR2_TARGET_GRUB2_ARCH_SUPPORTS, remove bogus dependencies on ARM and AArch64, since enabling Grub2 on those architectures is done in another commit.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* uboot: apply xtensa overlayGravatar Max Filippov2017-07-091-0/+8
| | | | | | | | | | Xtensa core configuration must be added to U-Boot before it can be built for that xtensa CPU variant. Extract configuration files from the xtensa overlay as is done for other packages that need to be configured for a specific xtensa core. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* grub2: install in $(HOST_DIR) instead of $(HOST_DIR)/usrGravatar Arnout Vandecappelle2017-07-051-0/+2
| | | | | | | | | | | | grub2 builds for the target but installs with DESTDIR=$(HOST_DIR). Since we set prefix to /usr in TARGET_CONF_OPTS, this results in installing things in $(HOST_DIR)/usr. To make sure we don't install in $(HOST_DIR)/usr, override --prefix and --exec-prefix. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* grub2: remove host/usr reference from help textGravatar Arnout Vandecappelle2017-07-051-2/+2
| | | | | Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/share with $(HOST_DIR)/shareGravatar Arnout Vandecappelle2017-07-051-1/+1
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/share' | xargs sed -i 's%$(HOST_DIR)/usr/share%$(HOST_DIR)/share%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/lib with $(HOST_DIR)/libGravatar Arnout Vandecappelle2017-07-051-2/+2
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/lib' | xargs sed -i 's%$(HOST_DIR)/usr/lib%$(HOST_DIR)/lib%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* Globally replace $(HOST_DIR)/usr/bin with $(HOST_DIR)/binGravatar Arnout Vandecappelle2017-07-054-10/+10
| | | | | | | | | | | Since things are no longer installed in $(HOST_DIR)/usr, the callers should also not refer to it. This is a mechanical change with git grep -l '$(HOST_DIR)/usr/bin' | xargs sed -i 's%$(HOST_DIR)/usr/bin%$(HOST_DIR)/bin%g' Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* syslinux: drop patch 0003, not needed after gnu-efi updateGravatar Benoît Allard2017-07-041-35/+0
| | | | | Signed-off-by: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot/syslinux: disable syslinux legacy-BIOS for broken toolchainsGravatar Romain Naour2017-07-041-0/+1
| | | | | | | | | | | | | | | | | | Since [1] syslinux is built with the target toolchain in order to properly build with gnu-efi package. But toolchains built with binutils 2.26 break the syslinux legacy-BIOS build as reported at [2], due to binutils bug #19615. Thanks to Benoît Allard for the investigation and the link to the binutils bug [3]. [1] 6e432d5ecb46959f3c27dbbca48e41512bb40a70 [2] http://lists.busybox.net/pipermail/buildroot/2017-July/196253.html [3] https://sourceware.org/bugzilla/show_bug.cgi?id=19615 Signed-off-by: Romain Naour <romain.naour@smile.fr> Cc: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* core: change the strip command from a choice to a booleanGravatar Yann E. MORIN2017-07-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Curently, we have a choice to select between stripping and not stripping. This is legacy code from back when we had a third option, sstrip (super-strip). Since we removed sstrip, stripping or not stripping is now just a boolean rather than a choice. Make it so. We make BR2_STRIP_strip default to 'y' to keep the current behaviour of defaulting to stripping. Move BR2_STIP_none to legacy, and instruct the user to review the new setting. Drop any reference to BR2_STRIP_none in comments. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* boot/syslinux: drop patch 0008, not needed after gnu-efi updateGravatar Benoît Allard2017-06-301-30/+0
| | | | | | | | | | | Thanks to the bump of gnu-efi from 3.0.5 to 3.0.6, patch 0008 in the syslinux package is no longer needed. More specifically, it's commit bf07e8141777e5a2d67ec8447084215224bdad4b in upstream gnu-efi that fixed the underlying issue. Signed-off-by: Benoît Allard <benoit.allard@greenbone.net> [Thomas: add better commit log] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* uboot: add support for generating U-Boot boot scriptsGravatar Thomas Petazzoni2017-06-222-0/+29
| | | | | | | | | | | | | | | | | | | More and more of our defconfigs need to generate a U-Boot boot script. It's a simple call to mkimage, but we already have 12 instances of this logic in board/, and there are patch series waiting in patchwork adding 3 more boards that need this. So let's add an option in the U-Boot package to generate such a boot script image easily. Note that we assume a single script needs to be generated, and the output file name is boot.scr. The only platform for which it seems to not be the case are the Boundary Devices platforms: they generate two boot scripts, 6x_bootscript and 6x_upgrade, but they are anyway installed inside TARGET_DIR, not BINARIES_DIR. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
* barebox: support multiple image filesGravatar Marcin Niestroj2017-06-213-7/+7
| | | | | | | | | | | | Add support for specifying multiple image files in BR2_TARGET_BAREBOX_IMAGE_FILE config option. This is useful for boards with several RAM size variants. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> [Thomas: rename internal variable from $(1)_IMAGE_FILE to $(1)_IMAGE_FILES.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* arm-trusted-firmware: cleanup make target handlingGravatar Luca Ceresoli2017-06-151-3/+2
| | | | | | | | | | | | | ARM_TRUSTED_FIRMWARE_MAKE_TARGET is expanded, but it's never assigned so it is always empty. On the other hand the make targets are defined in ARM_TRUSTED_FIRMWARE_MAKE_OPTS, which should contain options, not targets. Clean it all up by moving the targets in the proper place, replacing the useless $(ARM_TRUSTED_FIRMWARE_MAKE_TARGET). Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* syslinux: Add patch to build efi/wrapper with the host toolchainGravatar Benoît Allard2017-06-121-0/+32
| | | | | | | | The 'wrapper' tool built by syslinux is executed on the build machine, so it should be built with CC_FOR_BUILD. Signed-off-by: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* syslinux: add patches to build with the latest gnu-efi releaseGravatar Benoît Allard2017-06-113-0/+104
| | | | | Signed-off-by: Benoît Allard <benoit.allard@greenbone.net> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>