| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
After upstreaming our changes, the file in PTXdist 2024.02.0 is now the
same as ours, so we can remove it here.
Suggested-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Backport PTXdist commit 0d360df876bc26f709cf (2024-02-02, Alexander
Dahl: "blspec-entry: Fix kernel entry for FIT image"), otherwise
barebox fails when trying to boot a FIT image like this:
ERROR: could not open /mnt/mmc0.1//boot//boot/linux.fit: No such file or directory
ERROR: blspec: Booting failed
Signed-off-by: Alexander Dahl <ada@thorsis.com>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20240306092530.1448784-3-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
The license is for the source of the package and this
package has none. Use 'ignore' here.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20231103225253.1349209-8-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
[rsc: mol asked for 'ignore', as the license is not for the recipe. Fixed up.]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
The data partition has not been mounted since /etc/fstab was removed in
commit 5eb165a3722013d2c80d (2016-08-18, "ptxdist: version bump
2016.07.0 -> 2016.08.0"). Create the mount point, and add a systemd
mount unit based on the /dev/disk/by-usage/data symlink set up by our
custom rauc-udev rule.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20231103225253.1349209-7-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generating the second rootfs and the data partition on the first boot
has the advantage that the generated images can get even smaller, and we
can resize the data partition on-the-fly to fill the available space on
the boot medium.
Specify a minimum of 200 MiB for the first and second root partitions
just so that both are of equal size. (This will fit any root.ext2 in any
of our platforms with about 25% of space left.) If the first root
partition in the image is smaller, it will get resized too, including
the filesystem it contains.
Remove the old systemd-autoformat service and the mkfs-ext4 udev rule,
which also only handled the case where the data partition was the third
partition on the disk (which is not always the case anymore since we
have partitions for barebox-state or device-specific firmware), and
replace it with a call to systemd-repart if the root partition is on a
disk that we can actually repartition (i.e. /dev/root is not emulated
via qemu; this should also match the case when we are running from
initrd, but this has not been tested.)
Use a custom Type UUID instead of "linux-generic" for the data partition
to prevent systemd-repart from matching any bootloader partitions that
could throw off the matching algorithm (e.g. on STM32MP1).
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20231103225253.1349209-6-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we add RAUC support for different platforms later, we need a way to
specify their respective root partitions in RAUC's system.conf; however,
the names of the actual partitions can differ on different hardware
platforms. Add a short udev rule that can add symlinks to the actual
partitions based on the device tree compatible. This way we can refer to
the partitions in system.conf using the symlinks on all boards that we
want to support.
This commit only adds a stub for now; we will add the code that creates
the actual symlinks for each hardware in later commits.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that we have commits:
- 552ea42fe7aa ("v8a: blspec: switch to default blspec entry")
- b7a4fe185852 ("v7a: blspec: convert to ptxdist default entries")
we don't need special dedicated blspec rules anymore for v7a/v8a, so drop
the last one we had left.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
- all changes in rules/at91bootstrap2.make and rules/host-qemu.make are
now upstream.
- update configs/platform-mipsel/rules/host-qemu.make to the latest
version from upstream. It still has local changes for mips.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The binaries directory, where artifacts were previously written to is
now beneath build/ by default[1]:
BUILDDIR ?= ./build
BINDIR:=$(BUILDDIR)/binaries
Supply BUILDDIR=. after the make command to return to the old directory
scheme. This should have no effect on AT91Bootstrap v3.x and older
as BUILDDIR was first added in v4.0.0[1].
This has already been submitted for PTXdist inclusion[2].
[1]: https://github.com/linux4sam/at91bootstrap/commit/814f3bdab515287fbb0d972d89d228748613ae91
[2]: https://lore.ptxdist.org/ptxdist/20230417115146.745019-1-a.fatoum@pengutronix.de/T/#u
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20230417131141.908678-2-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
without this configure switch, we get the following error:
-------------------------
target: host-qemu.prepare
-------------------------
Using './build' as the directory for build output
warn: ignoring non-existent submodule ui/keycodemapdb
warn: ignoring non-existent submodule tests/fp/berkeley-testfloat-3
warn: ignoring non-existent submodule tests/fp/berkeley-softfloat-3
warn: ignoring non-existent submodule dtc
fatal: not a git repository: '/home/rsc/work/DistroKit/platform-v7a/build-host/qemu-7.2.0/.git-disabled'
/home/rsc/work/DistroKit/platform-v7a/build-host/qemu-7.2.0/scripts/git-submodule.sh: failed to update modules
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
The SF archive seems to be active again, so we can remove the local
change to download from github.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Add the option to add the 'linux-appendroot true' to blspec config file
which is very useful in case of using barebox as bootlaoder.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-11-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Import all required files from upstream ptxdist-2022.12.0 for further
adaptions. No functional changes done.
Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.pengutronix.de/20230210193612.2143905-10-m.felsch@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
genimage-16 is now in ptxdist, so we can remove the local rule.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
The source is not at sourceforge any more but has moved to github.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
| |
We now build device trees and have a kernel capable of booting on the
Raspberry Pi 4b, so generate bootloader spec entries as well. We add
an entry for the Raspberry Pi 400 as well. This is untested, but isn't
costly to enable.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.pengutronix.de/20220930162159.814389-9-a.fatoum@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Quoting Ahmad Fatoum's original patch description:
"
genimage master has support for calling fiptool, which makes it
straight-forward to generate eMMC boot partition images with the
same genimage.config generating the image for the user area.
TF-A also has a fip target that can call fiptool for us, but is only
works when generating a single bootloader image, but we generate
multiple images, so we can't reuse the current tf-a rule as is.
One more option would be to write a custom image rule, but as genimage
master has support, let's just backport the patch. The autogen.sh is
necessary, because we touch Makefile.am and we want autogen to rerun to
account for changes between our host autotools and the one used to
build the shipped files.
"
Instead of patching genimage, let's bump the version.
This patch and the one that pulls in the host-genimage.make rule can be
removed from DistroKit once genimage-16 is in ptxdist.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
Preparation for a version bump.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When using layers that inherit DistroKit, doing a 'ptxdist oldconfig
barebox-common' in the inherited layer can lead to strange errors about
unmatched MD5 sums in the config diff. This happens because
ptxd_make_world_kconfig_mode() in scripts/lib/ptxd_make_world_kconfig.sh
only updates the config files when the stage name matches "*config".
Rename the "barebox-common_oldconfig_" target to something that matches
the regex.
As a side note, we still need a separate oldconfig target for
barebox-common here because it must run before all other barebox's
oldconfig stages.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/20210426082840.5999-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
After updating to PTXdist 2021.02.0, our rule file is now identical to
the upstream version.
This reverts commit a9e6149a8348e0f130b1efe5d31d9440a80017ef.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
v14 adds support for gpt-no-backup, which allows us to shrink our GPT
image sizes for the lxa-mc1 and stm32mp157c-dk.
This commit can be reverted with the migration to ptxdist v2020.02.0.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
|
|
|
|
|
|
|
| |
It's no longer needed with the new ptxdist release.
Tested-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
| |
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
| |
Since PTXdist 2020.09.0, we have strace 5.8 from upstream.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
| |
The handmade configure script in iproute2 doesn't correctly find libcap.
Enforce it to be there in any case.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
This imports the .in file from ptxdist-2020.08.0, as a base for the
following patch.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Instead of forking the whole rule file, adapt only the relevant lines of
the respective upstream PTXdist submission [0] locally to fix build
errors when updating to OSELAS.Toolchain 2020.08.0. The override can be
removed again after migrating to a PTXdist version that includes the
change.
[0]: <20200830193241.30954-1-rhi@pengutronix.de> (2020-08-30, Roland
Hieber: "[ptxdist] [PATCH] strace: version bump 5.7 -> 6.8"),
https://www.mail-archive.com/ptxdist@pengutronix.de/msg17004.html
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
| |
The patches applied here are fixed in ptxdist upstream with commit
b5b016c09863783f69d97dd206d03ffaed225168, which is part of
ptxdist-2020.08.0.
Remove the local rules.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
This patch is taken from b5b016c09863783f69d97dd206d03ffaed225168 and
can be removed together with the two previous patches after
ptxdist-2020.08.0.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
| |
This patch can be removed again after ptxdist-2020.08.0.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
In preparation of a patch for systems with Go toolchains, add the
unmodified version from upstream.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
Add patch from a986feb514bd7ff6c75d0fb7a3fc7ea3b0169f44; this patch and
the previous one can be dropped again after ptxdist-2020.08.0.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
In preparation of a patch for systems with Go toolchains, add the
unmodified version from upstream.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
With this release, the TF-A rule went upstream in revised form, so it's
dropped as part of the migration.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
[adapted to current next]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
This file has never existed here, and the respective lines were also
removed from the upstream PTXdist rules and templates in commit
cbd6bda680c65d7e01cf ("CREDITS: remove unmaintained file").
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Trusted Firmware-A (TF-A) is a reference implementation of secure world
software for Arm A-Profile architectures (Armv8-A and Armv7-A).
TF-A is used as first-stage bootloader on the STM32MP1. We'll use
barebox for second-stage only for now, thus add a rule for TF-A.
Tested-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Rouven Czerwinski <rouven@czerwinskis.de>
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
[oldconfiged rpi an v8a platforms while applying]
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Link: https://www.mail-archive.com/ptxdist@pengutronix.de/msg15828.html
|
|
|
|
|
|
|
|
| |
Repeat what we did with barebox-common's oldconfig for clean stage as well:
Running ptxdist clean barebox-common will now clean all bareboxes.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
With barebox updates, oldconfig needs to be rerun for every barebox in
the BSP, to resync the configs. With this change this can be done
at once by issuing a ptxdist oldconfig barebox-common.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
|
|
|
|
|
|
|
| |
The change was merged in ptxdist-2019.06.0-49-g1019ebf97, so we can
remove it from the BSP.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
The changes made here have been merged in ptxdist-2019.10.0, so we can
remove them from the BSP.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
| |
The Autotools-based build-system is deprecated and unsupported
by upstream. The next release of NetworkManager may drop Autotools
completely.
Signed-off-by: Björn Esser <b.esser@pengutronix.de>
|
|
|
|
|
|
|
|
| |
We need to modify these files for using Meson as the build-system,
because using Autotools is deprecated upstream and leads to a
race-condition, which makes the build fail randomly.
Signed-off-by: Björn Esser <b.esser@pengutronix.de>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When adding another barebox package to a BSP, e.g. named barebox-foo,
the BAREBOX_FOO variable will contain "barebox-foo-$(VERSION)". This
variable is used to build BAREBOX_DIR, BAREBOX_SOURCE, and
BAREBOX_FOO_URL.
We must to keep the customized package postfix in the build
directory, but in the latter case, the -foo postfix is transferred
into the URL, which will lead to errors while downloading the source.
We actually only need the barebox version to download the source
tarball, so use a static "barebox-" string to build the barebox/url
macro and also the BAREBOX_FOO_SOURCE variable in the package template,
so the same tarball isn't downloaded multiple times with different
names.
Forwarded: https://www.mail-archive.com/ptxdist@pengutronix.de/msg14535.html
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
|
|
|
|
|
|
|
| |
Since 69841205bc7e114c40ccd3303fae2c97d0c42184 in ptxdist, the systemd
/usr merge is active. Adapt local rules as well.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
NetworkManager 1.8 is now in ptxdist, so we can remove it from the BSP.
This reverts commit 1de71fbe5b937694d0de072984f3984e9775d0d9.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
This change didn't make it into ptxdist-2017.05.0, so put it here
temporarily.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
|
|
| |
Migrate configs/ptxconfig and configs/platform-v7a/platformconfig.
The modifications previously made to rules/host-qemu.{make,in} are now
upstream, so remove these files.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|
|
|
|
|
|
|
| |
Since ptxdist-2016.06.0, libgudev.in is fixed in upstream (the host-glib
dependency was missing), so we can now remove the local file.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
|