[OE-core] [PATCH resend] core-image-minimal-initramfs: use initramfs-framework for initialization

2018-04-13 Thread California Sullivan
uced a new INITRAMFS_SCRIPTS variable to the core-image-minimal-initramfs recipe. This variable makes the recipe look much cleaner, and also allows easier replacement or additions to the scripts. Fixes [YOCTO #10987]. Signed-off-by: California Sullivan --- Dicussion archives: * http://lists.openem

[OE-core] [PATCH v2] initrdscripts: init-install(-efi).sh: don't assume 20M boot partition

2018-04-02 Thread California Sullivan
nt to be installed, we actually get a smaller boot partition with less wasted space. Also add VIRTUAL-RUNTIME_base-utils to RDEPENDS where these scripts are used, as they're needed for the du command. [YOCTO #12583]. Signed-off-by: California Sullivan --- * v2: add VIRTUAL-RUNTIME_bas

[OE-core] [PATCH] initrdscripts: init-install(-efi).sh: don't assume 20M boot partition

2018-04-02 Thread California Sullivan
nt to be installed, we actually get a smaller boot partition with less wasted space. [YOCTO #12583]. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 +-- meta/recipes-core/initrdscripts/files/init-install.sh | 15 +

[OE-core] [PATCH v2] default-distrovars: set default KERNEL_IMAGETYPE(S)

2018-03-29 Thread California Sullivan
age as the default. Others get zImage as per meta/conf/documentation.conf. Also set KERNEL_IMAGETYPES, as we will eventually be switching away from KERNEL_IMAGETYPE. Thanks to Andre McCurdy for the arch defaults part. Signed-off-by: California Sullivan --- v2: bzImage for x86, zImage for others. me

[OE-core] [PATCH] default-distrovars: set default KERNEL_IMAGETYPE(S)

2018-03-29 Thread California Sullivan
as we will eventually be switching away from KERNEL_IMAGETYPE. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 1 - meta/classes/live-vm-common.bbclass | 2 -- meta/classes/syslinux.bbclass | 1 - meta/classes/systemd-boot-c

[OE-core] [PATCH] xserver-xorg: import distro patch to use modesetting driver on newer hardware

2018-03-19 Thread California Sullivan
Debian and Fedora both carry this patch, and the xf86-video-modesetting driver seems better on recent hardware. As an example, on a NUC6CAYS, the x11perf -aa10text and -rgb10text tests see around a 20x increase. [YOCTO #12019] [YOCTO #12390] Signed-off-by: California Sullivan --- ...c-use

[OE-core] [PATCH] x86-base.inc: use xf86-video-modesettings as default xserver

2018-03-09 Thread California Sullivan
Most distros have switched to this, and we're seeing better results in some areas as well. E.g., on a NUC6CAYS the x11perf -aa10text and -rgb10text results see a 20x increase. [YOCTO #12019]. [YOCTO #12590]. Signed-off-by: California Sullivan --- meta/conf/machine/include/x86-base.in

[OE-core] [PATCH v3 13/21] systemd-boot*.bbclass: Don't use vmlinuz

2018-02-28 Thread California Sullivan
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/systemd-boot-cfg.bbclass | 6 +- meta/classes/systemd-boot.bbclass | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/systemd

[OE-core] [PATCH v3 11/21] systemd-boot.bbclass: break out configuration creation

2018-02-28 Thread California Sullivan
This class is useful on its own and can be used to create configuration recipes. Signed-off-by: California Sullivan --- ...stemd-boot.bbclass => systemd-boot-cfg.bbclass} | 57 -- meta/classes/systemd-boot.bbclass | 70 +- 2 files changed

[OE-core] [PATCH v3 15/21] packagegroup-core-boot: add kernel for EFI systems

2018-02-28 Thread California Sullivan
Previously this wasn't needed because the kernel was added at image creation time to the boot partition. Now that the boot partition is created from the /boot/ partition of the rootfs, it needs to be installed there. Signed-off-by: California Sullivan --- meta/recipes-core/packageg

[OE-core] [PATCH v3 10/21] syslinux.bbclass: don't use vmlinuz

2018-02-28 Thread California Sullivan
We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/syslinux.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bb

[OE-core] [PATCH v3 08/21] wic: add wks file to make use of exclude-path functionality

2018-02-28 Thread California Sullivan
Using --exclude-path and a wks.in file we can create an image that takes the /boot/ directory for the boot partition, has an empty /boot/ directory in the rootfs partition. The boot partition gets mounted to /boot/ after startup. Signed-off-by: California Sullivan --- scripts/lib/wic/canned-wks

[OE-core] [PATCH v3 09/21] init-install-efi.sh: Update to support installing multiple kernels

2018-02-28 Thread California Sullivan
mmands, and we'll search for common kernel names to copy into our boot directory. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/initrdscripts/f

[OE-core] [PATCH v3 07/21] grub-efi*.bbclass: don't reference vmlinuz

2018-02-28 Thread California Sullivan
Rather than renaming the kernel to vmlinuz and assuming the name is vmlinuz in the grub.cfg, copy to ${KERNEL_IMAGETYPE} and also use that value in the grub.cfg file. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 4 +++- meta/classes/grub-efi.bbclass | 2 +- 2

[OE-core] [PATCH v3 12/21] systemd: add systemd-bootconf recipe

2018-02-28 Thread California Sullivan
Reuses our systemd-boot-cfg bbclass to generate systemd-boot configuration files. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd

[OE-core] [PATCH v3 16/21] init-install.sh: support multiple kernels and don't assume vmlinuz

2018-02-28 Thread California Sullivan
Since kernels will not necessarily be installed as vmlinuz anymore, don't assume that's its name for either the bootloader config or the copy of the kernel. Also, allow installing multiple kernels by searching for common kernel names. Signed-off-by: California Sullivan --- .../ini

[OE-core] [PATCH v3 20/21] systemd-boot-cfg.bbclass: Don't reference or set OVERRIDES

2018-02-28 Thread California Sullivan
sh to change. Signed-off-by: California Sullivan --- meta/classes/systemd-boot-cfg.bbclass | 5 - 1 file changed, 5 deletions(-) diff --git a/meta/classes/systemd-boot-cfg.bbclass b/meta/classes/systemd-boot-cfg.bbclass index 360c86cbd34..107758548c6 100644 --- a/meta/classes/systemd

[OE-core] [PATCH v3 14/21] systemd-boot: add package that installs to boot

2018-02-28 Thread California Sullivan
If the EFI_PROVIDER is systemd-boot, install as boot(x64|ia32) as per convention. If its not the EFI_PROVIDER, install as systemd-boot(x64|ia32), as to not collide with other possible bootloaders. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-boot_234.bb | 28

[OE-core] [PATCH v3 17/21] layer.conf: add -bootconf recipes to SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS

2018-02-28 Thread California Sullivan
The bootloaders depend on these to be functional in the non-deploy case, but changes in them don't require rebuilding of the packages. Signed-off-by: California Sullivan --- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/layer.conf b/meta/conf/layer

[OE-core] [PATCH v3 19/21] grub-efi-cfg.bbclass: Don't reference or set OVERRIDES

2018-02-28 Thread California Sullivan
sh to change. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 6 -- 1 file changed, 6 deletions(-) diff --git a/meta/classes/grub-efi-cfg.bbclass b/meta/classes/grub-efi-cfg.bbclass index 85173c91fc3..d2226af97a7 100644 --- a/meta/classes/grub-efi-cfg.bbclass +++ b

[OE-core] [PATCH v3 18/21] selftests: Add test case for booting a generic EFI boot partition image

2018-02-28 Thread California Sullivan
Simple test case that adds 'efi' to MACHINE_FEATURES, sets WKS_FILE to "efi-bootdisk.wks.in", installed required boot items, and attempts to boot the wic image. Quick check to make sure that the feature actually works. Signed-off-by: California Sullivan --- meta/lib

[OE-core] [PATCH v3 01/21] grub-efi.bbclass: split out configuration portion

2018-02-28 Thread California Sullivan
This part is useful on its own, whereas the whole class together is specific for image-live. Signed-off-by: California Sullivan --- .../{grub-efi.bbclass => grub-efi-cfg.bbclass} | 40 --- meta/classes/grub-efi.bbclass | 122 + 2 files chan

[OE-core] [PATCH v3 03/21] grub-efi: install to /boot/

2018-02-28 Thread California Sullivan
Since /boot/ will be recipe/package controlled now we can't just deploy. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 +- meta/recipes-bsp/grub/grub-efi_2.02.bb | 34 +++-- 2 files changed, 28 insertions(+), 8 dele

[OE-core] [PATCH v3 21/21] maintainers.inc: add myself as -bootconf recipe maintainer

2018-02-28 Thread California Sullivan
Signed-off-by: California Sullivan --- meta/conf/distro/include/maintainers.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/distro/include/maintainers.inc b/meta/conf/distro/include/maintainers.inc index 50392487903..ba5e6137e77 100644 --- a/meta/conf/distro/include

[OE-core] [PATCH v3 05/21] packagegroup-core-boot: add bootloader to EFI systems

2018-02-28 Thread California Sullivan
occur. Signed-off-by: California Sullivan --- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 04bc0f

[OE-core] [PATCH v3 06/21] live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL

2018-02-28 Thread California Sullivan
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be statically installing the kernel as vmlinuz. Signed-off-by: California Sullivan --- meta/classes/live-vm-common.bbclass | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta/classes/li

[OE-core] [PATCH v3 00/21] EFI image enhancements

2018-02-28 Thread California Sullivan
test case that leverages the generic EFI boot partition. V3 changes: * Autobuilder testing revealed two failing tests with this patchset: https://autobuilder.yocto.io/builders/nightly-oe-selftest/builds/858/steps/Running%20oe-selftest/logs/stdio Patches 19-21 fix these. California Sulliv

[OE-core] [PATCH v3 04/21] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2018-02-28 Thread California Sullivan
This way we could theoretically support multiple bootloaders, and we keep the convention of boot(x64|ia32). Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meta/recipes-bsp/grub/grub

[OE-core] [PATCH v3 02/21] grub: create recipe for configuration

2018-02-28 Thread California Sullivan
This makes use of the grub-efi-cfg bbclass that was split out to create a grub.cfg file just like the old one. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 29 + 1 file changed, 29 insertions(+) create mode 100644 meta/recipes

[OE-core] [PATCH v2 14/18] systemd-boot: add package that installs to boot

2018-02-27 Thread California Sullivan
If the EFI_PROVIDER is systemd-boot, install as boot(x64|ia32) as per convention. If its not the EFI_PROVIDER, install as systemd-boot(x64|ia32), as to not collide with other possible bootloaders. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-boot_234.bb | 28

[OE-core] [PATCH v2 18/18] selftests: Add test case for booting a generic EFI boot partition image

2018-02-27 Thread California Sullivan
Simple test case that adds 'efi' to MACHINE_FEATURES, sets WKS_FILE to "efi-bootdisk.wks.in", installed required boot items, and attempts to boot the wic image. Quick check to make sure that the feature actually works. Signed-off-by: California Sullivan --- meta/lib

[OE-core] [PATCH v2 11/18] systemd-boot.bbclass: break out configuration creation

2018-02-27 Thread California Sullivan
This class is useful on its own and can be used to create configuration recipes. Signed-off-by: California Sullivan --- ...stemd-boot.bbclass => systemd-boot-cfg.bbclass} | 57 -- meta/classes/systemd-boot.bbclass | 70 +- 2 files changed

[OE-core] [PATCH v2 17/18] layer.conf: add -bootconf recipes to SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS

2018-02-27 Thread California Sullivan
The bootloaders depend on these to be functional in the non-deploy case, but changes in them don't require rebuilding of the packages. Signed-off-by: California Sullivan --- meta/conf/layer.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/layer.conf b/meta/conf/layer

[OE-core] [PATCH v2 09/18] init-install-efi.sh: Update to support installing multiple kernels

2018-02-27 Thread California Sullivan
mmands, and we'll search for common kernel names to copy into our boot directory. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/initrdscripts/f

[OE-core] [PATCH v2 16/18] init-install.sh: support multiple kernels and don't assume vmlinuz

2018-02-27 Thread California Sullivan
Since kernels will not necessarily be installed as vmlinuz anymore, don't assume that's its name for either the bootloader config or the copy of the kernel. Also, allow installing multiple kernels by searching for common kernel names. Signed-off-by: California Sullivan --- .../ini

[OE-core] [PATCH v2 08/18] wic: add wks file to make use of exclude-path functionality

2018-02-27 Thread California Sullivan
Using --exclude-path and a wks.in file we can create an image that takes the /boot/ directory for the boot partition, has an empty /boot/ directory in the rootfs partition. The boot partition gets mounted to /boot/ after startup. Signed-off-by: California Sullivan --- scripts/lib/wic/canned-wks

[OE-core] [PATCH v2 10/18] syslinux.bbclass: don't use vmlinuz

2018-02-27 Thread California Sullivan
We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/syslinux.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bb

[OE-core] [PATCH v2 12/18] systemd: add systemd-bootconf recipe

2018-02-27 Thread California Sullivan
Reuses our systemd-boot-cfg bbclass to generate systemd-boot configuration files. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd

[OE-core] [PATCH v2 15/18] packagegroup-core-boot: add kernel for EFI systems

2018-02-27 Thread California Sullivan
Previously this wasn't needed because the kernel was added at image creation time to the boot partition. Now that the boot partition is created from the /boot/ partition of the rootfs, it needs to be installed there. Signed-off-by: California Sullivan --- meta/recipes-core/packageg

[OE-core] [PATCH v2 05/18] packagegroup-core-boot: add bootloader to EFI systems

2018-02-27 Thread California Sullivan
occur. Signed-off-by: California Sullivan --- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 04bc0f

[OE-core] [PATCH v2 04/18] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2018-02-27 Thread California Sullivan
This way we could theoretically support multiple bootloaders, and we keep the convention of boot(x64|ia32). Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meta/recipes-bsp/grub/grub

[OE-core] [PATCH v2 13/18] systemd-boot*.bbclass: Don't use vmlinuz

2018-02-27 Thread California Sullivan
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/systemd-boot-cfg.bbclass | 6 +- meta/classes/systemd-boot.bbclass | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/systemd

[OE-core] [PATCH v2 07/18] grub-efi*.bbclass: don't reference vmlinuz

2018-02-27 Thread California Sullivan
Rather than renaming the kernel to vmlinuz and assuming the name is vmlinuz in the grub.cfg, copy to ${KERNEL_IMAGETYPE} and also use that value in the grub.cfg file. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 4 +++- meta/classes/grub-efi.bbclass | 2 +- 2

[OE-core] [PATCH v2 06/18] live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL

2018-02-27 Thread California Sullivan
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be statically installing the kernel as vmlinuz. Signed-off-by: California Sullivan --- meta/classes/live-vm-common.bbclass | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta/classes/li

[OE-core] [PATCH v2 00/18] EFI image enhancements

2018-02-27 Thread California Sullivan
ROOT is now overridable. Woops. * Fix fixup in 'systemd-boot: add package that installs to boot' that belonged in the systemd-bootconf recipe patch. * Add -bootconf recipes to SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS to avoid rebuilding grub-efi/systemd-boot when not necessary. * Add basic te

[OE-core] [PATCH v2 03/18] grub-efi: install to /boot/

2018-02-27 Thread California Sullivan
Since /boot/ will be recipe/package controlled now we can't just deploy. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 +- meta/recipes-bsp/grub/grub-efi_2.02.bb | 34 +++-- 2 files changed, 28 insertions(+), 8 dele

[OE-core] [PATCH v2 01/18] grub-efi.bbclass: split out configuration portion

2018-02-27 Thread California Sullivan
This part is useful on its own, whereas the whole class together is specific for image-live. Signed-off-by: California Sullivan --- .../{grub-efi.bbclass => grub-efi-cfg.bbclass} | 40 --- meta/classes/grub-efi.bbclass | 122 + 2 files chan

[OE-core] [PATCH v2 02/18] grub: create recipe for configuration

2018-02-27 Thread California Sullivan
This makes use of the grub-efi-cfg bbclass that was split out to create a grub.cfg file just like the old one. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 29 + 1 file changed, 29 insertions(+) create mode 100644 meta/recipes

[OE-core] [PATCH 16/16] init-install.sh: support multiple kernels and don't assume vmlinuz

2018-02-26 Thread California Sullivan
Since kernels will not necessarily be installed as vmlinuz anymore, don't assume that's its name for either the bootloader config or the copy of the kernel. Also, allow installing multiple kernels by searching for common kernel names. Signed-off-by: California Sullivan --- .../ini

[OE-core] [PATCH 14/16] systemd-boot: add package that installs to boot

2018-02-26 Thread California Sullivan
If the EFI_PROVIDER is systemd-boot, install as boot(x64|ia32) as per convention. If its not the EFI_PROVIDER, install as systemd-boot(x64|ia32), as to not collide with other possible bootloaders. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-boot_234.bb | 28

[OE-core] [PATCH 15/16] packagegroup-core-boot: add kernel for EFI systems

2018-02-26 Thread California Sullivan
Previously this wasn't needed because the kernel was added at image creation time to the boot partition. Now that the boot partition is created from the /boot/ partition of the rootfs, it needs to be installed there. Signed-off-by: California Sullivan --- meta/recipes-core/packageg

[OE-core] [PATCH 11/16] systemd-boot.bbclass: break out configuration creation

2018-02-26 Thread California Sullivan
This class is useful on its own and can be used to create configuration recipes. Signed-off-by: California Sullivan --- ...stemd-boot.bbclass => systemd-boot-cfg.bbclass} | 57 -- meta/classes/systemd-boot.bbclass | 70 +- 2 files changed

