diff options
| author | California Sullivan <california.l.sullivan@intel.com> | 2018-03-29 17:41:08 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-31 09:48:42 +0100 |
| commit | dfd5dc1f55bd75068f2a459f67778d23cefc95a4 (patch) | |
| tree | 0347124e73925cc355fc9a3a7f33ba7efdc160c3 | |
| parent | 00cd8f2db92d504f473492dcda5ef6eaa70d200a (diff) | |
| download | poky-dfd5dc1f55bd75068f2a459f67778d23cefc95a4.tar.gz | |
default-distrovars: set default KERNEL_IMAGETYPE(S)
With the change from assuming kernels will be named "vmlinuz"
everywhere, to instead using KERNEL_IMAGETYPE, we require that
KERNEL_IMAGETYPE is set to something. Instead of setting the default in
multiple individual files, set it in default-distrovars.inc.
x86(-64) arches get bzImage 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 <armccurdy@gmail.com> for the arch defaults
part.
(From OE-Core rev: a57d784211a39587538094425ee0246e9ddfbf9d)
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/classes/grub-efi-cfg.bbclass | 1 | ||||
| -rw-r--r-- | meta/classes/live-vm-common.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/syslinux.bbclass | 1 | ||||
| -rw-r--r-- | meta/classes/systemd-boot-cfg.bbclass | 2 | ||||
| -rw-r--r-- | meta/conf/distro/include/default-distrovars.inc | 6 |
5 files changed, 6 insertions, 6 deletions
diff --git a/meta/classes/grub-efi-cfg.bbclass b/meta/classes/grub-efi-cfg.bbclass index d2226af97a..5eeee6c2e3 100644 --- a/meta/classes/grub-efi-cfg.bbclass +++ b/meta/classes/grub-efi-cfg.bbclass | |||
| @@ -22,7 +22,6 @@ GRUB_CFG_LIVE = "${S}/grub_live.cfg" | |||
| 22 | GRUB_TIMEOUT ?= "10" | 22 | GRUB_TIMEOUT ?= "10" |
| 23 | #FIXME: build this from the machine config | 23 | #FIXME: build this from the machine config |
| 24 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" | 24 | GRUB_OPTS ?= "serial --unit=0 --speed=115200 --word=8 --parity=no --stop=1" |
| 25 | KERNEL_IMAGETYPE ??= "bzImage" | ||
| 26 | 25 | ||
| 27 | EFIDIR = "/EFI/BOOT" | 26 | EFIDIR = "/EFI/BOOT" |
| 28 | GRUB_ROOT ?= "${ROOT}" | 27 | GRUB_ROOT ?= "${ROOT}" |
diff --git a/meta/classes/live-vm-common.bbclass b/meta/classes/live-vm-common.bbclass index 714d6d4788..68105d9b84 100644 --- a/meta/classes/live-vm-common.bbclass +++ b/meta/classes/live-vm-common.bbclass | |||
| @@ -32,8 +32,6 @@ PCBIOS_CLASS = "${@['','syslinux'][d.getVar('PCBIOS') == '1']}" | |||
| 32 | inherit ${EFI_CLASS} | 32 | inherit ${EFI_CLASS} |
| 33 | inherit ${PCBIOS_CLASS} | 33 | inherit ${PCBIOS_CLASS} |
| 34 | 34 | ||
| 35 | KERNEL_IMAGETYPE ??= "bzImage" | ||
| 36 | |||
| 37 | populate_kernel() { | 35 | populate_kernel() { |
| 38 | dest=$1 | 36 | dest=$1 |
| 39 | install -d $dest | 37 | install -d $dest |
diff --git a/meta/classes/syslinux.bbclass b/meta/classes/syslinux.bbclass index 959aed4fb8..031dacbf7d 100644 --- a/meta/classes/syslinux.bbclass +++ b/meta/classes/syslinux.bbclass | |||
| @@ -21,7 +21,6 @@ do_bootimg[depends] += "${MLPREFIX}syslinux:do_populate_sysroot \ | |||
| 21 | syslinux-native:do_populate_sysroot" | 21 | syslinux-native:do_populate_sysroot" |
| 22 | 22 | ||
| 23 | ISOLINUXDIR ?= "/isolinux" | 23 | ISOLINUXDIR ?= "/isolinux" |
| 24 | KERNEL_IMAGETYPE ??= "bzImage" | ||
| 25 | SYSLINUXDIR = "/" | 24 | SYSLINUXDIR = "/" |
| 26 | # The kernel has an internal default console, which you can override with | 25 | # The kernel has an internal default console, which you can override with |
| 27 | # a console=...some_tty... | 26 | # a console=...some_tty... |
diff --git a/meta/classes/systemd-boot-cfg.bbclass b/meta/classes/systemd-boot-cfg.bbclass index 107758548c..021c9f9331 100644 --- a/meta/classes/systemd-boot-cfg.bbclass +++ b/meta/classes/systemd-boot-cfg.bbclass | |||
| @@ -1,5 +1,3 @@ | |||
| 1 | KERNEL_IMAGETYPE ??= "bzImage" | ||
| 2 | |||
| 3 | SYSTEMD_BOOT_CFG ?= "${S}/loader.conf" | 1 | SYSTEMD_BOOT_CFG ?= "${S}/loader.conf" |
| 4 | SYSTEMD_BOOT_ENTRIES ?= "" | 2 | SYSTEMD_BOOT_ENTRIES ?= "" |
| 5 | SYSTEMD_BOOT_TIMEOUT ?= "10" | 3 | SYSTEMD_BOOT_TIMEOUT ?= "10" |
diff --git a/meta/conf/distro/include/default-distrovars.inc b/meta/conf/distro/include/default-distrovars.inc index 76d09af726..9620ad48de 100644 --- a/meta/conf/distro/include/default-distrovars.inc +++ b/meta/conf/distro/include/default-distrovars.inc | |||
| @@ -47,3 +47,9 @@ BB_STRICT_CHECKSUM = "1" | |||
| 47 | 47 | ||
| 48 | GTK2DISTROFEATURES = "directfb x11" | 48 | GTK2DISTROFEATURES = "directfb x11" |
| 49 | GTK3DISTROFEATURES = "x11 wayland" | 49 | GTK3DISTROFEATURES = "x11 wayland" |
| 50 | |||
| 51 | ARCH_DEFAULT_KERNELIMAGETYPE = "zImage" | ||
| 52 | ARCH_DEFAULT_KERNELIMAGETYPE_x86 = "bzImage" | ||
| 53 | ARCH_DEFAULT_KERNELIMAGETYPE_x86-64 = "bzImage" | ||
| 54 | KERNEL_IMAGETYPE ??= "${ARCH_DEFAULT_KERNELIMAGETYPE}" | ||
| 55 | KERNEL_IMAGETYPES ??= "${KERNEL_IMAGETYPE}" | ||
