summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fixed incorrect boolean in virtualsec.jsonHEADmasterAnatoliy Odukha2021-12-091-1/+1
| | | | Signed-off-by: Anatoliy Odukha <aodukha@gmail.com>
* Merge pull request #824 from ↵Oleh Avramenko2021-09-021-3/+0
|\ | | | | | | | | advancedtelematic/feat/OTA-5671/Disable-cache-checkout-job OTA-5671: Disable caching for checkout job
| * OTA-5671: Disable caching for checkout jobfeat/OTA-5671/Disable-cache-checkout-jobOleh Avramenko2021-09-021-3/+0
|/ | | | Signed-off-by: Oleh Avramenko <ext-oleh.avramenko@here.com>
* Merge pull request #816 from shr-project/jansa/masterAnatoliy Odukha2021-08-0561-225/+225
|\ | | | | Convert to new override syntax
| * image_types_ostree.bbclass, image_types_ota.bbclass: convert CONVERSION_CMD ↵Martin Jansa2021-08-052-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | and IMAGE_TYPEDEP as well * for honister this depends on new changes in oe-core: https://git.openembedded.org/openembedded-core/commit/?id=52674c4b1fdf79829095031b2e342d44fb0dc181 https://git.openembedded.org/openembedded-core/commit/?id=8573f6b2a7af9867da0b21936ffd2cd2a417de1d for dunfell, gatesgarth, hardknott the colons will be replaced with underscores by bitbake and everything will work as before Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| * layer.conf: Update to honisterMartin Jansa2021-08-041-1/+1
| | | | | | | | | | | | | | This marks the layers as compatible with honister now they use the new override syntax. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| * Manually fix conversionMartin Jansa2021-08-045-16/+16
| | | | | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| * Convert to new override syntaxMartin Jansa2021-07-3062-217/+217
|/ | | | | | | | | | This is the result of automated script (0.9.0) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Merge pull request #813 from ricardosalveti/syslinuxAnatoliy Odukha2021-07-121-0/+4
|\ | | | | image_types_ota.bbclass: add support for syslinux as OSTREE_BOOTLOADER
| * image_types_ota.bbclass: add support for syslinux as OSTREE_BOOTLOADERRicardo Salveti2021-07-091-0/+4
| | | | | | | | | | | | | | | | | | | | Add support for ostree to automatically identify and use syslinux as the preferred bootloader scheme when set via OSTREE_BOOTLOADER. Not forcing a build-time dependency at do_image_ota as multiple bootloaders are able to identify the syslinux format. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* | Merge pull request #814 from advancedtelematic/feat/Return-python2-dockerfileYaroslav Stefinko2021-07-121-0/+2
|\ \ | |/ |/| Return python2 to Docker image
| * Return python2 to Docker imagefeat/Return-python2-dockerfileOleh Avramenko2021-07-121-0/+2
| | | | | | | | Signed-off-by: Oleh Avramenko <ext-oleh.avramenko@here.com>
* | Merge pull request #812 from advancedtelematic/feat/fix-pipelineYaroslav Stefinko2021-07-091-2/+5
|\ \ | |/ |/| Docker: fix repo error
| * Fix repo errorfeat/fix-pipelineOleh Avramenko2021-07-091-2/+5
|/ | | | Signed-off-by: Oleh Avramenko <ext-oleh.avramenko@here.com>
* Merge pull request #810 from liuming50/drop-prepare_ostree_rootfs-prefuncPatti Vacek2021-07-011-15/+4
|\ | | | | image_types_ostree.bbclass: drop prepare_ostree_rootfs prefunc
| * image_types_ostree.bbclass: drop prepare_ostree_rootfs prefuncMing Liu2021-06-191-15/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The purpose of prepare_ostree_rootfs prefunc is to ensure do_image_rootfs runs from a clean ${OSTREE_ROOTFS} and call oe.path.copyhardlinktree from ${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}. We dont have to maintain a prefunc to achieve that, it could be easily done in do_image_ostree itself. But the major reason for this change is to avoid hard links from ${IMAGE_ROOTFS} to ${OSTREE_ROOTFS}, which might lead to a Pseudo abortion in some cases, which was observed when IMA/EVM is enabled in rootfs. There was a commit aiming to fix the Pseudo abortion, commit db099053: [ image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfs ] but it's incomplete per later tests, there is still the case some old inodes being used in ${IMAGE_ROOTFS} when do_rootfs runs, which causes 'rm -rf ${IMAGE_ROOTFS}' fail on a Pseudo abortion error. This fixes the Pseudo abortion completely. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | Merge pull request #811 from liuming50/support-readonly-sysrootPatti Vacek2021-07-012-0/+5
|\ \ | |/ |/| meta: support readonly sysroot
| * meta: support readonly sysrootMing Liu2021-06-302-0/+5
|/ | | | | | | | Currently ostree sysroot is being mounted as RW by ostree-remount systemd service, add a variable OSTREE_SYSROOT_READONLY to control that, so the end users could choose to mount sysroot as RO. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Merge pull request #809 from shr-project/jansa/aktualizrPatti Vacek2021-05-061-8/+0
|\ | | | | aktualizr: drop unnecessary do_configure_prepend
| * aktualizr: drop unnecessary do_configure_prependMartin Jansa2021-04-301-8/+0
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fails with latest oe-core/master with: https://git.openembedded.org/openembedded-core/commit/meta/classes/cmake.bbclass?id=0fb6280432a36985590d9a714a5f11164aaebb51 because this prepend does "cd ${S}" and doesn't go back to ${B} and cmake_do_configure function doesn't cd to ${B} anymore, resulting in: | CMake Error at CMakeLists.txt:42 (message): | Aktualizr does not support building in the source tree. Please remove | CMakeCache.txt and the CMakeFiles/ directory, then create a subdirectory to | build in: mkdir build; cd build; cmake .. * drop this whole do_configure_prepend as git-native works fine: aktualizr-native/1.0+gitAUTOINC+1255aa24fe-7/git$ grep Setting ../temp/log.do_configure -- Setting version to 2020.10-0-g1255aa24f aktualizr/1.0+gitAUTOINC+1255aa24fe-7/temp$ grep Setting ../temp/log.do_configure -- Setting version to 2020.10-0-g1255aa24f aktualizr/1.0+gitAUTOINC+1255aa24fe-7/build$ which git /OE/build/oe-core/tmp-musl/hosttools/git aktualizr/1.0+gitAUTOINC+1255aa24fe-7/build$ grep GIT CMakeCache.txt GITCOMMAND:FILEPATH=/OE/build/oe-core/tmp-musl/hosttools/git GIT_EXECUTABLE:FILEPATH=/OE/build/oe-core/tmp-musl/hosttools/git //ADVANCED property for variable: GITCOMMAND GITCOMMAND-ADVANCED:INTERNAL=1 //ADVANCED property for variable: GIT_EXECUTABLE GIT_EXECUTABLE-ADVANCED:INTERNAL=1 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Merge pull request #808 from ↵Patti Vacek2021-04-281-0/+1
|\ | | | | | | | | liuming50/add-fakeroot-varflag-to-prepare_ostree_rootfs image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_ro…
| * image_types_ostree.bbclass: add fakeroot varflag to prepare_ostree_rootfsMing Liu2021-04-081-0/+1
|/ | | | | | | | | | | Since the ostree rootfs is generated by fakeroot, we should make prepare_ostree_rootfs run with fakeroot as well, or else we might run into a pseudo abort issue when removing OSTREE_ROOTFS directory. Reference: https://wiki.yoctoproject.org/wiki/Pseudo_Abort Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Merge pull request #806 from shr-project/jansa/fixes-licPatti Vacek2021-04-063-5/+3
|\ | | | | fit-conf, ostree-initrd, slcand-start: use COMMON_LICENSE_DIR instead…
| * fit-conf, ostree-initrd, slcand-start: use COMMON_LICENSE_DIR instead of ↵Martin Jansa2021-04-033-5/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | COREBASE in LIC_FILES_CHKSUM * fixes slcand-start which fails since LICENSE file was changed in 2019 with: https://git.openembedded.org/openembedded-core/commit/LICENSE?id=f8c9c511b5f1b7dbd45b77f345cb6c048ae6763e WARNING: slcand-start-1.0-r0 do_populate_lic: ${COREBASE}/LICENSE is not a valid license file, please use '${COMMON_LICENSE_DIR}/MIT' for a MIT License file in LIC_FILES_CHKSUM. This will become an error in the future ERROR: slcand-start-1.0-r0 do_populate_lic: QA Issue: slcand-start: The LIC_FILES_CHKSUM does not match for file://oe-core/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 slcand-start: The new md5 checksum is b97a012949927931feb7793eee5ed924 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* | Merge pull request #805 from shr-project/jansa/fixesPatti Vacek2021-04-061-3/+4
|\ \ | |/ |/| Fix big-update recipe
| * big-update: add LIC_FILES_CHKSUMMartin Jansa2021-04-031-0/+1
| | | | | | | | | | | | | | * fixes: ERROR: big-update-2.0-r0 do_populate_lic: QA Issue: big-update: Recipe file fetches files and does not have license file information (LIC_FILES_CHKSUM) [license-checksum] Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| * big-update: respect libdir variableMartin Jansa2021-04-031-3/+3
| | | | | | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
| * big-update: use python3Martin Jansa2021-04-031-1/+1
|/ | | | | | | * the recipe was changed to inherit python3native, but the do_install still calls python(2) not python3 Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Merge pull request #804 from shr-project/jansa/hardknottPatti Vacek2021-03-291-1/+1
|\ | | | | layer.conf: update LAYERSERIES_COMPAT for hardknott
| * layer.conf: update LAYERSERIES_COMPAT for hardknottMartin Jansa2021-03-171-1/+1
|/ | | | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Merge pull request #802 from advancedtelematic/fix/ostree-kernel-initramfs-mitPatti Vacek2021-02-241-2/+2
|\ | | | | ostree-kernel-initramfs: Use MIT license.
| * ostree-kernel-initramfs: Use MIT license.fix/ostree-kernel-initramfs-mitPatti Vacek2021-02-241-2/+2
|/ | | | | | | It's a metadata-only recipe and all contributors have agreed that MIT would be preferable. Signed-off-by: Patti Vacek <pattivacek@gmail.com>
* Merge pull request #799 from advancedtelematic/fix/python3-repo-bitbakePatti Vacek2021-02-012-11/+10
|\ | | | | Update dockerfiles to use Debian Buster.
| * Update dockerfiles to use Debian Buster.fix/python3-repo-bitbakePatti Vacek2021-01-292-11/+10
| | | | | | | | | | | | This should hopefully resolve some python3/repo issues. Signed-off-by: Patti Vacek <pattivacek@gmail.com>
* | Merge pull request #796 from ricardosalveti/masterPatti Vacek2021-01-291-1/+1
|\ \ | | | | | | image_types_ota.bbclass: use standard ext4 features
| * | image_types_ota.bbclass: use standard ext4 featuresRicardo Salveti2021-01-111-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid removing 64bit and metadata_csum by default and prefer the standard ext4 features instead. 64bit enables the file system to be larger than 2^32 blocks and metadata_csum enables metadata checksumming, both of which are enabled by default on recent mke2fs releases. It is unclear why 64bit was disabled by looking at the git history, but my assumption would be that either kernel or userspace was old enough for this feature to not be supported/available. Since this option is currently used by most distros by default, it should now be safe to enable it (requires kernel >= 2.6.28). metadata_csum was disabled in 4d34fa53db to make the u-boot tooling work with the ext4 file system (when saving environment), but the correct fix should instead be a fix at the userspace tooling instead, since not every target requires u-boot. Signed-off-by: Ricardo Salveti <ricardo@foundries.io>
* | Merge pull request #797 from ↵Patti Vacek2021-01-291-0/+1
|\ \ | | | | | | | | | | | | liuming50/fix-race-problems-of-ostreecommit-ota-tasks image_types_ota.bbclass: get lock before accessing OSTREE_REPO
| * | image_types_ostree.bbclass: get lock before accessing OSTREE_REPOMing Liu2021-01-281-0/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit d13ec585ae677affd88b9d92c6ea135cc249b2fa: [ image_types_ostree: use OSTree repo location for lockfiles ] A lockfile ${OSTREE_REPO}/ostree.lock was added to prevent concurrent access to the repository by multiple bitbake instances, but it should not only apply to ostreecommit task, but ostreepush task also need it. This fixes a following race condition error: | | ERROR: Execution of '.../temp/run.do_image_ostreecommit.34262' failed with exit code 1: | error: Writing content object: Creating temp file: No such file or directory Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | Merge pull request #798 from wilddom/fix-image_repo_manifestPatti Vacek2021-01-291-1/+1
|\ \ | |/ |/| image_repo_manifest.bbclass: Improvement for builds outside the .repo…
| * image_repo_manifest.bbclass: Improvement for builds outside the .repo directoryDominik Wild2021-01-191-1/+1
|/ | | | | | | The repo tool searches up the directory tree to find the .repo directory, which doesn't work in a separated build directory. Signed-off-by: Dominik Wild <dominik.wild@glutz.com>
* Merge pull request #791 from shr-project/jansa/masterAnatoliy Odukha2021-01-111-1/+1
|\ | | | | [master] Fix ota-ext4 IMAGE_FSTYPE
| * image_types_ota.bbclass: pass -t ext4 to mke2fsMartin Jansa2021-01-031-1/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * it doesn't automatically pass "-t ext4", because here we're calling mke2fs as mkfs.ota-ext4 instead of mkfs.ext4 so the resulting was now ext2 instead of ext4 $ file image-raspberrypi4.rootfs.ota-ext4 image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext2 filesystem data, UUID=15862fcd-6204-486b-a4c6-fdf7b1710797, volume name "otaroot" (large files) after this fix: $ file image-raspberrypi4.rootfs.ota-ext4 image-raspberrypi4.rootfs.ota-ext4: Linux rev 1.0 ext4 filesystem data, UUID=3709e65c-1d2b-4280-85d1-638f5f9c3cc0, volume name "otaroot" (extents) (64bit) (large files) (huge files) that's why metadata_csum and other features enabled by default in ext4 were now missing after https://github.com/advancedtelematic/meta-updater/pull/787 we can drop 64bit feature as well, it's also enabled in default recipe-sysroot-native/etc/mke2fs.conf [defaults] base_features = sparse_super,large_file,filetype,resize_inode,dir_index,ext_attr default_mntopts = acl,user_xattr enable_periodic_fsck = 0 blocksize = 4096 inode_size = 256 inode_ratio = 16384 [fs_types] ext3 = { features = has_journal } ext4 = { features = has_journal,extent,huge_file,flex_bg,metadata_csum,64bit,dir_nlink,extra_isize inode_size = 256 } ... Signed-off-by: Martin Jansa <martin.jansa@lge.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* Merge pull request #787 from liuming50/refactor-ota-ext4-taskAnatoliy Odukha2020-12-211-56/+6
|\ | | | | image_types_ota.bbclass: call oe_mkext234fs to make ota-ext4 image
| * image_types_ota.bbclass: add metadata_csum mkfs optionMing Liu2020-11-251-1/+1
| | | | | | | | | | | | | | | | | | This fixes a following error: | Saving Environment to EXT4... Unsupported feature metadata_csum found, not writing when u-boot tries to write env to EXT4 filesystem. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * image_types_ota.bbclass: call oe_mkext234fs to make ota-ext4 imageMing Liu2020-11-251-56/+6
| | | | | | | | | | | | | | | | | | | | | | | | We dont have to maintain our own function calculate_size and use dd/mkfs.ext4 to generate ota-ext4 image, they have been done in OE by get_rootfs_size/oe_mkext234fs functions, we could just use them. The major benefit could be we can sync the future fixes/changes in these functions from OE, also avoid maintaining some duplicated code in image_types_ota.bbclass. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | Merge pull request #788 from advancedtelematic/fix/python3-for-repoPatti Vacek2020-12-151-2/+5
|\ \ | |/ |/| Use python3 to get repo working again.
| * Use python3 to get repo working again.fix/python3-for-repoPatrick Vacek2020-12-151-2/+5
|/ | | | | | | | The latest version of repo requires python3.6+, but the default Debian package is fine with the default python3 package (although it complains about experimental support). Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #780 from advancedtelematic/feat/2020.10feat/fix-provisioning-test-timeoutAnatoliy Odukha2020-11-034-13/+10
|\ | | | | aktualizr: Upgrade to 2020.10 release
| * aktualizr: Don't put unused configs in the image.feat/2020.10Patrick Vacek2020-11-034-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because every aktualizr package was depending on aktualizr-configs, all of the default configs were getting installed to /usr/lib/sota, despite that by default none of them were ever used on the device. That dependency has been removed. The provisioning recipes still install the recipes they need to the default location that aktualizr actually uses (/usr/lib/sota/conf.d). If you want to use anything else, a specific recipe should be created to do so. This change rendered the aktualizr-host-tools package useless, so it has been removed. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
| * aktualizr: Upgrade to 2020.10 releaseAnatoliy Odukha2020-11-031-4/+4
|/ | | | Signed-off-by: Anatoliy Odukha <aodukha@gmail.com>