Commit Graph

73922 Commits

Author SHA1 Message Date
Peter Korsgaard
78e646240f package/go: fix convenience typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 5aa9b105b9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:35 +02:00
Peter Korsgaard
506c14d8e1 package/go-src: fix variable typo in patch description
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit c31189363b)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:34 +02:00
Peter Korsgaard
e9fe4e6cb9 package/gerbera: fix guaranteed typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 4a66a2af64)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:33 +02:00
Peter Korsgaard
1395e6cedc package/genpart: fix typos and grammar in patch description
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[yann.morin.1998@free.fr: also fix grammar]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit e009783505)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:33 +02:00
Peter Korsgaard
fee0865740 package/gdb: fix program typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 27277a2bc9)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:32 +02:00
Peter Korsgaard
ff0edf2450 package/gcc: fix explicitly typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit d5bb8fff5f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:31 +02:00
Peter Korsgaard
c0682780f3 package/flutter-pi: fix Raspberry typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a0c020317d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:30 +02:00
Peter Korsgaard
c299d465b8 package/flutter-engine: fix typos in comments
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit cccd164fd6)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:29 +02:00
Peter Korsgaard
17076edc90 package/flex: fix typo in patch description
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 892d7d784e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:28 +02:00
Peter Korsgaard
74c4478ea9 package/fcgiwrap: fix explicitly typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 05b18efb7b)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:28 +02:00
Peter Korsgaard
b0bfaa8d5a package/fbgrab: fix framebuffer typo in help text
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit ae471a7d3d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:27 +02:00
Peter Korsgaard
4365f24835 package/falcosecurity-libs: fix which typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 6ce119ca02)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:26 +02:00
Peter Korsgaard
657687322b package/exiv2: fix 'information see' typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 987cfd586e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:25 +02:00
Peter Korsgaard
1d5cb8c6db package/erlang: fix inadvertently typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 9c70f31956)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:24 +02:00
Peter Korsgaard
5ba2961cc9 package/elftosb: fix typos in patch descriptions
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a4c81a7a07)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:24 +02:00
Peter Korsgaard
82b82594e8 package/dvblast: fix which typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 1a05d2f16f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:23 +02:00
Peter Korsgaard
530bfe46dc package/dmalloc: fix deactivate typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 1fe75a9a62)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:22 +02:00
Peter Korsgaard
755f3532d3 package/dcron: fix opening typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit be495963ed)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:21 +02:00
Peter Korsgaard
1e6d3f7bab package/collectd: fix typos in help text / comment
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 9a11cb9bdd)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:20 +02:00
Peter Korsgaard
2cc170a99e package/chocolate-doom: fix multiple typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 8e6d5e49fe)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:19 +02:00
Peter Korsgaard
c35946ccad package/c-icap-modules: fix Additional typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit e277ef8aff)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:19 +02:00
Peter Korsgaard
fc1b43b2e6 package/boost: fix typos in help text
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit add4729108)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:18 +02:00
Peter Korsgaard
8d5f51706d package/bcusdk: fix definition typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 2619c02189)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:17 +02:00
Peter Korsgaard
dbc9de026b package/bcache-tools: fix compatibility typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 4c046460d2)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:16 +02:00
Peter Korsgaard
923a6df874 package/bc: fix typos in patch descriptions
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit e2a0ab180c)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:15 +02:00
Peter Korsgaard
0d56cfabf4 package/avahi: fix appropriate typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit fcb823ffdc)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:14 +02:00
Peter Korsgaard
04d64ab6d5 package/audit: fix deactivate typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 413479ffce)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:14 +02:00
Peter Korsgaard
828f9053d9 package/alure: fix grammar and dependencies typo in comment
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[yann.morin.1998@free.fr: fix grammar]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 43357baf4b)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:13 +02:00
Peter Korsgaard
e5f7a9fb71 docs/website/news.html: fix information typo
Plural of information is also information.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit cd6584715e)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:12 +02:00
Peter Korsgaard
3c7f868fe6 docs/website/copyright.txt: fix aboard typo
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 6cb031802d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:11 +02:00
Peter Korsgaard
a5b3306b04 docs/manual/using-buildroot-toolchain.adoc: fix overridden typo
Overridden is with double-r-double-d.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit d729696451)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:10 +02:00
Peter Korsgaard
f002755659 docs/manual/migrating.adoc: fix accommodate typo
Accommodate is with double-m.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit eba958eb5d)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:10 +02:00
Peter Korsgaard
7fab58374d docs/manual/migrating.adoc: fix occurrence typo
Occurrence is with double-c-double-r.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 6ee7480893)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:09 +02:00
Peter Korsgaard
0f20caa178 docs/manual/customize-outside-br.adoc: fix 'or' typo
It is OR, not OT.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 777c081abe)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:08 +02:00
Peter Korsgaard
889abedd5b docs/manual/adding-packages-meson.adoc: fix occurrences typo
Occurrences is with double-c-double-r.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 6762761957)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:07 +02:00
Peter Korsgaard
8d22410d93 docs/manual/adding-packages-linux-kernel-spec-infra.adoc: fix information typo
Plural of information is also information.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit c88a617599)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:06 +02:00
Peter Korsgaard
4124af6626 docs/manual/adding-packages-asciidoc.adoc: fix resources typo in example
As FOO_RESOURCES hints, the correct spelling is resources so use that.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 5fca562ee8)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 11:03:05 +02:00
Peter Korsgaard
30f9e284d9 support/misc/Vagrantfile: support libvirt provider
And configure memory/CPU like for the other providers.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 75b543880c)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 10:33:12 +02:00
Peter Korsgaard
bd83efd288 support/misc/Vagrantfile: move to Debian bullseye (12)
Ubuntu Bionic (18.04) was EOL'ed in June 2023:

