diff options
author | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2021-07-14 22:45:54 +0200 |
---|---|---|
committer | Alexandru Avadanii <Alexandru.Avadanii@enea.com> | 2021-07-14 22:49:17 +0200 |
commit | e2e18bb98d6cd3838aaf1cbbfca7f6cb288258cc (patch) | |
tree | ef44deeb2fcbef11b0e3d1062d9ef05f0cbfece4 | |
parent | b5501506eb6861740e22b61dc1a1a4188be32162 (diff) | |
parent | 3273f76dc7be0487d804046dc3bcb6f775faa09d (diff) | |
download | meta-nfv-access-bsp-x86-e2e18bb98d6cd3838aaf1cbbfca7f6cb288258cc.tar.gz |
Merge branch 'feature_CPDX-3405'
Change-Id: I0a2ba49c597f6c686815f2ce357a78c53bb1537b
-rw-r--r-- | conf/layer.conf | 1 | ||||
-rw-r--r-- | conf/machine/atom-c3000.conf | 4 | ||||
-rw-r--r-- | conf/machine/qemux86-64-corei7.conf | 3 | ||||
-rw-r--r-- | conf/machine/xeon-d.conf | 4 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-intel-guest_5.10.bb | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-intel-host_4.14.bb | 1 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-intel-host_5.10.bb (renamed from recipes-kernel/linux/linux-intel-guest_4.14.bb) | 0 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-intel.inc | 46 |
8 files changed, 46 insertions, 15 deletions
diff --git a/conf/layer.conf b/conf/layer.conf index 3f460a6..81f6cb4 100644 --- a/conf/layer.conf +++ b/conf/layer.conf | |||
@@ -10,6 +10,7 @@ BBFILE_COLLECTIONS += "nfv-access-bsp-x86" | |||
10 | BBFILE_PATTERN_nfv-access-bsp-x86 = "^${LAYERDIR}/" | 10 | BBFILE_PATTERN_nfv-access-bsp-x86 = "^${LAYERDIR}/" |
11 | BBFILE_PRIORITY_nfv-access-bsp-x86 = "6" | 11 | BBFILE_PRIORITY_nfv-access-bsp-x86 = "6" |
12 | LAYERDEPENDS_nfv-access-bsp-x86 = "intel" | 12 | LAYERDEPENDS_nfv-access-bsp-x86 = "intel" |
13 | LAYERSERIES_COMPAT_nfv-access-bsp-x86 = "hardknott" | ||
13 | 14 | ||
14 | # change qemux86-64 arch from core2 to corei7 | 15 | # change qemux86-64 arch from core2 to corei7 |
15 | require conf/machine/qemux86-64-corei7.conf | 16 | require conf/machine/qemux86-64-corei7.conf |
diff --git a/conf/machine/atom-c3000.conf b/conf/machine/atom-c3000.conf index 9ce89bd..90b9794 100644 --- a/conf/machine/atom-c3000.conf +++ b/conf/machine/atom-c3000.conf | |||
@@ -11,7 +11,7 @@ | |||
11 | # Soft set linux-yocto as preferred kernel like x86-base.inc | 11 | # Soft set linux-yocto as preferred kernel like x86-base.inc |
12 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-host" | 12 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-host" |
13 | PREFERRED_PROVIDER_virtual/kernel_poky-tiny ?= "linux-intel-host" | 13 | PREFERRED_PROVIDER_virtual/kernel_poky-tiny ?= "linux-intel-host" |
14 | PREFERRED_VERSION_linux-intel-host ?= "4.14%" | 14 | PREFERRED_VERSION_linux-intel-host ?= "5.10%" |
15 | 15 | ||
16 | MACHINE_FEATURES += "pcbios efi" | 16 | MACHINE_FEATURES += "pcbios efi" |
17 | 17 | ||
@@ -45,3 +45,5 @@ XSERVER ?= "${XSERVER_X86_BASE} \ | |||
45 | 45 | ||
46 | SYSLINUX_OPTS = "serial 0 115200" | 46 | SYSLINUX_OPTS = "serial 0 115200" |
47 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyS2" | 47 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyS2" |
48 | |||
49 | SOTA_MACHINE ?= "${MACHINE}" | ||
diff --git a/conf/machine/qemux86-64-corei7.conf b/conf/machine/qemux86-64-corei7.conf index 8f4bc1f..4f6e807 100644 --- a/conf/machine/qemux86-64-corei7.conf +++ b/conf/machine/qemux86-64-corei7.conf | |||
@@ -32,3 +32,6 @@ BASE_LIB_tune-corei7-64-x32 = "libx32" | |||
32 | TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32" | 32 | TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32" |
33 | PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32" | 33 | PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32" |
34 | QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false" | 34 | QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false" |
35 | |||
36 | # wic image type builds all possible bootloaders (systemd-boot, grub-efi), remove unused ones | ||
37 | WKS_FILE_DEPENDS_BOOTLOADERS_remove_qemux86-64 = "grub-efi systemd-boot" | ||
diff --git a/conf/machine/xeon-d.conf b/conf/machine/xeon-d.conf index bfa6322..07e4bf8 100644 --- a/conf/machine/xeon-d.conf +++ b/conf/machine/xeon-d.conf | |||
@@ -9,7 +9,7 @@ | |||
9 | # Soft set linux-yocto as preferred kernel like x86-base.inc | 9 | # Soft set linux-yocto as preferred kernel like x86-base.inc |
10 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-host" | 10 | PREFERRED_PROVIDER_virtual/kernel ?= "linux-intel-host" |
11 | PREFERRED_PROVIDER_virtual/kernel_poky-tiny ?= "linux-intel-host" | 11 | PREFERRED_PROVIDER_virtual/kernel_poky-tiny ?= "linux-intel-host" |
12 | PREFERRED_VERSION_linux-intel ?= "4.14%" | 12 | PREFERRED_VERSION_linux-intel ?= "5.10%" |
13 | 13 | ||
14 | MACHINE_FEATURES += "pcbios efi" | 14 | MACHINE_FEATURES += "pcbios efi" |
15 | 15 | ||
@@ -44,3 +44,5 @@ XSERVER ?= "${XSERVER_X86_BASE} \ | |||
44 | SYSLINUX_OPTS = "serial 0 115200" | 44 | SYSLINUX_OPTS = "serial 0 115200" |
45 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyS2" | 45 | SERIAL_CONSOLES = "115200;ttyS0 115200;ttyS1 115200;ttyS2" |
46 | APPEND += "rootwait console=ttyS0,115200 console=tty0" | 46 | APPEND += "rootwait console=ttyS0,115200 console=tty0" |
47 | |||
48 | SOTA_MACHINE ?= "${MACHINE}" | ||
diff --git a/recipes-kernel/linux/linux-intel-guest_5.10.bb b/recipes-kernel/linux/linux-intel-guest_5.10.bb new file mode 100644 index 0000000..1a18a37 --- /dev/null +++ b/recipes-kernel/linux/linux-intel-guest_5.10.bb | |||
@@ -0,0 +1,2 @@ | |||
1 | COMPATIBLE_MACHINE ?= "(qemux86-64)" | ||
2 | require linux-intel.inc | ||
diff --git a/recipes-kernel/linux/linux-intel-host_4.14.bb b/recipes-kernel/linux/linux-intel-host_4.14.bb deleted file mode 100644 index 6be0508..0000000 --- a/recipes-kernel/linux/linux-intel-host_4.14.bb +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | require linux-intel.inc | ||
diff --git a/recipes-kernel/linux/linux-intel-guest_4.14.bb b/recipes-kernel/linux/linux-intel-host_5.10.bb index 6be0508..6be0508 100644 --- a/recipes-kernel/linux/linux-intel-guest_4.14.bb +++ b/recipes-kernel/linux/linux-intel-host_5.10.bb | |||
diff --git a/recipes-kernel/linux/linux-intel.inc b/recipes-kernel/linux/linux-intel.inc index d0b951a..c29d9f9 100644 --- a/recipes-kernel/linux/linux-intel.inc +++ b/recipes-kernel/linux/linux-intel.inc | |||
@@ -1,14 +1,36 @@ | |||
1 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-intel:" | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/linux-intel:" |
2 | require common/recipes-kernel/linux/linux-intel_4.14.bb | 2 | |
3 | require recipes-kernel/linux/linux-intel_5.10.bb | ||
3 | require recipes-kernel/linux/linux-deploy-kconfig.inc | 4 | require recipes-kernel/linux/linux-deploy-kconfig.inc |
4 | require recipes-kernel/linux/linux-common-config.inc | 5 | require recipes-kernel/linux/linux-common-config.inc |
5 | 6 | ||
6 | LINUX_VERSION = "4.14.123" | 7 | SRCREV_metaenea = "347e8b9d3feaddfdc37505b5d4eccfb216307e64" |
7 | SRCREV_machine = "6aab3d561d738f3ceb9230a828b3f0b1ed5e98a3" | 8 | KENEABRANCH = "intel-5.10" |
8 | SRCREV_metaenea = "7a93e54032bb148a92e16b59736a1b76fedae319" | ||
9 | KENEABRANCH = "intel-4.14" | ||
10 | SRC_URI_append = " git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-meta" | 9 | SRC_URI_append = " git://git@git.enea.com/linux/enea-kernel-cache.git;protocol=ssh;type=kmeta;name=metaenea;branch=${KENEABRANCH};destsuffix=enea-kernel-meta" |
11 | 10 | ||
11 | # Upstream BSPs include aufs support (by patching the kernel source + enabling it in kernel config). | ||
12 | # However, our current kernel version contains a backported commit that conflicts with aufs patches. | ||
13 | # Until aufs patches are rebased in yocto-kernel-cache, disable aufs kernel source patching, since | ||
14 | # we don't enable it via kernel config anyway. | ||
15 | do_kernel_metadata_prepend() { | ||
16 | ## ENEA_start ## | ||
17 | # kernel-meta patching via patch files added to SRC_URI is currently broken, handle it here | ||
18 | sed -i -E 's/^(include features.aufs.*)$/# \1/g' ${WORKDIR}/kernel-meta/ktypes/standard/standard.scc | ||
19 | ## ENEA_end ## | ||
20 | } | ||
21 | |||
22 | # Allow BSPs to supply patches without explicitly adding the scc files to SRC_URI/KERNEL_FEATURES | ||
23 | KMETA_EXTERNAL_BSPS = "t" | ||
24 | |||
25 | # KERNEL CONFIG DEFAULT CHECK LEVELS: | ||
26 | # 0: no reporting | ||
27 | # 1: report options that are specified, but not in the final config | ||
28 | # 2: report options that are not hardware related, but set by a BSP | ||
29 | # KCONF_AUDIT_LEVEL="1" | ||
30 | # KCONF_BSP_AUDIT_LEVEL="2" | ||
31 | # KMETA_AUDIT="yes" | ||
32 | # KMETA_AUDIT_WERROR="" | ||
33 | |||
12 | KERNEL_FEATURES_append_atom-c3000 = " bsp/atom-c3000/atom-c3000.scc" | 34 | KERNEL_FEATURES_append_atom-c3000 = " bsp/atom-c3000/atom-c3000.scc" |
13 | 35 | ||
14 | KERNEL_FEATURES_append = " features/apic/x2apic_y.scc" | 36 | KERNEL_FEATURES_append = " features/apic/x2apic_y.scc" |
@@ -22,7 +44,7 @@ KERNEL_FEATURES_append = " features/blkdev/net_blk_dev.scc" | |||
22 | KERNEL_FEATURES_append = " features/blkdev/ramdisk_blk_dev.scc" | 44 | KERNEL_FEATURES_append = " features/blkdev/ramdisk_blk_dev.scc" |
23 | 45 | ||
24 | # Intel 10G ports(SoC) | 46 | # Intel 10G ports(SoC) |
25 | KERNEL_FEATURES_append_corei7-64-intel-common = " features/dca/dca_y.scc" | 47 | KERNEL_FEATURES_append_x86-64 = " features/dca/dca_y.scc" |
26 | 48 | ||
27 | # NMVe SSD | 49 | # NMVe SSD |
28 | KERNEL_FEATURES_append = " features/nvme/nvme.scc" | 50 | KERNEL_FEATURES_append = " features/nvme/nvme.scc" |
@@ -31,14 +53,14 @@ KERNEL_FEATURES_append = " features/nvme/nvme.scc" | |||
31 | KERNEL_FEATURES_append = " features/ipmi/ipmi.scc" | 53 | KERNEL_FEATURES_append = " features/ipmi/ipmi.scc" |
32 | KERNEL_FEATURES_append = " features/ipmi/ipmi_ssif.scc" | 54 | KERNEL_FEATURES_append = " features/ipmi/ipmi_ssif.scc" |
33 | 55 | ||
56 | # ACPI Tiny power button | ||
57 | KERNEL_FEATURES_append = " features/acpi/acpi_tiny_pwrbtn_y.scc" | ||
58 | |||
59 | # CPULIST: Allow using "63" as an alias for "last" in nohz_full, isolcpus etc. | ||
60 | KERNEL_FEATURES_append = " features/cpulist_abbrev/cpulist_abbrev_enea.scc" | ||
61 | |||
34 | # IPv4 waiting for carrier on | 62 | # IPv4 waiting for carrier on |
35 | KERNEL_FEATURES_append = " patches/ipv4/ipv4wait.scc" | 63 | KERNEL_FEATURES_append = " patches/ipv4/ipv4wait.scc" |
36 | 64 | ||
37 | # Fixes for kernel | ||
38 | KERNEL_FEATURES_append = " patches/security/keys.scc" | ||
39 | |||
40 | # Fixes for pci | 65 | # Fixes for pci |
41 | KERNEL_FEATURES_append = " patches/drivers/pci/quirks.scc" | 66 | KERNEL_FEATURES_append = " patches/drivers/pci/quirks.scc" |
42 | |||
43 | # Fixes for ACPI PCCT (upstream in kernel v4.18-rc1 or newer) | ||
44 | KERNEL_FEATURES_append = " patches/drivers/mailbox/acpi-pcct.scc" | ||