summaryrefslogtreecommitdiffstats
path: root/rules
Commit message (Collapse)AuthorAgeFilesLines
* blspec-entry: remove superfluous fileRoland Hieber2024-03-251-73/+0
| | | | | | | | 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>
* blspec-entry: Backport fix from ptxdist masterAlexander Dahl2024-03-111-1/+1
| | | | | | | | | | | | | | 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>
* datapartition: set licenseRoland Hieber2023-12-131-0/+1
| | | | | | | | | | | 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>
* datapartition: add missing mount unitRoland Hieber2023-12-131-0/+4
| | | | | | | | | | | | 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>
* datapartition: generate partitions via systemd-repartRoland Hieber2023-12-132-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* rauc-udev: add a compatibility layer for mapping partitionsRoland Hieber2023-08-152-0/+47
| | | | | | | | | | | | | | | | 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>
* platforms: drop no longer needed blspec-rpi4Ahmad Fatoum2023-05-311-38/+0
| | | | | | | | | | | | 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>
* ptxdist: version bump 2023.04.0 -> 2023.05.0Michael Olbrich2023-05-082-321/+0
| | | | | | | | | - 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>
* at91bootstrap2: make targetinstall v4.x compatibleAhmad Fatoum2023-04-171-0/+90
| | | | | | | | | | | | | | | | | | | | | 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>
* host-qemu: ignore git submodulesRobert Schwebel2023-04-081-1/+2
| | | | | | | | | | | | | | | | | | 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>
* host-qemu: add version from ptxdist-2023.04.0Robert Schwebel2023-04-081-0/+230
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* expat: remove local recipieRobert Schwebel2023-04-081-66/+0
| | | | | | | 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>
* blspec-entry: add linux-appendroot supportMarco Felsch2023-02-111-1/+9
| | | | | | | | | 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>
* blspec-entry: import from upstream ptxdist-2022.12.0Marco Felsch2023-02-111-0/+65
| | | | | | | | | 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>
* host-genimage: remove local ruleRobert Schwebel2022-11-251-38/+0
| | | | | | genimage-16 is now in ptxdist, so we can remove the local rule. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* expat: source has moved to githubRobert Schwebel2022-11-231-1/+1
| | | | | | The source is not at sourceforge any more but has moved to github. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* expat: copy rule from ptxdist-2022.11.0Robert Schwebel2022-11-231-0/+66
| | | | Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a: rpi4: add boot loader spec supportAhmad Fatoum2022-10-021-0/+38
| | | | | | | | | | | 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>
* host-genimage: version bump 15 -> 16Robert Schwebel2022-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* host-genimage: pull in rule from ptxdist-2022.07.0Robert Schwebel2022-09-051-0/+38
| | | | | | Preparation for a version bump. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* v7a, mips: fix barebox-common oldconfig with inherited layersRoland Hieber2021-04-261-1/+1
| | | | | | | | | | | | | | | | | | 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>
* Revert "genimage: update to v14"Roland Hieber2021-02-091-38/+0
| | | | | | | | | 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>
* genimage: update to v14Ahmad Fatoum2021-02-011-0/+38
| | | | | | | | | 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>
* iproute2: remove local menu fileMichael Olbrich2021-02-011-157/+0
| | | | | | | 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>
* iproute2: document upstream fix for our local forkRoland Hieber2020-09-151-0/+3
| | | | Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* strace: remove local version bumpRoland Hieber2020-09-151-7/+0
| | | | | | Since PTXdist 2020.09.0, we have strace 5.8 from upstream. Signed-off-by: Roland Hieber <rhi@pengutronix.de>
* iproute2: add dependency to libcapRobert Schwebel2020-08-311-0/+1
| | | | | | | 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>
* iproute2: import unmodified .in fileRobert Schwebel2020-08-311-0/+153
| | | | | | | 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>
* strace: temporary version bump 5.7 -> 5.8Roland Hieber2020-08-311-0/+7
| | | | | | | | | | | | | | 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>
* libcap: remove local versionsRobert Schwebel2020-08-102-102/+0
| | | | | | | | | | 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>
* libcap: don't build gperf and golangRobert Schwebel2020-07-241-0/+2
| | | | | | | | 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>
* libcap: put make options on separate linesRobert Schwebel2020-07-241-1/+3
| | | | | | This patch can be removed again after ptxdist-2020.08.0. Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
* libcap: add unmodified version from upstreamRobert Schwebel2020-07-241-0/+68
| | | | | | | 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>
* host-libcap: add upstream patch to disable go bindingsRobert Schwebel2020-07-241-1/+9
| | | | | | | 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>
* host-libcap: add version from ptxdist-2020.07.0Robert Schwebel2020-07-241-0/+22
| | | | | | | 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>
* ptxdist: migrate 2020.03.0 -> 2020.04.0 with defaultsAhmad Fatoum2020-04-262-262/+0
| | | | | | | | | 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>
* rules: remove CREDIT linesRoland Hieber2020-03-051-2/+0
| | | | | | | | 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>
* rules: add ARM Trusted Firmware-AAhmad Fatoum2020-03-052-0/+262
| | | | | | | | | | | | | | | 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
* v7a: barebox-common: add clean target that affects all bareboxesAhmad Fatoum2019-11-041-0/+9
| | | | | | | | 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>
* v7a: barebox-common: modify oldconfig to affect all bareboxesAhmad Fatoum2019-11-041-0/+13
| | | | | | | | | 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>
* pre/barebox: remove code merged in upstreamRobert Schwebel2019-10-171-6/+0
| | | | | | | 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>
* networkmanager: remove ruleset that went upstreamRobert Schwebel2019-10-172-331/+0
| | | | | | | 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>
* NetworkManager: Use meson build-system.Björn Esser2019-09-132-70/+60
| | | | | | | | 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>
* rules: Add networkmanager rules from ptxdist-2019.09.0 release.Björn Esser2019-09-132-0/+341
| | | | | | | | 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>
* pre/barebox: barebox-url: only use <PKG>_VERSION to build the URLRoland Hieber2019-06-051-0/+6
| | | | | | | | | | | | | | | | | | | | 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>
* datapartition: /usr mergeRobert Schwebel2017-06-301-2/+2
| | | | | | | 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: remove from bspRobert Schwebel2017-06-122-331/+0
| | | | | | | 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>
* networkmanger: update from 1.6 to 1.8Robert Schwebel2017-05-162-0/+331
| | | | | | | 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>
* ptxdist: version bump 2016.08.0 -> 2016.12.0Robert Schwebel2017-01-032-168/+0
| | | | | | | | | 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>
* libgudev: remove local versionRobert Schwebel2016-08-221-22/+0
| | | | | | | 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>