https://ubuntu.com//blog/18-04-end-of-standard-support

And the VM image is only available in virtualbox format:

https://app.vagrantup.com/ubuntu/boxes/bionic64

So move to Debian bullseye (12), matching what we do for the docker image.
This is available in virtualbox and libvirt (qemu) format:

https://app.vagrantup.com/debian/boxes/bullseye64

Bullseye does not come with rsync out of the box, so install it.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 6cedd92744)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 10:33:00 +02:00
Yann E. MORIN
f6c0475732 Makefile: run PPD and RPATH fixup in host-fialize
Currently, the gdbinit is generated and installed during post install
hooks, either from the gdb package, or from the external-toolchain
package. When using per-package directories (PPD), the staging directory
of the either package is stored in the generated gdbinit, which is not
going to be valid when all the PPD staging dirs get merged into the
final staging: it would lack any library installed afterwards, i.e.
mostly everything would be missing (but the libraries from the C
toolchain in the case of an external toolchain).

Similarly, all the RPATH will point to various PPD drectories. This
does not cause any issue when the final host is aggregated, because the
PPD directories still exist when we call programs from there (e.g. from
the fs infra, or from post-image scripts).

However, we knew that would not always be possible to keep the PPD
directories: we have the prepare-sdk rule that runs a cleanup pass on
the RPATH, and also applies the generic PPD fixups.

When we introduced prepare-sdk in c32ad51cbf (core/sdk: generate the
SDK tarball ourselves), we did not yet have support for PPD for the host
directory, and especially, we did not have the host-finalize rule, which
was only introduced in d0f4f95e39 (Makefile: rework main directory
creation logic) which kick-started the introduction of PPD.

At that point, we did not realise that the rpath fixups from
prepare-sdk, would be better moved to the new host-finalize rule,
because that had no impact unless one would need an SDK.

Later, in 25e60fbe1c (Makefile: fix SDK relocation for
per-package-dirs), we eventually introduced the PPD generic fixups in
the prepare-sdk rule. Again, we did not realise that those fixups would
be better placed in the host-finalize rule rather than the prepare-sdk.

While fixing the RPATH in host-finalize is not critical, fixing up the
PPD paths actually is, as the gdbinit case demonstrate.

As such, move the PPD fixups to the host-finalize step, and while at it,
also move the RPATH fixups.

This now does not leave much to do in the prepare-sdk step, and that
could very well be moved to the host-finalize rule as well. However,
some people may have started to rely on prepare-sdk in its 6 years of
existence, and the little script it installs is not needed unless one
really needs an SDK. So leave it as it is for now.

Reported-by: Casey Reeves <casey@xogium.me>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Tested-by: Casey Reeves <casey@xogium.me>
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Brandon Maier <Brandon.Maier@collins.com>
Tested-by: Brandon Maier <brandon.maier@collins.com>
Acked-by: TIAN Yuanhao <tianyuanhao3@163.com>
(cherry picked from commit a87abcf6da)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 09:13:42 +02:00
Yann E. MORIN
a0890d709b package: fix a few Config.in indentation
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit a7552293bb)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 09:11:13 +02:00
Yann E. MORIN
f066ea7f9c arch/Config.in.arc: fix indentation
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 2ba879cc38)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-19 09:11:03 +02:00
Marcus Hoffmann
5c6e7340ad package/python-django: security bump to 5.0.9
Fixes:
* CVE-2024-45230
* CVE-2024-45231

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-14 17:15:14 +02:00
Peter Korsgaard
769d71ae84 Update for 2024.08
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024.08
2024-09-06 15:01:24 +02:00
Thomas Devoogdt
87bdffd543 package/libgtk4: fix execinfo compile error
../testsuite/reftests/gtk-reftest.c:28:10: fatal error: execinfo.h: No such file or directory

