summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix oe-selftest for `aktualizr once`feat/latest-aktualizrLaurent Bonnans2019-01-281-2/+2
| | | | | | CLI has changed Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: bump to latest 1cad6d10286ade64b24021ca0e23de0d3b64f520Laurent Bonnans2019-01-281-1/+1
| | | | | | | | | - OStree installations are considered complete after a reboot under the new version - image downloads are not parallelized anymore - various enhancements and bug fixes Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #459 from ricardosalveti/hsmOYTIS2019-01-254-147/+19
|\ | | | | Update softhsm and libp11 to latest
| * libp11: bump to git 57ca68f for EC signing supportRicardo Salveti2019-01-172-45/+4
| | | | | | | | | | | | | | | | | | | | | | libp11 0.4.9 gives an error when EC keys are used for signing (pkcs11_try_pkey_ec_sign() not implemented), so bump to git 57ca68f (post 0.4.9) for EC signing support. Also drop workaround patch for OpenSSL 1.0.2.m since OE OpenSSL version is now at 1.1.1a. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
| * softhsm: bump to 2.5.0Ricardo Salveti2019-01-172-102/+15
|/ | | | | | | | | | | | | | | Changes in 2.5.0: - Support for cross-compilation - Use RDRAND in OpenSSL if that engine is available - Support for EDDSA with vendor defined mechanisms - Replace PKCS11 headers with a version from p11-kit Recipe updated to build support for EdDSA since that is already available in latest OpenSSL (1.1.1a). HOMEPAGE and LICENSE also changed to match upstream. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* Merge pull request #456 from liuming50/masterPatrick Vacek2019-01-159-17/+17
|\ | | | | Some cleaning up
| * meta: drop True option to getVar callsMing Liu2019-01-149-16/+16
| | | | | | | | | | | | | | 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>
* Merge pull request #454 from LukaPivk/fix-checksumPatrick Vacek2019-01-141-12/+13
|\ | | | | classes/image_types_ostree.bbclass: fix checksum calculation
| * 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>
* | Merge pull request #453 from advancedtelematic/fix/rm-sc-hsm-embeddedPatrick Vacek2019-01-092-108/+0
|\ \ | |/ |/| sc-hsm-embedded: removed as it was never actually used.
| * sc-hsm-embedded: removed as it was never actually used.Patrick Vacek2019-01-092-108/+0
|/ | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #447 from advancedtelematic/ci/ota-1810lbonn2019-01-081-1/+3
|\ | | | | Configure oe-selftests to run on specific node label
| * Configure oe-selftests to run on specific node labelci/ota-1810Manikandan Kandasamy2018-12-141-1/+3
| | | | | | | | Signed-off-by: Manikandan Kandasamy <manikandan.kandasamy@here.com>
* | Merge pull request #451 from ↵Patrick Vacek2019-01-081-0/+3
|\ \ | | | | | | | | | | | | advancedtelematic/fix/OTA-1866/simultaneous-garage-sign image_garagesign: Use a lock to fix concurrency problems.
| * | 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 #448 from ricardosalveti/masterPatrick Vacek2019-01-071-2/+3
|\ \ \ | |/ / |/| | ostree: upgrade to v2018.9
| * | ostree: upgrade to v2018.9Ricardo Salveti2018-12-181-2/+3
|/ / | | | | | | | | | | | | | | | | | | Update libostree to the v2018.9 release. Upstream release notes since v2018.7: - https://github.com/ostreedev/ostree/releases/tag/v2018.8 - https://github.com/ostreedev/ostree/releases/tag/v2018.9 Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* | Merge pull request #437 from LukaPivk/masterPatrick Vacek2018-12-142-0/+10
|\ \ | |/ |/| 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-142-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 #425 from advancedtelematic/feat/dcoOYTIS2018-12-121-0/+6
|\ \ | | | | | | Add the requirement to sign a DCO
| * | Add the requirement to sign a DCOfeat/dcoAnton Gerasimov2018-12-121-0/+6
| | | | | | | | | | | | Signed-off-by: Anton Gerasimov <tossel@gmail.com>
* | | Merge pull request #442 from advancedtelematic/feat/latest-aktualizrPatrick Vacek2018-12-051-1/+1
|\ \ \ | | | | | | | | aktualizr: Bump to latest (d00d1a04cc2366d1a5f143b84b9f507f8bd32c44).
| * | | aktualizr: Bump to latest (d00d1a04cc2366d1a5f143b84b9f507f8bd32c44).Patrick Vacek2018-11-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some OSTree improvements, reboot detection, retry failed downloads. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | | | Merge pull request #440 from agners/mandate-usr-movePatrick Vacek2018-11-293-11/+7
|\ \ \ \ | |/ / / |/| | | 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>
| * | | sota.conf: use usrmergeStefan Agner2018-11-282-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSTree needs UsrMove to be implemented, meaning that everything should be in /usr. OpenEmbedded has a distro feature usrmerge which implements exactly that, and makes sure that no package install anything in /bin, /sbin or /lib. Make use of it. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | | | Merge pull request #441 from advancedtelematic/fix/more-curly-bracesPatrick Vacek2018-11-292-6/+6
|\ \ \ \ | |/ / / |/| | | aktualizr and image_types_ota: more curly braces.
| * | | aktualizr and image_types_ota: more curly braces.fix/more-curly-bracesPatrick Vacek2018-11-282-6/+6
|/ / / | | | | | | | | | | | | | | | | | | | | | 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>
* | | Merge pull request #439 from agners/fix-ostree-lockfilesPatrick Vacek2018-11-281-1/+1
|\ \ \ | | | | | | | | image_types_ostree: use OSTree repo location for lockfiles
| * | | 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>
* | | Merge pull request #438 from advancedtelematic/fixgbPatrick Vacek2018-11-281-1/+1
|\ \ \ | |_|/ |/| | Fix bloated OTA image
| * | Fix bloated OTA imagefixgbAnton Gerasimov2018-11-271-1/+1
|/ / | | | | | | | | | | Curly braces are necessary around bitbake variables Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
* | Merge pull request #436 from advancedtelematic/fix/rpi-image-typePatrick Vacek2018-11-261-3/+3
|\ \ | | | | | | oe-selftest: rpi-basic-image is deprecated. Use core-image-basic.
| * | oe-selftest: rpi-basic-image is deprecated. Use core-image-minimal.fix/rpi-image-typePatrick Vacek2018-11-261-3/+3
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | | Merge pull request #430 from liuming50/masterPatrick Vacek2018-11-265-126/+108
|\ \ \ | |/ / |/| | Fixed some issues
| * | image_types_ota.bbclass: move a dependency inMing Liu2018-11-242-5/+2
| | | | | | | | | | | | | | | | | | | | | Move the dependency do_image_wic -> do_image_ota_ext4 from sota.bbclass to image_types_ota.bbclass, since it's a image specific dependency. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | image_types_ostree/ota.bbclass: refactor ostree taskMing Liu2018-11-244-84/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several flaws with ostree tasks, as follows: - ${IMAGE_NAME}.rootfs.ostree.tar.bz2 is generated, but it's not being used during ostree commit, so it should be removed if it's just a intermittent artifact. Or if we intend to deploy this tar.bz2 file, it should be tracked by sstate cache, that is to day, it should be generated in ${IMGDEPLOYDIR} rather than in ${DEPLOY_DIR_IMAGE}. - There are quite a few redundant code like mktemp/cd/rm a directory, which can be replaced by setting 'dirs', 'cleandirs' varflags. - There are some redundant variable check logic in image_types_ostree and image_types_ota bbclass. To fix the above, we make the following changes: - Introduce a new conversion image type 'tar', it could convert ostree and ota to ostree.tar, ota.tar, hence we can drop the code generating ostree.tar.bz2 in image_types_ostree.bbclass, and also drop the do_image_ota-tar task. To let this conversion type take effect, the otasetup task needs to be changed to ota. - Introduce BUILD_OSTREE_TARBALL variable, when being set to 1, a ostree.tar.bz2 tarball would be built, BUILD_OSTREE_TARBALL defaults to be 1, to be consistent with original behavior. - Replace 'ota-tar ota-tar.xz' with ota.tar.xz in IMAGE_FSTYPES. - Add a sanity check bbclass sota_sanity.bbclass, to ensure ostree or ota is not in OVERRIDES, this is to prevent potential naming pollution with other meta layers, and also check the required variables are not empty. This sota_sanity.bbclass is a common class that could be extended easily in furture, and one of its most advantages is that all the check are done in bb.event.SanityCheck event handler, so the end users could get the error message at very beginning of the recipe parsing time. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | meta: drop redundant export syntaxMing Liu2018-11-243-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are quite a few 'export' syntax, they are either not necessary or being redundant. Actually only the variables being referred in ostree or aktualizr need to be exported, we can move them into sota.bbclass so they can be exported once only for all other classes referring to them. And drop all other unnecessary exports. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | image_types_ostree.bbclass: fix some dependencies issuesMing Liu2018-11-241-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - unzip-native:do_populate_sysroot should be depended by do_image_garagesign task instead of by do_image_ostree task. - openssl-native:do_populate_sysroot can be removed since it's being depended by aktualizr-native already. - do_image_garagesign and do_image_garagecheck does not have to depend on aktualizr-native:do_populate_sysroot, that dependency is being added by do_image_ostreepush -> aktualizr-native:do_populate_sysroot. - drop ostreepush dependency from IMAGE_TYPEDEP_garagecheck, that is redundant. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | meta: replace bberror with bbfatalMing Liu2018-11-243-11/+7
|/ / | | | | | | | | | | | | | | | | When calling bbfatal, it reports error message and exit 1, it should be used to replace of 'bberror && exit 1' to avoid being redundant. Also fixed some incorrect bberror usages and typos. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | Merge pull request #435 from advancedtelematic/feat/hardware_idPatrick Vacek2018-11-224-2/+8
|\ \ | | | | | | Allow setup custom hardware_id
| * | aktualizr: fix hardware ID config section.Patrick Vacek2018-11-221-1/+1
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * | README: slightly more descriptive explanation of SOTA_HARDWARE_ID.Patrick Vacek2018-11-221-1/+1
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * | Allow setup custom hardware_idfeat/hardware_idSerhiy Stetskovych2018-11-224-2/+8
| | | | | | | | | | | | Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
* | | Merge pull request #434 from agners/fedora-oe-selftest-fixesPatrick Vacek2018-11-211-1/+7
|\ \ \ | |/ / |/| | selftest: introduce QEMU_USE_KVM
| * | selftest: introduce QEMU_USE_KVMStefan Agner2018-11-211-1/+7
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | The qemucommand.py script uses kvm-ok to determine whether KVM is available. However, kvm-ok is very Ubuntu specific and not readily available on Fedora. Use QEMU_USE_KVM variable which is also used in OpenEmbedded selftests. The variable must contain True to enable KVM for machines containing x86 in its name, or contain a list of machines. For meta-updater this makes sure KVM is used for all tests: QEMU_USE_KVM = "intel-corei7-64 qemux86-64" Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Merge pull request #433 from advancedtelematic/doc/oe-selftest-and-rm-examplePatrick Vacek2018-11-193-5/+5
|\ \ | | | | | | docs: better explanation of oe-selftest requirements.
| * | docs: better explanation of oe-selftest requirements.doc/oe-selftest-and-rm-examplePatrick Vacek2018-11-163-5/+5
|/ / | | | | | | | | | | Also remove all references to aktualizr-example-interface. It has been removed. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>