summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* Do not export anything in sota.bbclassLaurent Bonnans2019-08-161-5/+5
| | | | | | | | | | A simple variable definition will be enough and doing an export there completely kills caching. Cherry-picked from master with additional fix to use yocto variables instead of bash ones (not present anymore). Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Allow customization of data in targets.jsonAndy Doan2019-08-141-0/+1
| | | | | | | | 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> (cherry picked from commit 086f225a581204f45c1c95cffc06c55d3f4eee30)
* sota.bbclass: Translate old prov recipe names into the new versions.refactor/sumo/renaming-secondaries-etcPatrick 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-06-051-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> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2418: Remove example.com URL from automated garage-sign usageMykhaylo Sul2019-04-291-1/+1
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* meta: drop redundant export syntaxMing Liu2019-02-141-4/+6
| | | | | | | | | | | 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>
* Allow setup custom hardware_idSerhiy Stetskovych2018-11-291-1/+2
| | | | Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
* Add SOTA_DEPLOY_CREDENTIALS variable to control whether the built image ↵Anton Gerasimov2018-10-021-0/+2
| | | | should be provisioned
* sota.bbclass: remove obsolete/incorrect comment.Patrick Vacek2018-06-121-1/+0
|
* Fix boot on qemux86-64Laurent Bonnans2018-05-161-1/+1
| | | | It needs a plain compressed file system and not an u-boot legacy image
* Replace INITRAMFS_FSTYPES with OSTREE_INITRAMFS_FSTYPESRicardo Salveti2018-05-161-1/+1
| | | | | | | | | | User is able to customize the init script via OSTREE_INITRAMFS_IMAGE but there is no way to set INITRAMFS_FSTYPES as it gets defined by sota.bbclass. Create a new variable called OSTREE_INITRAMFS_IMAGE to handle the INITRAMFS_FSTYPES update, and also allow the user to override it. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* sota: introduce INITRAMFS_FSTYPESMing Liu2018-05-151-1/+3
| | | | | | | | | | | | | RAMDISK_EXT and IMAGE_FSTYPES of initramfs-ostree-image should not be defined separately, because they are representing the same fstype of a same initramfs image, or else, they turn out to be inconsistent if the users change one of them. So we use INITRAMFS_FSTYPES already defined in bitbake.conf, to be able to set fstype for initramfs. And it should default to ext4.gz.u-boot or ext4.gz depending on what OSTREE_BOOTLOADER is being set. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Add support for custom garage target version and urlRicardo Salveti2018-05-111-0/+2
| | | | | | | Both values can be defined by the user, allowing a custom version id and URL, which is specially useful for CI builds. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* sota.bbclass: use common rpi override for raspberrypiRicardo Salveti2018-05-111-2/+1
| | | | | | sota_raspberrypi can handle the rpi differences if required. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* Fixes for SpekulatiusAnton Gerasimov2017-12-201-2/+2
| | | | | | - New garage-sign interface - Remove garage-sign recipe (now installed with aktualizr-native) - Small but critical bugfixes in aktualizr
* Check if the package and UPTANE target got to the backendAnton Gerasimov2017-11-211-1/+1
|
* Add managing targets.json by garage-signAnton Gerasimov2017-11-131-1/+8
|
* Copy repo manifest to the device.Patrick Vacek2017-11-061-0/+2
| | | | | | | Helpful for debugging, etc. Mostly copied from here: https://github.com/openivimobility/meta-oim/blob/master/classes/image-repo-manifest.bbclass
* Support pkcs#11 in aktualizr and add softhsm token for testingAnton Gerasimov2017-10-161-0/+3
|
* Add recipes to test pkcs11 functionality in AktualizrAnton Gerasimov2017-09-131-1/+1
|
* sota.bbclass: Add aktualizr-auto-provLeon Anavi2017-09-111-1/+2
| | | | | | | Append recipe aktualizr-auto-prov for provisioning of systemd service and configurations to the SOTA image. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* sota: Support m3ulcbLeon Anavi2017-06-221-0/+1
| | | | | | Support Renesas R Car Starter Kit Generation 3 (m3ulcb). Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Fix a typo (missing double quotes)OYTIS2017-06-091-1/+1
|
* Set default SOTA_CLIENT directly in sota.bbclassAnton Gerasimov2017-06-081-0/+1
|
* Add option to choose which sota client to use (if any)Anton Gerasimov2017-05-311-1/+1
|
* Merge pull request #67 from advancedtelematic/fix/machine-prefixcajun-rat2017-05-241-1/+2
|\ | | | | Prefix OSTREE_BRANCHNAME with ${MACHINE}-
| * Prefix OSTREE_BRANCHNAME with ${MACHINE}-Phil Wise2017-05-231-1/+2
| | | | | | | | | | As a temporary fix, treehub is going to use this to derive the relevant hardwareIdentifier for a push.
* | Fix typo in machine name for R-Pi3Phil Wise2017-05-231-1/+1
|/
* Merge remote-tracking branch 'origin/morty' into feat/noopAnton Gerasimov2017-05-111-4/+3
|\
| * Add support for am335x-evm based board with WiFiAnton Gerasimov2017-05-051-3/+2
| |
* | Make layer inclusion a neutral operationAnton Gerasimov2017-05-101-20/+18
|/ | | | | | | Classes are and bbappends are reworked so that mere inclusion of this layer to bbappends.conf doesn't change anything. In addition class behavior can now be controlled by both inheriting sota.bblcass and enabling "sota" DISTRO_FEATURE.
* Replace includes with bblcassesAnton Gerasimov2017-04-261-0/+33
They are more flexible and allow tricks like conditionally inheriting machine-related classes from the main one which makes things easier for external users like AGL