summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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 #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 #440 from agners/mandate-usr-movePatrick Vacek2018-11-293-11/+7
|\ \ \ | |/ / |/| | Use usrmerge
| * | image_types_ostree: drop manual usrmove implementationStefan Agner2018-11-281-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | OpenEmbedded's usrmerge implementation checks that nothing is installing in /bin, /sbin or /lib. Hence those directories are empty by default. There is no need for the manual usrmove anymore. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * | image_types_ostree: make usrmerge mandatoryStefan Agner2018-11-281-0/+2
| | | | | | | | | | | | | | | | | | | | | Make usrmerge a mandatory DISTRO feature when using the ostree class. This will allow to remove the "manual" usrmerge implementation. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
| * | sota.conf: use usrmergeStefan Agner2018-11-282-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | OSTree needs UsrMove to be implemented, meaning that everything should be in /usr. OpenEmbedded has a distro feature usrmerge which implements exactly that, and makes sure that no package install anything in /bin, /sbin or /lib. Make use of it. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | | Merge pull request #441 from advancedtelematic/fix/more-curly-bracesPatrick Vacek2018-11-292-6/+6
|\ \ \ | |/ / |/| | aktualizr and image_types_ota: more curly braces.
| * | aktualizr and image_types_ota: more curly braces.fix/more-curly-bracesPatrick Vacek2018-11-282-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>
* | Merge pull request #439 from agners/fix-ostree-lockfilesPatrick Vacek2018-11-281-1/+1
|\ \ | | | | | | image_types_ostree: use OSTree repo location for lockfiles
| * | image_types_ostree: use OSTree repo location for lockfilesStefan Agner2018-11-281-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | OSTree does not allow concurrent access to the repository. If two bitbake instances use the same OSTree repository, then they might access it simultanously. The lockfile to prevent such simultaneous access should really be in the same location where the OSTree repository is stored. Revert back to the location inside the OSTree repository. Fixes: e97975d6113c ("image_types_ostree/ota.bbclass: refactor ostree task") Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* | Merge pull request #438 from advancedtelematic/fixgbPatrick Vacek2018-11-281-1/+1
|\ \ | | | | | | Fix bloated OTA image
| * | Fix bloated OTA imagefixgbAnton Gerasimov2018-11-271-1/+1
|/ / | | | | | | | | | | Curly braces are necessary around bitbake variables Signed-off-by: Anton Gerasimov <anton.gerasimov@here.com>
* | Merge pull request #436 from advancedtelematic/fix/rpi-image-typePatrick Vacek2018-11-261-3/+3
|\ \ | | | | | | oe-selftest: rpi-basic-image is deprecated. Use core-image-basic.
| * | oe-selftest: rpi-basic-image is deprecated. Use core-image-minimal.fix/rpi-image-typePatrick Vacek2018-11-261-3/+3
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | | Merge pull request #430 from liuming50/masterPatrick Vacek2018-11-265-126/+108
|\ \ \ | |/ / |/| | Fixed some issues
| * | image_types_ota.bbclass: move a dependency inMing Liu2018-11-242-5/+2
| | | | | | | | | | | | | | | | | | | | | 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-244-84/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-243-23/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Liu2018-11-241-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 Liu2018-11-243-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>
* | Merge pull request #435 from advancedtelematic/feat/hardware_idPatrick Vacek2018-11-224-2/+8
|\ \ | | | | | | Allow setup custom hardware_id
| * | aktualizr: fix hardware ID config section.Patrick Vacek2018-11-221-1/+1
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * | README: slightly more descriptive explanation of SOTA_HARDWARE_ID.Patrick Vacek2018-11-221-1/+1
| | | | | | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * | Allow setup custom hardware_idfeat/hardware_idSerhiy Stetskovych2018-11-224-2/+8
| | | | | | | | | | | | Signed-off-by: Serhiy Stetskovych <patriotyk@gmail.com>
* | | Merge pull request #434 from agners/fedora-oe-selftest-fixesPatrick Vacek2018-11-211-1/+7
|\ \ \ | |/ / |/| | selftest: introduce QEMU_USE_KVM
| * | selftest: introduce QEMU_USE_KVMStefan Agner2018-11-211-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>
* | Merge pull request #433 from advancedtelematic/doc/oe-selftest-and-rm-examplePatrick Vacek2018-11-193-5/+5
|\ \ | | | | | | docs: better explanation of oe-selftest requirements.
| * | docs: better explanation of oe-selftest requirements.doc/oe-selftest-and-rm-examplePatrick Vacek2018-11-163-5/+5
|/ / | | | | | | | | | | Also remove all references to aktualizr-example-interface. It has been removed. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Merge pull request #432 from advancedtelematic/fix/typographyPatrick Vacek2018-11-163-12/+12
|\ \ | | | | | | aktualizr: Bump to latest and fix names.
| * | aktualizr: Bump to latest and fix names.Patrick Vacek2018-11-163-12/+12
|/ / | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* | Merge pull request #431 from albard00/masterPatrick Vacek2018-11-131-2/+2
|\ \ | | | | | | Fix function name conflict
| * | Fix function name conflictAlexandre Bard2018-11-131-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 #426 from advancedtelematic/fix/master/newline-etcPatrick Vacek2018-11-139-28/+14
|\ \ \ | |/ / |/| | aktualizr: bump to latest for server URL newline fix.
| * | aktualizr: use config instead of environment variables.fix/master/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>
* | Merge pull request #423 from advancedtelematic/RemoveATSgaragePatrick Vacek2018-11-081-4/+4
|\ \ | |/ |/| Update README.adoc
| * Replace more references to ATS Garage with HERE OTA Connect.RemoveATSgaragePatrick Vacek2018-11-081-3/+3
| | | | | | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * Update README.adocXavier Gully2018-11-081-1/+1
|/ | | | | | Update the reference to https://connect.ota.here.com Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #424 from advancedtelematic/feat/add-thud-to-readmePatrick Vacek2018-11-071-0/+1
|\ | | | | Added 'thud' to list of supported releases
| * Added 'thud' to list of supported releasesfeat/add-thud-to-readmeArthur Taylor2018-11-061-0/+1
|/
* Merge pull request #421 from agners/master-toradexPatrick Vacek2018-11-021-1/+2
|\ | | | | classes: image_types_ostree: use locking during OSTree repo update
| * classes: image_types_ostree: use locking during OSTree repo updateStefan Agner2018-11-021-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>
| * classes: image_types_ostree: check OSTree repo existence using ostreeStefan Agner2018-11-021-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>
* | Merge pull request #418 from ↵Patrick Vacek2018-11-011-1/+3
|\ \ | | | | | | | | | | | | advancedtelematic/fix/master/secondary-image-cred-packages Update packages removed for secondary-image.
| * | secondary_image: also remove aktualizr-uboot-env-rollback.Patrick Vacek2018-11-011-0/+1
| | |