summaryrefslogtreecommitdiffstats
path: root/classes/sota.bbclass
Commit message (Collapse)AuthorAgeFilesLines
* aktualizr: latest garage-sign with expiration support.Patrick Vacek2019-08-201-0/+2
| | | | | | | Use GARAGE_TARGET_EXPIRES or GARAGE_TARGET_EXPIRE_AFTER (but not both!) to set the garage-sign parameters. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Do not export anything in sota.bbclassfix/ostree-branchname-2Laurent Bonnans2019-08-151-5/+5
| | | | | | | A simple variable definition will be enough and doing an export there completely kills caching. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Revert "Move OSTREE_BRANCHNAME to image_types_ostree.bbclass."Laurent Bonnans2019-08-151-1/+3
| | | | | | This reverts commit 8e7a0aeb3682386ed674ed0f682634d6a50983b7. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* sota: add support for freedom-u540Ricardo Salveti2019-07-241-0/+1
| | | | | | fitImage used by default. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* Merge pull request #550 from advancedtelematic/fix/branch-rebuildlbonn2019-07-191-3/+1
|\ | | | | Move OSTREE_BRANCHNAME to image_types_ostree.bbclass.
| * Move OSTREE_BRANCHNAME to image_types_ostree.bbclass.fix/branch-rebuildPatrick Vacek2019-07-181-3/+1
| | | | | | | | | | | | | | | | If it is set in sota.bbclass and overwritten in local.conf, bitbake will rebuild everything. Now bitbake should only rerun the commands in image_types_ostree (and image_types_ota) as expected. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Allow customization of data in targets.jsonAndy Doan2019-07-171-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>
* sota.bbclass: Translate old prov recipe names into the new versions.refactor/OTA-2798/rename-provisioningPatrick 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-05-211-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>
* OTA-2418: Remove example.com URL from automated garage-sign usagefeat/OTA-2418/remove-example.comMykhaylo Sul2019-04-031-1/+1
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* 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>
* meta: drop True option to getVar callsMing Liu2019-01-141-1/+1
| | | | | | | 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: move a dependency inMing Liu2018-11-241-5/+0
| | | | | | | 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-241-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-241-5/+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_idfeat/hardware_idSerhiy Stetskovych2018-11-221-1/+2
| | | | Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
* Add SOTA_DEPLOY_CREDENTIALS variable to control whether the built image ↵Anton Gerasimov2018-10-011-0/+2
| | | | should be provisioned
* ostree-initrd: Make it an initramfs, not initrdYevgeny Popovych2018-08-141-1/+1
| | | | | | | | | | | | | | | | | | | The reasoning here is to allow initramfs generated by this recipe to be included in FIT. To do so w/o changing openembedded-core (it allows only cpio format) - init script should be able to execute from a rootfs (i.e. true initramfs), not ramdisk (initrd). See [1] for more information on these keywords. The gist of this change is switch from `pivot_root` to `switch_root`. This also allows to get rid of some clutter, since `switch_root` handles transition to new sysroot all by itself. Again, see [1] for details on these utility/syscall. [1] https://www.kernel.org/doc/Documentation/filesystems/ramfs-rootfs-initramfs.txt Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>
* classes, images: Use standard variables for initramfsYevgeny Popovych2018-08-141-2/+2
| | | | | | | | This will reduce the level of indirection and improve compatibility with the rest of OE. For example, FIT that includes initramfs may now be built. Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>
* Add support for building ota-tar.xz, and fixes from review commentsBen Clouser2018-07-101-1/+1
|
* Adding support for creating an otaimg.tar file in addition to the ext4 imageBen Clouser2018-06-291-2/+5
|
* sota.bbclass: remove obsolete/incorrect comment.Patrick Vacek2018-06-191-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