summaryrefslogtreecommitdiffstats
path: root/classes
Commit message (Collapse)AuthorAgeFilesLines
* keep new name suggestion remove ostree repo checkZee3141592019-12-121-3/+7
| | | | Signed-off-by: Zee314159 <252806294@qq.com>
* Use regex and add some variablesZee3141592019-12-121-37/+38
| | | | Signed-off-by: Zee314159 <252806294@qq.com>
* Add sanity checks for user-defined SOTA variablesZee3141592019-12-122-14/+42
| | | | Signed-off-by: Zee314159 <252806294@qq.com>
* Only push repo manifest if garage-push supports itLaurent Bonnans2019-11-201-1/+2
| | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Send a copy of repo manifest through garage-pushLaurent Bonnans2019-11-201-2/+8
| | | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* meta: change OTA_IMAGE_ROOTFS to TAR_IMAGE_ROOTFSMing Liu2019-11-202-3/+3
| | | | | | | | No functional changes, rename OTA_IMAGE_ROOTFS to TAR_IMAGE_ROOTFS since the later is a more common name. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-3988: force an ostree boot indication only in case of non-systemd distroMykhaylo Sul2019-11-201-1/+1
| | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Indicate an OSTree boot on startEugene Smirnov2019-11-201-1/+1
| | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Add ethernet driver for rpi4feat/warrior/2019.9-backportLaurent Bonnans2019-10-291-1/+1
| | | | | | On master, it's using the default poky configuration. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* image_types_ostree: Fix OSTree ref-bindingsJeremias Cordoba2019-10-291-1/+2
| | | | | | | | | | | | The command "ostree refs --create" creates a new ref that points to a pre-existing commit hash. This does not add this new ref to the ref-bindings metadata in OSTree. The missing metadata leads to OSTree verifcation failures when working with the new ref. Fix this by adding the "--bind-ref" option to "ostree commit" which adds the needed ref-binding metadata. Signed-off-by: Jeremias Cordoba <js.cordoba8321@gmail.com>
* Use the recommended kernel entry point on RPILaurent Bonnans2019-10-211-1/+1
| | | | | | | 0x8000 does not work on raspberrypi4-64 whereas 0x80000 is the value recommended for all platforms on u-boot Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Raspberrypi4 initial supportLaurent Bonnans2019-10-211-1/+31
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use a default expiry of one month if nothing is specified.Patrick Vacek2019-08-211-0/+2
| | | | | | | This mimics the intended behavior of the default in garage-sign, but doesn't rely on the date in the unsigned targets. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: latest garage-sign with expiration support.Patrick Vacek2019-08-202-4/+15
| | | | | | | Use GARAGE_TARGET_EXPIRES or GARAGE_TARGET_EXPIRE_AFTER (but not both!) to set the garage-sign parameters. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Expose OSTREE_BOOT_PARTITION in do_image_otafix/grub-ostreeLaurent Bonnans2019-08-191-0/+2
| | | | | | Used by ostree-grub-generator Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Do not export anything in sota.bbclassfix/ostree-branchname-2Laurent Bonnans2019-08-151-5/+5
| | | | | | | A simple variable definition will be enough and doing an export there completely kills caching. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Revert "Move OSTREE_BRANCHNAME to image_types_ostree.bbclass."Laurent Bonnans2019-08-152-3/+3
| | | | | | This reverts commit 8e7a0aeb3682386ed674ed0f682634d6a50983b7. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* freedom-u540: Remove the fitImage overridesAlistair Francis2019-07-261-6/+2
| | | | | | | meta-riscv now generates a fitImage by default for the freedom-u540 machine so remove the unneeded overrides. Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
* sota: add support for freedom-u540Ricardo Salveti2019-07-242-0/+17
| | | | | | fitImage used by default. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* Merge pull request #557 from agners/follow-fhsPatrick Vacek2019-07-241-9/+34
|\ | | | | Follow Filesystem Hierarchy Standard
| * image_types_ostree: add /usr/local supportStefan Agner2019-07-191-0/+25
| | | | | | | | | | | | | | | | | | | | Add /usr/local support as outlined in OSTree documentation. This makes sure that a writeable and persistent /usr/local directory is available. See also: https://ostree.readthedocs.io/en/latest/manual/adapting-existing/ Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * image_types_ostree: make root directory only readable by rootStefan Agner2019-07-191-2/+2
| | | | | | | | | | | | | | Make the root home directory only accessible by root. Use 700 as commonly used for the root home directory. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * image_types_ostree: add top level directories unconditionallyStefan Agner2019-07-191-7/+7
| | | | | | | | | | | | | | | | The Filesystem Hierarchy Standard defines several top-level directory to be writeable. Add those even in the absence of files installed by OpenEmbedded so a user might actually use them. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Merge pull request #550 from advancedtelematic/fix/branch-rebuildlbonn2019-07-192-3/+3
|\ \ | | | | | | Move OSTREE_BRANCHNAME to image_types_ostree.bbclass.
| * | Move OSTREE_BRANCHNAME to image_types_ostree.bbclass.fix/branch-rebuildPatrick Vacek2019-07-182-3/+3
| |/ | | | | | | | | | | | | | | If it is set in sota.bbclass and overwritten in local.conf, bitbake will rebuild everything. Now bitbake should only rerun the commands in image_types_ostree (and image_types_ota) as expected. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* / Allow customization of data in targets.jsonAndy Doan2019-07-172-0/+7
|/ | | | | | | This allows a user to define their own script to be executed after a target has been added to the repository but not yet signed. Signed-off-by: Andy Doan <andy@foundries.io>
* Add support for raspberrypi3-64Laurent Bonnans2019-06-071-0/+3
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* sota.bbclass: Translate old prov recipe names into the new versions.refactor/OTA-2798/rename-provisioningPatrick Vacek2019-06-051-0/+14
| | | | | | | This should help ease the transition so that no one is surprised when their provisioning suddenly stops working. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Rename provisioning methods.Patrick Vacek2019-06-051-1/+1
| | | | | | | | | | | | "Autoprovisioning" or "automatic provisioning" is now known as "shared credential provisioning". "Implicit provisioning" is now known as "device credential provisioning". "HSM provisioning" was always a misnomer, so it is now refered to as "device credential provisioning with an HSM". This includes a bump of the aktualizr version as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* sota.bbclass: move sota to DISTROOVERRIDESMing Liu2019-05-211-1/+1
| | | | | | | | | | Move sota to DISTROOVERRIDES from OVERRIDES, it should be a distro overrides. This change also let 'sota' to be in front of 'forcevariable' in OVERRIDES, since 'forcevariable' should always be the last overrides. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* OTA-2418: Remove example.com URL from automated garage-sign usagefeat/OTA-2418/remove-example.comMykhaylo Sul2019-04-032-2/+7
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Replace connman with systemd-networkd on raspberrypiLaurent Bonnans2019-03-061-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Define virtual/network-configurationLaurent Bonnans2019-03-065-6/+11
| | | | | | | Now provided by connman and networkd-dhcp-conf, added to images in our supported platforms Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Replace connman with systemd-networkd on qemux86-64Laurent Bonnans2019-03-051-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Remove connman* from base IMAGE_INSTALL_appendLaurent Bonnans2019-03-056-2/+7
| | | | | | | No sense to force that if poky does not, let's move it to platform-specific for now. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* image_types_ostree: Add a unique ref to fix simultaneous bitbaking.fix/OTA-2211/simultaneous-bitbakingPatrick Vacek2019-02-212-3/+11
| | | | | | | | | | | | To enable simultaneous bitbaking of two images with the same branch name, create a new ref in the OSTree repo using the basename of the image. As @OYTIS has pointed out, this probably won't solve every problem that might come up with simultaneous bitbaking, such as if the two images use different bootloaders. However, it does solve the immediate problem that comes up with our primary-image + secondary-image example. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #469 from liuming50/fix-wrong-operatorPatrick Vacek2019-02-121-1/+1
|\ | | | | sota.bbclass: fix a variable assignment regression
| * sota.bbclass: fix a variable assignment regressionMing Liu2019-01-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | A regression was introduced by commit 9dcfcdb9: [ classes, images: Use standard variables for initramfs ] it replaced OSTREE_INITRAMFS_IMAGE with INITRAMFS_FSTYPES which is fine, but the '??=' should be changed to "?=" as well, or else it will not take effect since INITRAMFS_FSTYPES's already set in bitbake.conf with '?='. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | Add support for device tree overlays in FIT imagesfeat/fit-dtboAnton Gerasimov2019-02-051-1/+14
|/ | | | Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
* meta: drop True option to getVar callsMing Liu2019-01-144-10/+10
| | | | | | | Search made with the following regex: getVar ?\((.*), True\), this is to be consistent with OE. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ota.bbclass: fix a typoMing Liu2019-01-141-1/+1
| | | | | | type -> size. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* classes/image_types_ostree.bbclass: fix checksum calculationLuka Pivk2019-01-111-12/+13
| | | | | | | | | Adds initramfs and/or devicetree into checksum calculation. According to ostree documentation if devicetree and/or initramfs are included into ostree, checksum should also include them. Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
* image_garagesign: Use a lock to fix concurrency problems.fix/OTA-1866/simultaneous-garage-signPatrick Vacek2019-01-071-0/+3
| | | | | | | | | | | We remove GARAGE_SIGN_REPO at the start and end of this task, which causes trouble if two images call this task at the same time. This probably could be fixed in a better fashion (like putting the repo in an image-specific subdirectory) but this is quick and easy, and the task usually doesn't take long to run, so the lack of parallelization is not a big loss. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #437 from LukaPivk/masterPatrick Vacek2018-12-141-0/+9
|\ | | | | classes/image_types_ostree.bbclass: add device tree to boot/devicetree
| * classes/image_types_ostree.bbclass: add device tree to boot/devicetree-*Luka Pivk2018-12-141-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Include device trees into boot/devicetree-*-checksum. Device trees with this name format get picked up by ostree and copied into boot/. Ostree also generates entry inside uEnv.txt called fdt_file pointing to this device tree. Normaly one would include only one device tree. If KERNEL_DEVICETREE includes more then one device tree this will add all the device trees but ostree will still pick only one device tree and include it into boot. We are working on modifications to ostree so it will pickup all the device trees. Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
* | Merge pull request #440 from agners/mandate-usr-movePatrick Vacek2018-11-291-10/+2
|\ \ | | | | | | Use usrmerge
| * | image_types_ostree: drop manual usrmove implementationStefan Agner2018-11-281-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | OpenEmbedded's usrmerge implementation checks that nothing is installing in /bin, /sbin or /lib. Hence those directories are empty by default. There is no need for the manual usrmove anymore. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * | image_types_ostree: make usrmerge mandatoryStefan Agner2018-11-281-0/+2
| | | | | | | | | | | | | | | | | | | | | Make usrmerge a mandatory DISTRO feature when using the ostree class. This will allow to remove the "manual" usrmerge implementation. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | | aktualizr and image_types_ota: more curly braces.fix/more-curly-bracesPatrick Vacek2018-11-281-4/+4
|/ / | | | | | | | | | | | | | | Just trying to be careful and consistent. I didn't change every variable in places where it seemed like it was obvious that we were dealing with purely local variables. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | image_types_ostree: use OSTree repo location for lockfilesStefan Agner2018-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | OSTree does not allow concurrent access to the repository. If two bitbake instances use the same OSTree repository, then they might access it simultanously. The lockfile to prevent such simultaneous access should really be in the same location where the OSTree repository is stored. Revert back to the location inside the OSTree repository. Fixes: e97975d6113c ("image_types_ostree/ota.bbclass: refactor ostree task") Signed-off-by: Stefan Agner <stefan.agner@toradex.com>