summaryrefslogtreecommitdiffstats
path: root/classes
Commit message (Collapse)AuthorAgeFilesLines
* image_types_ostree: add /usr/local supportStefan Agner2019-08-151-0/+25
| | | | | | | | | | | Add /usr/local support as outlined in OSTree documentation. This makes sure that a writeable and persistent /usr/local directory is available. See also: https://ostree.readthedocs.io/en/latest/manual/adapting-existing/ Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry-picked from commit bc6c9f098442a2c0bf4a7a40ba50c9ee5fe40cc1)
* image_types_ostree: make root directory only readable by rootStefan Agner2019-08-151-2/+2
| | | | | | | | Make the root home directory only accessible by root. Use 700 as commonly used for the root home directory. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry-picked from commit c170b6344b13ea075aff4091c846623b9b6f9a97)
* image_types_ostree: add top level directories unconditionallyStefan Agner2019-08-151-7/+7
| | | | | | | | | The Filesystem Hierarchy Standard defines several top-level directory to be writeable. Add those even in the absence of files installed by OpenEmbedded so a user might actually use them. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> (cherry-picked from commit 986526193a8f2f08ccdc77d71bb7d7f5e86185f0)
* image_types_ostree: no need to create boot/loader folders when creating ↵Ricardo Salveti2019-08-151-6/+0
| | | | | | | | | | ostree repo The boot/loader folders are only required at the deploy stage, which is already created by image_types_ota.bbclass. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com> (cherry-picked from commit 54f9b8e2ecb4ef0027da026368edc33bbc08eed4)
* Allow customization of data in targets.jsonAndy Doan2019-08-142-0/+7
| | | | | | | | 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)
* Add TI AM65xx supportfeat/tiEugene Smirnov2019-07-222-0/+11
| | | | Signed-off-by: Eugene Smirnov <evgenii.smirnov@here.com>
* Add TI Beaglebone Black supportEugene Smirnov2019-07-222-1/+10
| | | | Signed-off-by: Eugene Smirnov <evgenii.smirnov@here.com>
* sota.bbclass: Translate old prov recipe names into the new versions.refactor/rocko/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-292-2/+7
| | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Replace connman with systemd-networkd on raspberrypiLaurent Bonnans2019-04-261-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Define virtual/network-configurationLaurent Bonnans2019-04-265-6/+10
| | | | | | | Now provided by connman and networkd-dhcp-conf, added to images in our supported platforms Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Replace connman with systemd-networkd on qemux86-64Laurent Bonnans2019-04-261-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Remove connman* from base IMAGE_INSTALL_appendLaurent Bonnans2019-04-266-1/+8
| | | | | | | No sense to force that if poky does not, let's move it to platform-specific for now. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.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>
* 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>
* image_types_ota.bbclass: fix a typoMing Liu2019-02-201-1/+1
| | | | | | type -> size. Signed-off-by: Ming Liu <liu.ming50@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>
* aktualizr and image_types_ota: more curly braces.Patrick Vacek2019-02-201-4/+4
| | | | | | | | 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-202-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>
* Added support to automatically update ostree summaryLuka Pivk2019-02-201-0/+5
| | | | | | | 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>
* 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>
* Allow setup custom hardware_idSerhiy Stetskovych2018-11-292-2/+3
| | | | Signed-off-by: Serhiy Stetskovych <patriotyk@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>
* aktualizr: Fix virtual secondary support.Patrick Vacek2018-11-131-5/+0
| | | | | | | | 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>
* 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>
* classes: image_types_ostree: check OSTree repo existence using ostreeStefan Agner2018-11-091-1/+1
| | | | | | | | | | | | | Currently we assume if the OSTree repo exists, that there is a OSTree repo in it. This does not need to be true in general, and when using lockfiles bitbake will create the directory before the do_image_ostree task is executed the first time. Use ostree refs to detect whether the target directory contains a OSTree repo. Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Document version overriding and add warningsAnton Gerasimov2018-10-092-2/+3
|
* Provide example for setting UPTANE target version automaticallyAnton Gerasimov2018-10-093-1/+16
|
* Add SOTA_DEPLOY_CREDENTIALS variable to control whether the built image ↵Anton Gerasimov2018-10-021-0/+2
| | | | should be provisioned
* Update `installed_versions` passing to new locationLaurent Bonnans2018-09-211-2/+4
|
* Fix typoOYTIS2018-09-201-1/+1
|
* Don't commit credentials to OSTree repositoryAnton Gerasimov2018-09-172-5/+11
|
* Add support for RCar-H3 boardfeat/h3ulcbAnton Gerasimov2018-09-043-2/+11
| | | | | Both m3ulcb and h3ulcb rely on AGL BSP, there is currently no meta-updater-renesas layer
* Merge branch 'rocko' into bugfix/typos_and_comments_rockoPatrick Vacek2018-06-181-0/+2
|\
| * Add support for rollback on Raspberry PiAnton Gerasimov2018-06-151-0/+2
| |
* | sota.bbclass: remove obsolete/incorrect comment.Patrick Vacek2018-06-121-1/+0
|/
* Include fix for qemu in sota_qemux86-64.bbclassLaurent Bonnans2018-05-231-0/+3
|
* Remove support for u-boot on minnowboardLaurent Bonnans2018-05-181-8/+0
| | | | See https://github.com/advancedtelematic/meta-updater-minnowboard/pull/6
* Fix boot on qemux86-64Laurent Bonnans2018-05-162-1/+2
| | | | It needs a plain compressed file system and not an u-boot legacy image
* Check for custom target version for installed_versionsRicardo Salveti2018-05-161-1/+5
| | | | | | | Make sure to use the custom target version when creating installed_versions if defined by the user. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* image_types_ota: make default grub.cfg a link to loader/grub.cfgRicardo Salveti2018-05-161-1/+1
| | | | | | | /boot/grub2/grub.cfg should reflect the grub.cfg used by the boot process instead of being an empty file. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* Replace INITRAMFS_FSTYPES with OSTREE_INITRAMFS_FSTYPESRicardo Salveti2018-05-162-2/+2
| | | | | | | | | | 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-153-5/+4
| | | | | | | | | | | | | 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>
* image_types_ostree.bbclass: change the systemd detecting logicMing Liu2018-05-151-1/+1
| | | | | | | | It can not determine the init manager is systemd by checking if DISTRO_FEATURES contains 'systemd', change it to check VIRTUAL-RUNTIME_init_manager instead. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ostree.bbclass: clean up GARAGE_SIGN_REPO after pushRicardo Salveti2018-05-141-0/+1
| | | | | | Avoid exposing the sign repo after the build is completed. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>