[OE-core] [PATCH 12/16] systemd: add systemd-bootconf recipe

2018-02-26 Thread California Sullivan
Reuses our systemd-boot-cfg bbclass to generate systemd-boot configuration files. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 29 ++ 1 file changed, 29 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd

[OE-core] [PATCH 13/16] systemd-boot*.bbclass: Don't use vmlinuz

2018-02-26 Thread California Sullivan
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/systemd-boot-cfg.bbclass | 6 +- meta/classes/systemd-boot.bbclass | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/systemd

[OE-core] [PATCH 10/16] syslinux.bbclass: don't use vmlinuz

2018-02-26 Thread California Sullivan
We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/syslinux.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bb

[OE-core] [PATCH 09/16] init-install-efi.sh: Update to support installing multiple kernels

2018-02-26 Thread California Sullivan
mmands, and we'll search for common kernel names to copy into our boot directory. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/initrdscripts/f

[OE-core] [PATCH 08/16] wic: add wks file to make use of exclude-path functionality

2018-02-26 Thread California Sullivan
Using --exclude-path and a wks.in file we can create an image that takes the /boot/ directory for the boot partition, has an empty /boot/ directory in the rootfs partition. The boot partition gets mounted to /boot/ after startup. Signed-off-by: California Sullivan --- scripts/lib/wic/canned-wks

