summaryrefslogtreecommitdiffstats
path: root/recipes-sota
Commit message (Collapse)AuthorAgeFilesLines
* aktualizr: Bump to 2020.8 release.feat/2020.8Patrick Vacek2020-07-091-4/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* ostree-kernel-initramfs: fix devicetree deploymentantznin2020-07-031-1/+4
| | | | | | | | | | | | | | | | | Following the changes in ostree's deployment of the kernel, initramfs and devicetree in /lib/modules/$kver, the deployment method of the device tree also changed. Instead of picking the first device tree it finds at a given location, ostree looks at a file named devicetree, next to kernel and initramfs in /lib/modules/$kver. This commit modifies ostree-kernel-initramfs to deploy the devicetree from the sota-defined variable OSTREE_DEVICETREE. It will pick the first one from the list of device trees that OSTREE_DEVICETREE defines, and copy it to /lib/modules/$kver. Note that since OSTREE_DEVICETREE equals to KERNEL_DEVICETREE when it isn't explicitly defined, it could indeed be a list of device trees. Signed-off-by: antznin <agodard@witekio.com>
* ostree-kernel-initramfs: skip recipe when OSTREE_KERNEL is not definedMartin Jansa2020-07-011-0/+5
| | | | | | | | | | | | | | | | | * otherwise it fails with useless error: ostree-kernel-initramfs/0.0.1-r0/temp/run.do_install.3011' failed with exit code 1: cp: -r not specified; omitting directory 'tmp-glibc/deploy/images/qemux86/' WARNING: exit code 1 from a shell command. because of cp ${DEPLOY_DIR_IMAGE}/${OSTREE_KERNEL} $kerneldir/vmlinuz in do_install will try to copy whole ${DEPLOY_DIR_IMAGE}/ when ${OSTREE_KERNEL} is empty as reported in: https://github.com/advancedtelematic/meta-updater/pull/740#issuecomment-651952735 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* ostree-kernel-initramfs: deploy dtbs from OSTREE_DEVICETREEantznin2020-06-301-1/+1
| | | | Signed-off-by: antznin <agodard@witekio.com>
* ostree-kernel-initramfs: fix parsing for MACHINEs which don't define ↵Martin Jansa2020-06-261-0/+1
| | | | | | | | | | | | | INITRAMFS_IMAGE * when INITRAMFS_IMAGE isn't defined at all, the "d.getVar('INITRAMFS_IMAGE') == ''" part doesn't do anything useful, because the unexpanded version of this ends in do_install[depends] variable and breaks parsing: meta-updater/recipes-sota/ostree-kernel-initramfs/ostree-kernel-initramfs_0.0.1.bb:do_install[depends], dependency ''][d.getVar('INITRAMFS_IMAGE') in 'virtual/kernel:do_deploy ${@['${INITRAMFS_IMAGE}:do_image_complete', ''][d.getVar('INITRAMFS_IMAGE') == '']} virtual/fakeroot-native:do_populate_sysroot' does not contain exactly one ':' character. Task 'depends' should be specified in the form 'packagename:task' Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Put aktualizr-info in a separate package and use it in Secondaries.feat/secondary-aktualizr-infoPatrick Vacek2020-06-231-5/+7
| | | | | | | | | We did the work a while ago to make aktualizr-info work for Secondaries, but until now we weren't putting the tool into the secondary-image we use for testing. Now it's there. Actually, it's in every image that inherits from sota.bbclass, which is probably a good thing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* meta: introduce ostree-kernel-initramfs recipeMing Liu2020-06-181-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | We package kernel image, devicetrees, initramfs and install them to /usr/lib/modules/${KERNEL_VERSION}, which is the preferred location according to ostree's new implementation, this could simplify the deployment. Reference: https://github.com/ostreedev/ostree/commit/3ab0d5e6644885440bac6abd17b6d2637df5435f To let initramfs-ostree-image be able to be depended by ostree-kernel-initramfs, it must inherit nopackages to avoid a annoying QA warning like the follows: | WARNING: initramfs-ostree-image-0.0.1-r0 do_package: Manifest ...initramfs-ostree-image.packagedata | not found in colibri_imx6 armv7ahf-neon-imx armv7at2hf-neon-imx armv7at2hf-neon armv7ahf-neon armv7at2hf-vfp | armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch | x86_64_x86_64-nativesdk (variant '')? Also we need define OSTREE_KERNEL, OSTREE_DEPLOY_DEVICETREE and OSTREE_DEVICETREE in sota.bbclass so they could be accessed in other recipes as well as in image recipes. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Ming Liu <ming.liu@toradex.com>
* Merge pull request #734 from agners/use-boot-completePatrick Vacek2020-06-181-1/+2
|\ | | | | aktualizr: make use of boot-complete.target
| * aktualizr: make use of boot-complete.targetStefan Agner2020-06-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the systemd.special(7) man page section boot-complete.target: This target is intended as generic synchronization point for services that shall determine or act on whether the boot process completed successfully. Let's make use of the target. Since aktualizr by default marks a boot as successful, we consider aktualizr.service a service which needs to be executed on successful boot (hence after the boot-complete.target). This allows to declare a service as crucial by simply ordering it before the boot-complete.target. The systemd example service systemd-boot-check-no-failures.service can serve as an example. This change does not add any service dependency by default as boot-complete.target by default does not has any extra dependencies. Note that rebooting in the failure case is not handled by this mechanism. This can be added by using FailureAction. Boot assessement infrastructure got introduced with systemd 240. See also: https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/ Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Add recipe to build images with binary primariestest/OTA-4838/mem-binary-updateLaurent Bonnans2020-06-182-0/+23
|/ | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Bump aktualizr to 2020.7 revisionLaurent Bonnans2020-05-291-4/+4
| | | | | | And garage-sign to 0.7.1-4 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Adding collectd coniguration for aktualizrfeat/collectdLaurent Bonnans2020-05-132-0/+30
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* sota_sanity.bbclass: introduce sota_check_boolean_variableMing Liu2020-05-112-3/+3
| | | | | | | | | | The current sanity check are too strict for some boolean variables, introduce sota_check_boolean_variable to allow a boolean value to be set like yes/y/true/t/1 or no/n/false/f/0. Also change to use oe.types.boolean to check their values. Signed-off-by: Ming Liu <ming.liu@toradex.com>
* aktualizr: Update to 2020.6 release and garage-sign 0.7.1.feat/2020.6Patrick Vacek2020-04-301-4/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: fix a dependency QA warningMing Liu2020-04-271-1/+1
| | | | | | | | | This fixes a following QA warning: | WARNING: aktualizr do_package_qa: QA Issue: aktualizr rdepends on | u-boot-fw-utils, but it isn't a build dependency, missing | u-boot-fw-utils in DEPENDS or PACKAGECONFIG? [build-deps] Signed-off-by: Ming Liu <ming.liu@toradex.com>
* aktualizr: Use systemd IP accounting.feat/track-network-usagePatrick Vacek2020-04-221-0/+1
| | | | | | | This allows you to see how much bandwidth was used with `systemd status aktualizr`. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Update to latest for ptest fix.fix/ptest-skip-ip-secondaryPatrick Vacek2020-04-081-1/+1
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Bump to latest and get garage-sign from the new AWS bucket.feat/tuf-cli-aws-bucketPatrick Vacek2020-04-021-5/+5
| | | | | | | Also bump the garage-sign version. New version includes fixes for supporting targets > 2 GB. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Bump to 2020.4 and latest garage-sign.Patrick Vacek2020-03-241-4/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* fix: run aktualizr service after network is onlinefix/primary-secondary-communication/wait-till-network-upMykhaylo Sul2020-03-122-2/+4
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Bump aktualizrLaurent Bonnans2020-03-101-1/+1
| | | | | | For secondary auto-reboot support Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix aktualizr-ptest shlib yocto errorsfix/boost-ptestLaurent Bonnans2020-03-051-0/+2
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: remove unnecessary rm.Patrick Vacek2020-03-041-3/+0
| | | | | | | libuptiny (the "partial" subdirectory) and its dependencies were removed from the aktualizr repo a while ago. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Update to 2020.3 release.feat/2020.3Patrick Vacek2020-02-281-4/+4
| | | | | | Update garage-sign to the latest as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Update aktualizr recipe to use new .so namesfix/shared-lib-namesLaurent Bonnans2020-02-191-7/+7
| | | | | | Aktualizr and garage-sign are also bumped in the process. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: Bump to 2020.2 release and latest garage-signfeat/2020.2Mykhaylo Sul2020-01-301-4/+4
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Merge pull request #667 from advancedtelematic/fix/rm-obsolete-examplesPatrick Vacek2020-01-241-5/+1
|\ | | | | aktualizr: Remove unused hmi-stub and examples package.
| * aktualizr: Remove unused hmi-stub and examples package.fix/rm-obsolete-examplesPatrick Vacek2020-01-231-5/+1
| | | | | | | | | | | | | | | | hmi-stub was replaced by libaktualizr-demo-app and is no longer part of this recipe. That leaves the aktualizr-examples package empty, so just get rid of it. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Merge pull request #666 from liuming50/aktualizr-runs-after-nss-lookup-targetPatrick Vacek2020-01-231-1/+1
|\ \ | |/ |/| aktualizr: relies on nss-lookup.target
| * aktualizr: relies on nss-lookup.targetMing Liu2020-01-201-1/+1
| | | | | | | | | | | | | | aktualizr.service needs run after nss-lookup.target to ensure DNS resolving is ready. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | aktualizr: Bump to latest.feat/2020.1Patrick Vacek2020-01-201-4/+4
|/ | | | | | Bump garage-sign as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-4174: Make an ostree update a default on IP Secondaryfeat/OTA-4174/ostree-update-default-on-secondaryMykhaylo Sul2020-01-171-1/+1
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Adapt to shared libraries changes in aktualizrfeat/akt-dynlibLaurent Bonnans2020-01-091-3/+17
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: Bump to latest for ptest provisioning test fix.fix/ptest-provisionPatrick Vacek2019-12-271-1/+1
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Update aktualizr to 2019.11up/aktualizr-2019.11Laurent Bonnans2019-12-121-4/+4
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Set PKCS11_ENGINE_PATH when using aktualizr with HSMfeat/set-pkcs11-pathLaurent Bonnans2019-12-062-3/+4
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: Bump to latest for ptest fixes for C API tests.feat/ptest-fixesPatrick Vacek2019-11-291-1/+1
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Upgrade to 2019.10 release and latest garage-sign.feat/2019.10Patrick Vacek2019-11-201-4/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix bug at aktualizr startup on rpi/armfix/rpi3-uartLaurent Bonnans2019-11-131-1/+1
| | | | | | By bumping aktualizr, see: https://github.com/advancedtelematic/aktualizr/pull/1444 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: Remove systemd packaging.fix/rm-libsystemdPatrick Vacek2019-11-121-1/+0
| | | | | | That dependency and build flag have been removed as they were unused. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Bump aktualizr to latest masterfeat/OTA-3883/repo-manifest-uploadLaurent Bonnans2019-11-111-1/+1
| | | | | | With support with new garage-push --repo-manifest option Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #621 from ricardosalveti/ostreePatrick Vacek2019-11-071-69/+0
|\ | | | | Drop ostree_git in favor of the ostree recipe from meta-oe.
| * Drop ostree_git in favor of the ostree recipe from meta-oe.ostreeRicardo Salveti2019-11-061-69/+0
| | | | | | | | | | | | | | | | | | | | | | | | A newer ostree recipe is now provided via the meta-oe layer, so drop local ostree_git recipe in favor of the latest one from meta-oe. Local bbappend created to enable curl, libarchive and ostree-grub-generator, which were all enabled by default in ostree_git, besides disabling soup as that is not really needed with curl (and wasn't previously enabled). Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* | Indicate an OSTree boot on startEugene Smirnov2019-11-052-0/+36
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* | Fix aktualizr-ptest breakagefix/ptest-reenableLaurent Bonnans2019-10-281-0/+4
| | | | | | | | | | | | The compile step was removed by mistake in ec1ac0617b120813d6450dffe1aa8d4868e37332! Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | aktualizr: remove systemd from PACKAGECONFIG.fix/rm-systemdPatrick Vacek2019-10-241-1/+1
|/ | | | | | | The systemd functionality in aktualizr is not currently used for anything, so there's no reason to use it. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Bump to 2019.9 release and latest garage-sign.feat/2019.9Patrick Vacek2019-10-211-4/+4
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr-device-prov-creds: remove it.fix/603/arch-depsPatrick Vacek2019-10-183-69/+0
| | | | | | | | | | Originally I was just trying to remove the reference to DEPLOY_DIR_IMAGE because it depends on MACHINE, but then I realized that this recipe is just plain not worth keeping. It isn't viable for anything except the most limited testing, since it bakes device-specific credentials into an image, but we weren't even using it for testing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Specify more configs as MACHINE_ARCH.Patrick Vacek2019-10-171-0/+1
| | | | | | | If they depend on MACHINE, that's what we gotta do. Still haven't sorted out aktualizr-device-prov-creds, though. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Split aktualizr hwid config to another recipeLaurent Bonnans2019-10-172-5/+24
| | | | | | So that we can fix the ${MACHINE} dependency issues Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>