We don't need the test suite, so disable it.

Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-09-05 22:45:28 +02:00
Bernd Kuhls
f18790aedc {linux, linux-headers}: bump 4.19.x / 5.{4, 10, 15}.x / 6.{1, 6, 10}.x series
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-09-05 21:40:22 +02:00
Bernd Kuhls
6a506262e4 package/clamav: security bump version to 1.0.7
Fixes CVE-2024-20505 & CVE-2024-20506:
https://blog.clamav.net/2024/09/clamav-141-132-107-and-010312-security.html

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-09-05 21:08:53 +02:00
Bernd Kuhls
8de200895c package/libopenssl: security bump version to 3.3.2
Fixes the following security issues:

- CVE-2024-6119: Possible denial of service in X.509 name checks [Moderate
  severity]
  https://openssl-library.org/news/secadv/20240903.txt

- CVE-2024-5535: SSL_select_next_proto buffer overread [Low severity]
  https://openssl-library.org/news/secadv/20240528.txt

Updated _SITE and project URL according to
https://openssl-library.org/post/2024-04-30-releases-distribution-changes/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
[Peter: add CVE details]
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-09-05 08:04:28 +02:00
Romain Naour
efd5f1aae4 package/mender: needs libopenssl engine support
Buildroot commit 623d3bbe43 disables
engine support when BR2_PACKAGE_LIBOPENSSL_ENGINES is not set.

Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/7717334889
http://autobuild.buildroot.org/results/818/818f8c156311010d03d2f64b42231f486b543837

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2024-09-04 00:08:58 +02:00
Julien Olivain
248c2d045e boot/arm-trusted-firmware: add -no-pie to LDFLAGS
Arm Trusted Firmware (TF-A) v2.11 fails to build in some situations
with the error message:

    ld: build/qemu/release/bl1/bl1.elf: error: PHDR segment not covered by LOAD segment

This error can be reproduced with the commands:

    make qemu_aarch64_ebbr_defconfig
    utils/config --set-str BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION_VALUE v2.11
    make olddefconfig
    make

This issue was reported in [1].

This error is coming from a check that was made more strict since
binutils ld 2.34. This error message is normally related to dynamic
linker, so it should normally not apply to a package like TF-A.

When BR2_SHARED_LIBS=y (shared libraries only) and BR2_PIC_PIE=y
(Build code with PIC/PIE), the Buildroot toolchain-wrapper will try
to enable position-independent code/executables. See [2]. This
configuration is a common default.

Arm Trusted Firmware (TF-A) build system, on its side, tries to detect
if the toolchain enables PIE automatically. It does so by checking if
--enable-default-pie is in the output of "$(CC) -v". If found, the TF-A
build system tries to disable PIE globally (it can be explicitly
enabled again with the ENABLE_PIE=1 build variable, in some specific
configurations). This detection mechanism is not working with the
Buildroot toolchain wrapper which is enabling PIE silently. See [3].

Commit 1061ed6c "boot/arm-trusted-firmware: add -fno-PIE to CFLAGS"
added the option -fno-PIE in CFLAGS for that reason. See [4].
TF-A >= v2.11 now needs the same treatment for LDFLAGS. This is
because TF-A switched the default linker from "ld" to "gcc", in
upstream commit [5]. This change makes the Buildroot toolchain wrapper
to enable PIE at link, without passing the "--no-dynamic-linker" option
that would normally avoids this ld error.

Also, even if there is no defconfigs using the
BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION config directive, it is
worth mentioning that the Buildroot TF-A "latest version" was updated
to v2.11 in commit 9c50759cd "boot/arm-trusted-firmware: bump to
v2.11". See [6]. This latest version is the default choice. So
Buildroot is subject to generate this build failure. This can be
reproduced with the commands:

    cat <<EOF >.config
    BR2_aarch64=y
    BR2_TARGET_ARM_TRUSTED_FIRMWARE=y
    BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM="qemu"
    BR2_TOOLCHAIN_EXTERNAL=y
    EOF
    make olddefconfig
    make arm-trusted-firmware

This commit fixes the issue by adding the option "-no-pie" in LDFLAGS.
This will prevent the Buildroot toolchain wrapper to enable PIE, for
versions using "gcc" as a linker. This change should also remain
compatible with older TF-A < 2.11 using "ld" as a linker, since
"-no-pie" is also a valid ld option.

Fixes:

    ld: build/qemu/release/bl1/bl1.elf: error: PHDR segment not covered by LOAD segment

[1] https://github.com/TrustedFirmware-A/trusted-firmware-a/issues/26
[2] https://gitlab.com/buildroot.org/buildroot/-/blob/2024.08-rc3/toolchain/toolchain-wrapper.c?ref_type=tags#L403
[3] https://git.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a.git/+/refs/tags/v2.11.0/Makefile#711
[4] 1061ed6c62
[5] 2f1c5e7eb1%5E%21/
[6] 9c50759cd1

Reported-by: Vincent Stehlé <vincent.stehle@arm.com>
Tested-by: Vincent Stehlé <vincent.stehle@arm.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2024-09-03 23:58:40 +02:00