[OE-core] [PATCH 07/16] grub-efi*.bbclass: don't reference vmlinuz

2018-02-26 Thread California Sullivan
Rather than renaming the kernel to vmlinuz and assuming the name is vmlinuz in the grub.cfg, copy to ${KERNEL_IMAGETYPE} and also use that value in the grub.cfg file. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 4 +++- meta/classes/grub-efi.bbclass | 2 +- 2

[OE-core] [PATCH 05/16] packagegroup-core-boot: add bootloader to EFI systems

2018-02-26 Thread California Sullivan
occur. Signed-off-by: California Sullivan --- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 04bc0f

[OE-core] [PATCH 06/16] live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL

2018-02-26 Thread California Sullivan
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be statically installing the kernel as vmlinuz. Signed-off-by: California Sullivan --- meta/classes/live-vm-common.bbclass | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta/classes/li

[OE-core] [PATCH 03/16] grub-efi: install to /boot/

2018-02-26 Thread California Sullivan
Since /boot/ will be recipe/package controlled now we can't just deploy. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 2 +- meta/recipes-bsp/grub/grub-efi_2.02.bb | 34 +++-- 2 files changed, 28 insertions(+), 8 dele

[OE-core] [PATCH 04/16] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2018-02-26 Thread California Sullivan
This way we could theoretically support multiple bootloaders, and we keep the convention of boot(x64|ia32). Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meta/recipes-bsp/grub/grub

