diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2019-03-06 11:37:11 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-03-06 16:44:37 +0000 |
commit | 0f2b2b6c9877fbffe2bffddbcb920e1d9aa63c18 (patch) | |
tree | ced4e46621157ab2ea21364a658a2971dff72a1a /meta/recipes-kernel | |
parent | c2fecb0a513cfe5ddf75bfe24e98dec15dab3adc (diff) | |
download | poky-0f2b2b6c9877fbffe2bffddbcb920e1d9aa63c18.tar.gz |
linux-yocto: introduce 5.0 versioned recipe
Introducing the 5.0 linux-yocto reference kernel, which will become
the "latest" kernel as part of the spring yocto release.
qemu* has been built and sanity tested against this kernel, and it
is suitable to become the default build for the emulated references.
Some minor configuration cleanup was performed, but otherwise, things
are very similar to the 4.19 kernel config:
7fdb966db86 (HEAD -> yocto-5.0) aufs4: kbuild patch
c76b027a8b2 iosched: remove configs for removed legacy io schedules
5d1f8102244 netfilter: drop removed config options
8ff16f508f5 kernel-yocto: 5.0 kernel prep
Feature wise, this is a match for 4.19, with yaffs2 and aufs4 being
kept around for another release. Aufs is scheduled for removal in
the fall release.
(From OE-Core rev: c802c355f02e808b29d396fcc286da6f18ce6a78)
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb | 43 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb | 32 | ||||
-rw-r--r-- | meta/recipes-kernel/linux/linux-yocto_5.0.bb | 51 |
3 files changed, 126 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb new file mode 100644 index 0000000000..b7e0e5da23 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-rt_5.0.bb | |||
@@ -0,0 +1,43 @@ | |||
1 | KBRANCH ?= "v5.0/standard/preempt-rt/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # Skip processing of this recipe if it is not explicitly specified as the | ||
6 | # PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying | ||
7 | # to build multiple virtual/kernel providers, e.g. as dependency of | ||
8 | # core-image-rt-sdk, core-image-rt. | ||
9 | python () { | ||
10 | if d.getVar("KERNEL_PACKAGE_NAME") == "kernel" and d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-yocto-rt": | ||
11 | raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it") | ||
12 | } | ||
13 | |||
14 | SRCREV_machine ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
15 | SRCREV_meta ?= "8ae7073a934d80c4f4b808bc01884777454aae8f" | ||
16 | |||
17 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ | ||
18 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}" | ||
19 | |||
20 | LINUX_VERSION ?= "5.0" | ||
21 | |||
22 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
23 | |||
24 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
25 | DEPENDS += "openssl-native util-linux-native" | ||
26 | |||
27 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
28 | |||
29 | KMETA = "kernel-meta" | ||
30 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
31 | |||
32 | LINUX_KERNEL_TYPE = "preempt-rt" | ||
33 | |||
34 | COMPATIBLE_MACHINE = "(qemux86|qemux86-64|qemuarm|qemuarm64|qemuppc|qemumips)" | ||
35 | |||
36 | KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb" | ||
37 | |||
38 | # Functionality flags | ||
39 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc features/taskstats/taskstats.scc" | ||
40 | KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" | ||
41 | KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc" | ||
42 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
43 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb new file mode 100644 index 0000000000..b95efa9306 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_5.0.bb | |||
@@ -0,0 +1,32 @@ | |||
1 | KBRANCH ?= "v5.0/standard/tiny/base" | ||
2 | KBRANCH_qemuarm ?= "v5.0/standard/tiny/arm-versatile-926ejs" | ||
3 | |||
4 | LINUX_KERNEL_TYPE = "tiny" | ||
5 | KCONFIG_MODE = "--allnoconfig" | ||
6 | |||
7 | require recipes-kernel/linux/linux-yocto.inc | ||
8 | |||
9 | LINUX_VERSION ?= "5.0" | ||
10 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
11 | |||
12 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
13 | DEPENDS += "openssl-native util-linux-native" | ||
14 | |||
15 | KMETA = "kernel-meta" | ||
16 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
17 | |||
18 | SRCREV_machine_qemuarm ?= "6da91ac9afd3b8c144760e3ceacc6a812ddfa3f6" | ||
19 | SRCREV_machine ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
20 | SRCREV_meta ?= "8ae7073a934d80c4f4b808bc01884777454aae8f" | ||
21 | |||
22 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
23 | |||
24 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \ | ||
25 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}" | ||
26 | |||
27 | COMPATIBLE_MACHINE = "qemux86|qemux86-64|qemuarm" | ||
28 | |||
29 | # Functionality flags | ||
30 | KERNEL_FEATURES = "" | ||
31 | |||
32 | KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb" | ||
diff --git a/meta/recipes-kernel/linux/linux-yocto_5.0.bb b/meta/recipes-kernel/linux/linux-yocto_5.0.bb new file mode 100644 index 0000000000..768036e298 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-yocto_5.0.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | KBRANCH ?= "v5.0/standard/base" | ||
2 | |||
3 | require recipes-kernel/linux/linux-yocto.inc | ||
4 | |||
5 | # board specific branches | ||
6 | KBRANCH_qemuarm ?= "v5.0/standard/arm-versatile-926ejs" | ||
7 | KBRANCH_qemuarm64 ?= "v5.0/standard/qemuarm64" | ||
8 | KBRANCH_qemumips ?= "v5.0/standard/mti-malta32" | ||
9 | KBRANCH_qemuppc ?= "v5.0/standard/qemuppc" | ||
10 | KBRANCH_qemux86 ?= "v5.0/standard/base" | ||
11 | KBRANCH_qemux86-64 ?= "v5.0/standard/base" | ||
12 | KBRANCH_qemumips64 ?= "v5.0/standard/mti-malta64" | ||
13 | |||
14 | SRCREV_machine_qemuarm ?= "1fbecad0e6a68b6c57b4f6ef8207e7e90ea764a3" | ||
15 | SRCREV_machine_qemuarm64 ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
16 | SRCREV_machine_qemumips ?= "d9dd6d4cfe689efd5cb7bbacd118a3888ac7c517" | ||
17 | SRCREV_machine_qemuppc ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
18 | SRCREV_machine_qemux86 ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
19 | SRCREV_machine_qemux86-64 ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
20 | SRCREV_machine_qemumips64 ?= "5f072445126e6a9e44f9435a552f4fcf6fc15499" | ||
21 | SRCREV_machine ?= "1a0da7e50b77c82841efb501c648dbaca699eac2" | ||
22 | SRCREV_meta ?= "8ae7073a934d80c4f4b808bc01884777454aae8f" | ||
23 | |||
24 | # remap qemuarm to qemuarma15 for the 5.0 kernel | ||
25 | # KMACHINE_qemuarm ?= "qemuarma15" | ||
26 | |||
27 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ | ||
28 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-5.0;destsuffix=${KMETA}" | ||
29 | |||
30 | LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" | ||
31 | LINUX_VERSION ?= "5.0" | ||
32 | |||
33 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" | ||
34 | DEPENDS += "openssl-native util-linux-native" | ||
35 | |||
36 | PV = "${LINUX_VERSION}+git${SRCPV}" | ||
37 | |||
38 | KMETA = "kernel-meta" | ||
39 | KCONF_BSP_AUDIT_LEVEL = "2" | ||
40 | |||
41 | KERNEL_DEVICETREE_qemuarm = "versatile-pb.dtb" | ||
42 | |||
43 | COMPATIBLE_MACHINE = "qemuarm|qemuarm64|qemux86|qemuppc|qemumips|qemumips64|qemux86-64" | ||
44 | |||
45 | # Functionality flags | ||
46 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" | ||
47 | KERNEL_FEATURES_append = " ${KERNEL_EXTRA_FEATURES}" | ||
48 | KERNEL_FEATURES_append_qemuall=" cfg/virtio.scc" | ||
49 | KERNEL_FEATURES_append_qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
50 | KERNEL_FEATURES_append_qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" | ||
51 | KERNEL_FEATURES_append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "" ,d)}" | ||