summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* updater.py: remove test_add_package.Patrick Vacek2019-02-261-29/+0
| | | | | | | | It was a nice idea when we were less confident about bitbaking and oe-selftest, but at this point, it is redundant and provides no useful information while adding extraneous time to the already long test suite. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Reformat default bblayers.Patrick Vacek2019-02-267-15/+17
| | | | | | | Put each item on its own line to make versioning and manual modififcation easier going forward. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Switch to the aktualizr's master headMike Sul2019-02-261-1/+1
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* aktualizr-auto-prov-creds: remove API Gateway URL if it exists.Patrick Vacek2019-02-261-1/+6
| | | | | | It will only be used by garage-sign. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* image_types_ostree: Add a unique ref to fix simultaneous bitbaking.Patrick Vacek2019-02-262-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>
* OTA-2135: Aktualizr's config and recipe to auto reboot just after updateMike Sul2019-02-262-0/+23
| | | | Signed-off-by: Mike Sul <mykhaylo.sul@innoteka.com>
* Merge pull request #488 from ↵Patrick Vacek2019-02-201-1/+1
|\ | | | | | | | | advancedtelematic/bugfix/OTA-1436/thud-secondary-results Bump aktualizr (thud)
| * Bump aktualizrbugfix/OTA-1436/thud-secondary-resultsLaurent Bonnans2019-02-191-1/+1
|/ | | | | | | To 2aa9d93ccea09ec327789eecf858de561ef632da, which changed the installation result reporting format Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #479 from ↵Patrick Vacek2019-02-1522-280/+111
|\ | | | | | | | | advancedtelematic/backport/thud/garage-sign-lock-etc Backport/thud/garage sign lock etc
| * Merge branch 'master' of https://github.com/advancedtelematic/meta-updater ↵backport/thud/garage-sign-lock-etcPatrick Vacek2019-02-1422-280/+111
|/| | | | | | | into backport/thud/garage-sign-lock-etc
| * 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>
| * | Merge pull request #470 from liuming50/aktualizr-pkgconfiglbonn2019-02-071-52/+44
| |\ \ | | | | | | | | Master aktualizr pkgconfig
| | * | aktualizr: split binaries to their own packagesMing Liu2019-02-061-32/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch mainly aims to fix the following issues: - ${libdir}/sota/conf.d is being put into aktualizr package, but ${libdir}/sota/*.toml is being put into aktualizr-host-tools, this does not make sense, if a end user only install aktualizr-host-tools to a target, he will miss the config files in ${libdir}/sota/conf.d. - A user should be able to install garage-deploy garage-push to a board if he wants to do that by choosing building aktualizr with sota-tools, but now it's not in that case, garage-deploy garage-push are only available for native. - It's not necessary to distinguish native/target when installing systemd services, they will be dropped by sstate from native sysroot any way. - It would be better that all binaries to be put into their own packages, so a end user can choose to install a package only with one binary, rather than having to install the entire aktualizr-host-tools. Introduce per-binary based packages for host tools, and gather all config files to aktualizr-configs, it will be depended by binary packages and main aktualizr package. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| | * | aktualizr: introduce PACKAGECONFIGMing Liu2019-02-061-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several flaws in current aktualizr recipe: - It builds with 'BUILD_SYSTEMD=ON' by default but does not set DEPENDS to systemd, this is not leading to compilation errors so far because systemd is deployed into recipe sysroot by ostree if 'systemd' exists in DISTRO_FEATURES, but in other cases, it will cause compilation errors. - GARAGE_SIGN_SHA256 is being passed to EXTRA_OECMAKE even it's not set anythere, this will lead a wrong GARAGE_SIGN_SHA256_ARG to be set in cmake files. - pkgconfig is being called in aktualizr CMakeFile, so it needs inherit pkgconfig.bbclass To fix the above flaws, meanwhile to keep the code cleaner, we introduce PACKAGECONFIG to handle the configurations. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| | * | aktualizr: drop duplicated file from FILES_${PN}Ming Liu2019-02-061-1/+0
| |/ / | | | | | | | | | | | | | | | | | | "${bindir}/aktualizr-check-discovery" is being set in both FILES_${PN} and FILES_${PN}-tools, drop it from FILES_${PN}. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | Merge pull request #474 from advancedtelematic/feat/fit-dtboAnton Gerasimov2019-02-063-2/+40
| |\ \ | | | | | | | | Add support for device tree overlays in FIT images
| | * | Add support for device tree overlays in FIT imagesfeat/fit-dtboAnton Gerasimov2019-02-053-2/+40
| | |/ | | | | | | | | | Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
| * | Merge pull request #467 from agners/use-reproducible-buildsAnton Gerasimov2019-02-051-0/+6
| |\ \ | | |/ | |/| sota.conf: use reproducible builds by default
| | * sota.conf: use reproducible builds by defaultStefan Agner2019-01-291-0/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use reproducible builds by default. OSTree sets mtime to 0 at commit time anyway. This makes sure that all mtime timestamps are 0 already at build time. This is relevant for programs which relies on mtime of deployed artifacts at runtime. Python for instance writes the mtime of the source file into bytecode files (pyc) at build time. When OSTree then clears the mtime Python considers all bytecode files as stale. Reproducible binaries also avoid unnecessary differences between two OSTree commits. E.g. if the sstate cache is cleared between two OSTree commits OpenEmbedded might create slightly different binaries. Note however that not all all recipe generate reproducible binaries at this time. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * Merge pull request #462 from advancedtelematic/feat/latest-aktualizrdev/mikesullbonn2019-01-292-3/+3
| |\ | | | | | | aktualizr: bump to latest 1cad6d10286ade64b24021ca0e23de0d3b64f520
| | * 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 #473 from liuming50/thud-aktualizr-pkgconfigPatrick Vacek2019-02-121-52/+44
|\ \ \ \ \ | | | | | | | | | | | | Thud aktualizr pkgconfig
| * | | | | aktualizr: split binaries to their own packagesMing Liu2019-02-061-32/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch mainly aims to fix the following issues: - ${libdir}/sota/conf.d is being put into aktualizr package, but ${libdir}/sota/*.toml is being put into aktualizr-host-tools, this does not make sense, if a end user only install aktualizr-host-tools to a target, he will miss the config files in ${libdir}/sota/conf.d. - A user should be able to install garage-deploy garage-push to a board if he wants to do that by choosing building aktualizr with sota-tools, but now it's not in that case, garage-deploy garage-push are only available for native. - It's not necessary to distinguish native/target when installing systemd services, they will be dropped by sstate from native sysroot any way. - It would be better that all binaries to be put into their own packages, so a end user can choose to install a package only with one binary, rather than having to install the entire aktualizr-host-tools. Introduce per-binary based packages for host tools, and gather all config files to aktualizr-configs, it will be depended by binary packages and main aktualizr package. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | | | | aktualizr: introduce PACKAGECONFIGMing Liu2019-02-061-24/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several flaws in current aktualizr recipe: - It builds with 'BUILD_SYSTEMD=ON' by default but does not set DEPENDS to systemd, this is not leading to compilation errors so far because systemd is deployed into recipe sysroot by ostree if 'systemd' exists in DISTRO_FEATURES, but in other cases, it will cause compilation errors. - GARAGE_SIGN_SHA256 is being passed to EXTRA_OECMAKE even it's not set anythere, this will lead a wrong GARAGE_SIGN_SHA256_ARG to be set in cmake files. - pkgconfig is being called in aktualizr CMakeFile, so it needs inherit pkgconfig.bbclass To fix the above flaws, meanwhile to keep the code cleaner, we introduce PACKAGECONFIG to handle the configurations. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | | | | aktualizr: drop duplicated file from FILES_${PN}Ming Liu2019-02-061-1/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "${bindir}/aktualizr-check-discovery" is being set in both FILES_${PN} and FILES_${PN}-tools, drop it from FILES_${PN}. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | | | | Merge pull request #465 from advancedtelematic/feat/thud-latest-aktualizrlbonn2019-02-012-3/+3
|\ \ \ \ \ | | | | | | | | | | | | Feat/thud latest aktualizr