[OE-core] [PATCH 01/16] grub-efi.bbclass: split out configuration portion

2018-02-26 Thread California Sullivan
This part is useful on its own, whereas the whole class together is specific for image-live. Signed-off-by: California Sullivan --- .../{grub-efi.bbclass => grub-efi-cfg.bbclass} | 40 --- meta/classes/grub-efi.bbclass | 122 + 2 files chan

[OE-core] [PATCH 02/16] grub: create recipe for configuration

2018-02-26 Thread California Sullivan
This makes use of the grub-efi-cfg bbclass that was split out to create a grub.cfg file just like the old one. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 29 + 1 file changed, 29 insertions(+) create mode 100644 meta/recipes

[OE-core] [PATCH 00/16] EFI image enhancements

2018-02-26 Thread California Sullivan
have a contrib branch available to pull from here: https://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=clsulliv/image-creation-sda A previous iteration including the UUID stuff that's not included here is available at clsulliv/image-creation-exclude-path Thanks, Cal California Su

[OE-core] [PATCH] kernel.bbclass: set HOSTLDFLAGS in KCONFIG_CONFIG_COMMAND

2018-01-24 Thread California Sullivan
Command failed. Press any key to continue... Fix this by setting HOSTLDFLAGS to ${BUILD_LDFLAGS} in our 'make menuconfig' command. Signed-off-by: California Sullivan --- meta/classes/kernel.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/kernel.bbclass b/me

