summaryrefslogtreecommitdiffstats
path: root/classes
Commit message (Collapse)AuthorAgeFilesLines
* Update fitimage initramfs image namefix/OTA-638/rpi-masterLaurent Bonnans2018-09-041-1/+1
| | | | | | From poky master This fixes image builds but does not boot yet...
* Add back dependency on INITRAMFS_IMAGE:do_image_completefit-initramfs-supportPhil Wise2018-08-141-0/+1
| | | | | | | Without this the build fails because the initramfs hasn't been build before do_image_ostree. There should be a dependency through virtual/kernel:do_deploy, but there is clearly some reason why this isn't enough.
* classes: image_types_ostree: Fix copying standalone initramfsYevgeny Popovych2018-08-141-1/+1
| | | | Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>
* ostree-initrd: Make it an initramfs, not initrdYevgeny Popovych2018-08-143-2/+3
| | | | | | | | | | | | | | | | | | | 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: image_types_ostree: A hack to allow initramfs in FITYevgeny Popovych2018-08-141-1/+8
| | | | | | | | | | | | | | | | | | | | | The issue is that when only vmlinuz-* file is present (the case when both DTB and initramfs are in FIT), libostree will assume that there is no initramfs at all and will supply different init= parameter on the kernel command line (aimed to boot directly from sysroot). This effectively breaks boot process as init specified on the kernel cmdline is not present in initramfs. Solution is to basically create an empty initramfs-* file when we use FIT. The proper solution would be to make libostree aware of whether we use FIT or not. Note, to actually boot with initramfs in FIT - a change to u-boot script (env) is needed which will remove explicit usage of initramfs. Signed-off-by: Yevgeny Popovych <yevgenyp@pointgrab.com>
* classes, images: Use standard variables for initramfsYevgeny Popovych2018-08-144-7/+6
| | | | | | | | 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-102-8/+7
|
* Adding support for creating an otaimg.tar file in addition to the ext4 imageBen Clouser2018-06-292-78/+121
|
* Merge pull request #338 from rsalveti/ostree-imagecajun-rat2018-06-271-6/+0
|\ | | | | image_types_ostree: no need to create boot/loader folders when creating ostree repo
| * image_types_ostree: no need to create boot/loader folders when creating ↵Ricardo Salveti2018-06-121-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>
* | sota.bbclass: remove obsolete/incorrect comment.Patrick Vacek2018-06-191-1/+0
| |
* | garage-push: enable verbose logging by defaultRicardo Salveti2018-06-121-1/+1
|/ | | | | | | Make garage-push logs more useful in case of errors when pushing to the OTA+ server. Signed-off-by: Ricardo Salveti <ricardo@opensourcefoundries.com>
* 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>
* Add support for custom garage target version and urlRicardo Salveti2018-05-112-2/+10
| | | | | | | 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>
* image_types_ostree.bbclass: do not inherit imageMing Liu2018-05-111-2/+0
| | | | | | | As a image_types_* bbclass, it does not have to inherit image class, it is sort of redundant code. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* image_types_ota.bbclass: do not inherit imageMing Liu2018-05-111-2/+0
| | | | | | | As a image_types_* bbclass, it does not have to inherit image class, it is sort of redundant code. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* Fix permissions of /var/sota in image_types_otaPhil Wise2018-04-271-0/+2
| | | | We should also do this in the recipes
* Merge pull request #290 from advancedtelematic/fix/linux-new-kernelPatrick Vacek2018-04-091-3/+0
|\ | | | | Stop forcing Linux 4.4 on qemux86-64
| * Stop forcing Linux 4.4 on qemux86-64Laurent Bonnans2018-04-061-3/+0
| | | | | | | | The mentioned issue doesn't seem to exist anymore
* | Assorted minor cleanup and formatting.Patrick Vacek2018-03-291-6/+19
|/ | | | | | Includes the suggestion for using /etc/sota/sota.env if it exists as recommended by the discussion here: https://github.com/advancedtelematic/meta-updater/pull/275
* Merge pull request #262 from advancedtelematic/feat/fitimage-rpicajun-rat2018-03-081-4/+13
|\ | | | | Use FIT image on RPi
| * Use FIT image on RPiAnton Gerasimov2018-02-221-4/+13
| |
* | Fix calculate_size in case $SIZE < $MINMatthias Andreas Benkard2018-03-071-1/+1
|/ | | calculate_size had a typo that made one of the cases fail. This patch fixes it.
* Merge branch 'pyro' into rockoAnton Gerasimov2018-01-263-1/+11
|\
| * Merge pull request #236 from advancedtelematic/bugfix/PRO-4730/firstversionBen Luck2018-01-252-1/+8
| |\ | | | | | | Deploy initial primary version information
| | * Deploy initial primary version informationAnton Gerasimov2018-01-192-1/+8
| | |
| * | Deploy startup.nsh before composing flashable imageAnton Gerasimov2018-01-161-0/+3
| |/ | | | | | | Additionally don't create extra images to save space and not confuse the user
* | Merge pull request #232 from advancedtelematic/bugfix/PRO-4685/ubootversioncajun-rat2018-01-191-1/+1
|\ \ | | | | | | Use u-boot version with patches for newer QEMU
| * | Use u-boot version with patches for newer QEMUAnton Gerasimov2018-01-181-1/+1
| | |
* | | Merge pull request #226 from leon-anavi/PRJ-317cajun-rat2018-01-191-0/+1
|\ \ \ | | | | | | | | sota_raspberrypi.bbclass: Enable U-Boot for Raspberry Pi
| * | | sota_raspberrypi.bbclass: Enable U-Boot for Raspberry PiLeon Anavi2018-01-111-0/+1
| |/ / | | | | | | | | | | | | | | | | | | Enable U-Boot for Raspberry Pi using the new setting from Yocto/OE layer meta-raspberrypi RPI_USE_U_BOOT. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* | | Merge branch 'pyro' into bugfix/update-rockoPatrick Vacek2018-01-174-23/+30
|\ \ \ | |/ / |/| / | |/ Bring over fixes from the last couple months from pyro in rocko.
| * Fix --repo parameter for garage-signAnton Gerasimov2018-01-101-5/+5
| |
| * Merge pull request #213 from advancedtelematic/doc/PRO-4532/secondaries-etccajun-rat2018-01-021-0/+1
| |\ | | | | | | Update documentation, specifically about variables to support secondaries
| | * Update documentation, specifically about variables to support secondaries.Patrick Vacek2017-12-151-0/+1
| | | | | | | | | | | | | | | Also add a missing mkdir so that SOTA_SECONDARY_ECUS actually works. We can improve this in the future but for now it works and I'm using it.
| * | Fixes for SpekulatiusAnton Gerasimov2017-12-203-12/+9
| |/ | | | | | | | | | | - New garage-sign interface - Remove garage-sign recipe (now installed with aktualizr-native) - Small but critical bugfixes in aktualizr
| * Deploy OSTree image without a branch nameAnton Gerasimov2017-12-071-2/+4
| |
| * Fix garage-sign targets add.Patrick Vacek2017-12-051-1/+1
| |
| * Merge pull request #190 from advancedtelematic/fix/repo-manifestcajun-rat2017-11-301-2/+2
| |\ | | | | | | Fix builds outside the .repo directory
| | * Fix builds outside the .repo directoryPhil Wise2017-11-281-2/+2
| | | | | | | | | | | | | | | The repo tool searches up the directory tree to find the .repo directory. Cleanly handle the case where it can't find anything.
| * | Merge pull request #191 from advancedtelematic/bugfix/rpi-sdimgOYTIS2017-11-281-0/+1
| |\ \ | | |/ | |/| Remove sdimg-rpi from IMAGE_FSTYPES