summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* README: document auto-reboot config feature.backport/rocko/auto-reboot-etcPatrick Vacek2019-02-272-1/+2
| | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com> Suggested-by: Ben Luck <benjamin.luck@here.com>
* 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 #481 from ↵Patrick Vacek2019-02-2011-232/+137
|\ | | | | | | | | advancedtelematic/backport/rocko/garage-sign-lock-etc Backport/rocko/garage sign lock etc
| * image_types_ota: Reduce indentation to match master more closely.backport/rocko/garage-sign-lock-etcPatrick Vacek2019-02-201-80/+81
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * libp11: bump to git 57ca68f for EC signing supportRicardo Salveti2019-02-201-1/+3
| | | | | | | | | | | | | | | | | | 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. Signed-off-by: Ricardo Salveti <ricardo@foundries.io> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * image_types_ota.bbclass: fix a typoMing Liu2019-02-201-1/+1
| | | | | | | | | | | | type -> size. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * sc-hsm-embedded: removed as it was never actually used.Patrick Vacek2019-02-202-108/+0
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * image_garagesign: Use a lock to fix concurrency problems.Patrick Vacek2019-02-201-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>
| * ostree: upgrade to v2018.9Ricardo Salveti2019-02-201-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>
| * Add the requirement to sign a DCOAnton Gerasimov2019-02-201-0/+6
| | | | | | | | Signed-off-by: Anton Gerasimov <tossel@gmail.com>
| * aktualizr and image_types_ota: more curly braces.Patrick Vacek2019-02-202-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>
| * meta: drop redundant export syntaxMing Liu2019-02-203-21/+10
| | | | | | | | | | | | | | | | | | | | | | 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 Liu2019-02-201-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 Liu2019-02-203-12/+8
| | | | | | | | | | | | | | | | | | 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>
| * selftest: introduce QEMU_USE_KVMStefan Agner2019-02-201-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>
| * Added support to automatically update ostree summaryLuka Pivk2019-02-202-0/+8
| | | | | | | | | | | | | | Use OSTREE_UPDATE_SUMMARY to automatically update summary after committing to ostree repo Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
| * Added support to set custom commit subject and bodyLuka Pivk2019-02-201-1/+5
|/ | | | | | | Use OSTREE_COMMIT_BODY write custom text to ostree body Use OSTREE_COMMIT_SUBJECT to write custom subject Signed-off-by: Luka Pivk <luka.pivk@toradex.com>
* Merge pull request #477 from ↵Ben Luck2019-02-191-1/+1
|\ | | | | | | | | advancedtelematic/bugfix/OTA-1436/rocko-secondary-results Bump aktualizr (rocko)
| * Bump aktualizrbugfix/OTA-1436/rocko-secondary-resultsLaurent Bonnans2019-02-111-1/+1
| | | | | | | | | | | | | | To 2aa9d93ccea09ec327789eecf858de561ef632da, which changed the installation result reporting format Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* | Merge pull request #471 from liuming50/rocko-aktualizr-pkgconfigPatrick Vacek2019-02-131-53/+44
|\ \ | |/ |/| Rocko 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-25/+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 #464 from advancedtelematic/feat/rocko-latest-aktualizrRaigi2019-01-312-3/+3
|\ | | | | Feat/rocko latest aktualizr
| * Fix oe-selftest for `aktualizr once`feat/rocko-latest-aktualizrLaurent Bonnans2019-01-291-2/+2
| | | | | | | | | | | | CLI has changed Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
| * aktualizr: bump to latest 1cad6d10286ade64b24021ca0e23de0d3b64f520Laurent Bonnans2019-01-291-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 #457 from advancedtelematic/compat/rocko-newimagename-symlinkPatrick Vacek2019-01-171-0/+3
|\ | | | | (rocko) Add .ota-ext4 image symlink
| * Add .ota-ext4 image symlinkcompat/rocko-newimagename-symlinkLaurent Bonnans2019-01-151-0/+3
|/ | | | | | That is the new name used in master since f07be1805cc22b5428ff529b705731360b485d06 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Merge pull request #445 from advancedtelematic/feat/rocko/hardware-id-etcPatrick Vacek2018-12-048-19/+24
|\ | | | | Feat/rocko/hardware id etc
| * aktualizr: Bump to latest (d00d1a04cc2366d1a5f143b84b9f507f8bd32c44).feat/rocko/hardware-id-etcPatrick Vacek2018-11-291-1/+1
| | | | | | | | | | | | Some OSTree improvements, reboot detection, retry failed downloads. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: fix hardware ID config section.Patrick Vacek2018-11-291-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * README: slightly more descriptive explanation of SOTA_HARDWARE_ID.Patrick Vacek2018-11-291-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Allow setup custom hardware_idSerhiy Stetskovych2018-11-294-2/+8
| | | | | | | | Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
| * docs: better explanation of oe-selftest requirements.Patrick Vacek2018-11-292-3/+2
| | | | | | | | | | | | Also remove all references to aktualizr-example-interface. It has been removed. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Bump to latest and fix names.Patrick Vacek2018-11-293-12/+12
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Fix function name conflictAlexandre Bard2018-11-291-2/+2
|/ | | | | | | | | buildinfo function name is used in poky: meta/classes/image-buildinfo.bbclass Both classes could not be used together Signed-off-by: Alexandre Bard <alexandre.bard@netmodule.com>
* Merge pull request #429 from advancedtelematic/fix/rocko/newline-etcPatrick Vacek2018-11-1311-35/+33
|\ | | | | Fix/rocko/newline etc
| * aktualizr: use config instead of environment variables.fix/rocko/newline-etcPatrick Vacek2018-11-137-14/+1
| | | | | | | | | | | | | | This should make the secondary config dir process better anyway, and it finally gets rid of a hacky workaround that we'd been using for ages. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: improve secondary config directory logic.Patrick Vacek2018-11-131-3/+7
| | | | | | | | | | | | Use -d and warn if directory is invalid. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Fix virtual secondary support.Patrick Vacek2018-11-135-17/+12
| | | | | | | | | | | | | | | | Use /etc/sota/ecus as using /var/sota/ecus was conflicting with the provisioning recipes that also use /var/sota. Not totally ideal, but the best compromise I could find. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: bump to latest for server URL newline fix.Patrick Vacek2018-11-091-1/+1
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Replace more references to ATS Garage with HERE OTA Connect.Patrick Vacek2018-11-091-3/+3
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Update README.adocXavier Gully2018-11-091-1/+1
| | | | | | | | | | | | Update the reference to https://connect.ota.here.com Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Added 'thud' to list of supported releasesArthur Taylor2018-11-091-1/+10
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * classes: image_types_ostree: use locking during OSTree repo updateStefan Agner2018-11-091-0/+1
| | | | | | | | | | | | | | | | | | The OSTree repository might be shared accross several individual OSTree builders. Use bitbakes lockfiles mechanism to lock the OSTree for exclusive use. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>