[OE-core] [PATCH] cryptodev-module: fix with kernels 4.13 and newer

2018-01-17 Thread California Sullivan
0, }, | ^ Signed-off-by: California Sullivan --- .../cryptodev/cryptodev-module_1.9.bb | 1 + .../0001-ioctl.c-Fix-build-with-linux-4.13.patch | 49 ++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-kernel/cryptodev/files/0001-ioctl.c-

[OE-core] [rocko][PATCH 4/6] initramfs-module-install: Remove allarch and FILESEXTRAPATHS

2017-12-20 Thread California Sullivan
ffe41d8cc8890d16be09e4b604a1e192) Signed-off-by: California Sullivan --- .../initrdscripts/initramfs-module-install-efi_1.0.bb | 3 --- meta/recipes-core/initrdscripts/initramfs-module-install_1.0.bb | 8 +--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/m

[OE-core] [rocko][PATCH 5/6] init-install: fix grub-install command

2017-12-20 Thread California Sullivan
The grub_version variable was calling 'grub-install -v' (verbose) instead of 'grub-install -V' (version) causing unexpected failures. Fixes bug [YOCTO #12111]. Signed-off-by: California Sullivan Signed-off-by: Ross Burton (cherry picked from commit 38dcbd96e82b1c40576a

[OE-core] [rocko][PATCH 6/6] install*.sh: add short sleep after parted commands

2017-12-20 Thread California Sullivan
evice nodes for a short duration. Signed-off-by: California Sullivan Signed-off-by: Ross Burton (cherry picked from commit 9daafd49b448122e35d67a1637ce2212793a4dc5) Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 7 +++ meta/recipes

[OE-core] [rocko][PATCH 1/6] initramfs-module-install-efi: point to original copy and delete new file

2017-12-20 Thread California Sullivan
There is no need to maintain two of the exact same files. Signed-off-by: California Sullivan Signed-off-by: Ross Burton (cherry picked from commit 49ba882be9e28a51651a543779e6f02d33861393) Signed-off-by: California Sullivan --- .../initramfs-framework/install-efi.sh | 276

[OE-core] [rocko][PATCH 3/6] initramfs-framework: add install module

2017-12-20 Thread California Sullivan
The non-EFI counterpart for installation was previously missing for initramfs-framework. This simply puts the normal install script in the correct location for initramfs-framework to make use of it. Partial fix for [YOCTO #12346]. Signed-off-by: California Sullivan Signed-off-by: Ross Burton

[OE-core] [rocko][PATCH 0/6] backport installer fixes for rocko

2017-12-20 Thread California Sullivan
e! Thanks, Cal California Sullivan (5): initramfs-module-install-efi: point to original copy and delete new file initramfs-module-install-efi: update summary initramfs-framework: add install module init-install: fix grub-install command install*.sh: add short sleep after parted commands

[OE-core] [rocko][PATCH 2/6] initramfs-module-install-efi: update summary

2017-12-20 Thread California Sullivan
Note that this is an installation option for EFI systems. Signed-off-by: California Sullivan Signed-off-by: Ross Burton (cherry picked from commit 366ddd22245a72df4c8e561761c6df8a6654bba6) Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/initramfs-module-install-efi_1.0

[OE-core] [PATCH RFC 16/18] systemd-boot*.bbclass: Don't use vmlinuz

2017-12-19 Thread California Sullivan
We can't guarantee vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/systemd-boot-cfg.bbclass | 6 +- meta/classes/systemd-boot.bbclass | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/systemd

[OE-core] [PATCH RFC 11/18] wic: add wks file to make use of new bootfs functionality

2017-12-19 Thread California Sullivan
With the postprocess command and installation into /boot/ in place, we can use wic to create an EFI-compatible image without it having any knowledge of the kernel or bootloader. Signed-off-by: California Sullivan --- scripts/lib/wic/canned-wks/efi-bootdisk.wks.in | 6 ++ 1 file changed, 6

[OE-core] [PATCH RFC 13/18] syslinux.bbclass: don't use vmlinuz

2017-12-19 Thread California Sullivan
We can't guarantee the kernel will be named vmlinuz anymore. Use KERNEL_IMAGETYPE instead. Signed-off-by: California Sullivan --- meta/classes/syslinux.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bb

[OE-core] [PATCH RFC 14/18] systemd-boot.bbclass: break out configuration creation

2017-12-19 Thread California Sullivan
This class is useful on its own and can be used to create configuration recipes. Signed-off-by: California Sullivan --- ...stemd-boot.bbclass => systemd-boot-cfg.bbclass} | 57 -- meta/classes/systemd-boot.bbclass | 70 +- 2 files changed

[OE-core] [PATCH RFC 06/18] grub-efi: if installed and EFI_PROVIDER, install as bootx64 or bootia32

2017-12-19 Thread California Sullivan
This way we could theoretically support multiple bootloaders, and we keep the convention of boot(x64|ia32). Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-efi_2.02.bb | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/meta/recipes-bsp/grub/grub

[OE-core] [PATCH RFC 12/18] init-install-efi.sh: Update to support installing multiple kernels

2017-12-19 Thread California Sullivan
mmands, and we'll search for common kernel names to copy into our boot directory. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 15 ++- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/meta/recipes-core/initrdscripts/f

[OE-core] [PATCH RFC 03/18] grub-efi.bbclass: split out configuration portion

2017-12-19 Thread California Sullivan
This part is useful on its own, whereas the whole class together is specific for image-live. Signed-off-by: California Sullivan --- .../{grub-efi.bbclass => grub-efi-cfg.bbclass} | 40 --- meta/classes/grub-efi.bbclass | 122 + 2 files chan

[OE-core] [PATCH RFC 04/18] grub: create recipe for configuration

2017-12-19 Thread California Sullivan
This makes use of the grub-efi-cfg bbclass that was split out to create a grub.cfg file just like the old one. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-bootconf_1.00.bb | 30 + 1 file changed, 30 insertions(+) create mode 100644 meta/recipes

[OE-core] [PATCH RFC 02/18] image.bbclass: Add fs-uuid bbclass

2017-12-19 Thread California Sullivan
This gives the class access to the DISK_SIGNATURE_UUID variable. Signed-off-by: California Sullivan --- meta/classes/image.bbclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ec940a4b659..38709691721 100644 --- a/meta

[OE-core] [PATCH RFC 18/18] packagegroup-core-boot: add kernel for EFI systems

2017-12-19 Thread California Sullivan
Previously this wasn't needed because the kernel was added at image creation time to the boot partition. Now that the boot partition is created from the /boot/ partition of the rootfs, it needs to be installed there. Signed-off-by: California Sullivan --- meta/recipes-core/packageg

[OE-core] [PATCH RFC 08/18] packagegroup-core-boot: add bootloader to EFI systems

2017-12-19 Thread California Sullivan
occur. Signed-off-by: California Sullivan --- meta/recipes-core/packagegroups/packagegroup-core-boot.bb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meta/recipes-core/packagegroups/packagegroup-core-boot.bb b/meta/recipes-core/packagegroups/packagegroup-core-boot.bb index 04bc0f

[OE-core] [PATCH RFC 07/18] rootfs-postcommands: add rootfs postprocess command to avoid /boot/ duplication

2017-12-19 Thread California Sullivan
EFI systems need their /boot/ directory in its own partition. By splitting it into its own directory like this, we avoid /boot/ ending up in the primary rootfs, and can easily create the EFI partition from the IMAGE_BOOTFS directory. Signed-off-by: California Sullivan --- meta/classes/rootfs

[OE-core] [PATCH RFC 01/18] fs-uuid.bbclass: rewrite get_fs_uuid function

2017-12-19 Thread California Sullivan
I couldn't find anywhere it was being used, and in trying to use it it just spit out an error. It now generates a random UUID and puts it in the deploy dir for consumption. Also use DISK_SIGNATURE_UUID for the replacement function, since that is user-overridable. Signed-off-by: Calif

[OE-core] [PATCH RFC 10/18] grub-efi*.bbclass: don't reference vmlinuz

2017-12-19 Thread California Sullivan
Rather than renaming the kernel to vmlinuz and assuming the name is vmlinuz in the grub.cfg, copy to ${KERNEL_IMAGETYPE} and also use that value in the grub.cfg file. Signed-off-by: California Sullivan --- meta/classes/grub-efi-cfg.bbclass | 4 +++- meta/classes/grub-efi.bbclass | 2 +- 2

[OE-core] [PATCH RFC 17/18] systemd-boot: add package that installs to boot

2017-12-19 Thread California Sullivan
If the EFI_PROVIDER is systemd-boot, install as boot(x64|ia32) as per convention. If its not the EFI_PROVIDER, install as systemd-boot(x64|ia32), as to not collide with other possible bootloaders. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-boot_234.bb | 28

[OE-core] [PATCH RFC 05/18] grub-efi: install to /boot/

2017-12-19 Thread California Sullivan
Since /boot/ will be recipe/package controlled now we can't just deploy. Signed-off-by: California Sullivan --- meta/recipes-bsp/grub/grub-efi_2.02.bb | 32 +--- 1 file changed, 25 insertions(+), 7 deletions(-) diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.

[OE-core] [PATCH RFC 15/18] systemd: add systemd-bootconf recipe

2017-12-19 Thread California Sullivan
Reuses our systemd-boot-cfg bbclass to generate systemd-boot configuration files. Signed-off-by: California Sullivan --- meta/recipes-core/systemd/systemd-bootconf_1.00.bb | 31 ++ 1 file changed, 31 insertions(+) create mode 100644 meta/recipes-core/systemd/systemd

[OE-core] [PATCH RFC 00/18] EFI boot partition improvements

2017-12-19 Thread California Sullivan
rations to get right, so please any feedback is welcome. Thanks, Cal California Sullivan (18): fs-uuid.bbclass: rewrite get_fs_uuid function image.bbclass: Add fs-uuid bbclass grub-efi.bbclass: split out configuration portion grub: create recipe for configuration grub-efi: install to /

[OE-core] [PATCH RFC 09/18] live-vm-common.bbclass: Don't use vmlinuz or VM_DEFAULT_KERNEL

2017-12-19 Thread California Sullivan
I can't find VM_DEFAULT_KERNEL used anywhere else, and we should not be statically installing the kernel as vmlinuz. Signed-off-by: California Sullivan --- meta/classes/live-vm-common.bbclass | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/meta/classes/li

[OE-core] [PATCH] core-image-minimal-initramfs: use initramfs-framework for initialization

2017-12-19 Thread California Sullivan
uced a new INITRAMFS_SCRIPTS variable to the core-image-minimal-initramfs recipe. This variable makes the recipe look much cleaner, and also allows easier replacement or additions to the scripts. Fixes [YOCTO #10987]. Signed-off-by: California Sullivan --- meta/recipes-core/images/core-ima

[OE-core] [PATCH v2 2/2] install*.sh: add short sleep after parted commands

2017-11-21 Thread California Sullivan
evice nodes for a short duration. Signed-off-by: California Sullivan --- v2: sleep conditionally for up to three seconds instead of one second unconditionally. This makes it so if the device nodes are available immediately, people don't have to wait, but a system has up to three seconds to c

[OE-core] [PATCH 1/2] init-install: fix grub-install command

2017-11-21 Thread California Sullivan
The grub_version variable was calling 'grub-install -v' (verbose) instead of 'grub-install -V' (version) causing unexpected failures. Fixes bug [YOCTO #12111]. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install.sh | 2 +- 1 file change

[OE-core] [PATCH 2/2] install*.sh: add short sleep after parted commands

2017-11-21 Thread California Sullivan
sleep before doing the mkfs commands. Signed-off-by: California Sullivan --- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 2 ++ meta/recipes-core/initrdscripts/files/init-install.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/meta/recipes-core/initrdscripts/files

[OE-core] [PATCHi 3/3 V3] initramfs-framework: add install module

2017-11-14 Thread California Sullivan
The non-EFI counterpart for installation was previously missing for initramfs-framework. This simply puts the normal install script in the correct location for initramfs-framework to make use of it. Partial fix for [YOCTO #12346]. Signed-off-by: California Sullivan --- V2 changes: * Add the

[OE-core] [PATCH 3/3 V2] initramfs-framework: add install module

2017-11-14 Thread California Sullivan
The non-EFI counterpart for installation was previously missing for initramfs-framework. This simply puts the normal install script in the correct location for initramfs-framework to make use of it. Signed-off-by: California Sullivan --- V2 changes: * Add the module's dependenci

[OE-core] [PATCH 3/3] initramfs-framework: add install module

2017-11-14 Thread California Sullivan
The non-EFI counterpart for installation was previously missing for initramfs-framework. This simply puts the normal install script in the correct location for initramfs-framework to make use of it. Partial fix for [YOCTO #12346]. Signed-off-by: California Sullivan --- .../initrdscripts

  1   2   >