Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | KBRANCH ?= "v6.1/standard/base" |
| 2 | |
| 3 | require recipes-kernel/linux/linux-yocto.inc |
| 4 | |
| 5 | # board specific branches |
| 6 | KBRANCH:qemuarm ?= "v6.1/standard/arm-versatile-926ejs" |
| 7 | KBRANCH:qemuarm64 ?= "v6.1/standard/qemuarm64" |
| 8 | KBRANCH:qemumips ?= "v6.1/standard/mti-malta32" |
| 9 | KBRANCH:qemuppc ?= "v6.1/standard/qemuppc" |
| 10 | KBRANCH:qemuriscv64 ?= "v6.1/standard/base" |
| 11 | KBRANCH:qemuriscv32 ?= "v6.1/standard/base" |
| 12 | KBRANCH:qemux86 ?= "v6.1/standard/base" |
| 13 | KBRANCH:qemux86-64 ?= "v6.1/standard/base" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 14 | KBRANCH:qemuloongarch64 ?= "v6.1/standard/base" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 15 | KBRANCH:qemumips64 ?= "v6.1/standard/mti-malta64" |
| 16 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 17 | SRCREV_machine:qemuarm ?= "ccd3b20fb504d35147d35962254b68b0041a4c6f" |
| 18 | SRCREV_machine:qemuarm64 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 19 | SRCREV_machine:qemuloongarch64 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 20 | SRCREV_machine:qemumips ?= "d60ecbda7d4de915c867f751f5c63555a14219d1" |
| 21 | SRCREV_machine:qemuppc ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 22 | SRCREV_machine:qemuriscv64 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 23 | SRCREV_machine:qemuriscv32 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 24 | SRCREV_machine:qemux86 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 25 | SRCREV_machine:qemux86-64 ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 26 | SRCREV_machine:qemumips64 ?= "2949d76c3f79f3c7f700a6366d828f006d7dd5a8" |
| 27 | SRCREV_machine ?= "1caf99d56881e1510afca553cd4a057f80479973" |
| 28 | SRCREV_meta ?= "d7393c5752865634e307673043da55e353139333" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 29 | |
| 30 | # set your preferred provider of linux-yocto to 'linux-yocto-upstream', and you'll |
| 31 | # get the <version>/base branch, which is pure upstream -stable, and the same |
| 32 | # meta SRCREV as the linux-yocto-standard builds. Select your version using the |
| 33 | # normal PREFERRED_VERSION settings. |
| 34 | BBCLASSEXTEND = "devupstream:target" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 35 | SRCREV_machine:class-devupstream ?= "68a95455c153f8adc513e5b688f4b348daa7c1b1" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 36 | PN:class-devupstream = "linux-yocto-upstream" |
| 37 | KBRANCH:class-devupstream = "v6.1/base" |
| 38 | |
| 39 | SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;name=machine;branch=${KBRANCH}; \ |
| 40 | git://git.yoctoproject.org/yocto-kernel-cache;type=kmeta;name=meta;branch=yocto-6.1;destsuffix=${KMETA}" |
| 41 | |
| 42 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 43 | LINUX_VERSION ?= "6.1.9" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 44 | |
| 45 | DEPENDS += "${@bb.utils.contains('ARCH', 'x86', 'elfutils-native', '', d)}" |
| 46 | DEPENDS += "openssl-native util-linux-native" |
| 47 | DEPENDS += "gmp-native libmpc-native" |
| 48 | |
| 49 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 50 | |
| 51 | KMETA = "kernel-meta" |
| 52 | KCONF_BSP_AUDIT_LEVEL = "1" |
| 53 | |
| 54 | KERNEL_DEVICETREE:qemuarmv5 = "versatile-pb.dtb" |
| 55 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 56 | COMPATIBLE_MACHINE = "^(qemuarm|qemuarmv5|qemuarm64|qemux86|qemuppc|qemuppc64|qemumips|qemumips64|qemux86-64|qemuriscv64|qemuriscv32|qemuloongarch64)$" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 57 | |
| 58 | # Functionality flags |
| 59 | KERNEL_EXTRA_FEATURES ?= "features/netfilter/netfilter.scc" |
| 60 | KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}" |
| 61 | KERNEL_FEATURES:append:qemuall=" cfg/virtio.scc features/drm-bochs/drm-bochs.scc cfg/net/mdio.scc" |
| 62 | KERNEL_FEATURES:append:qemux86=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 63 | KERNEL_FEATURES:append:qemux86-64=" cfg/sound.scc cfg/paravirt_kvm.scc" |
| 64 | KERNEL_FEATURES:append = " ${@bb.utils.contains("TUNE_FEATURES", "mx32", " cfg/x32.scc", "", d)}" |
| 65 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/scsi/scsi-debug.scc", "", d)}" |
| 66 | KERNEL_FEATURES:append = " ${@bb.utils.contains("DISTRO_FEATURES", "ptest", " features/gpio/mockup.scc", "", d)}" |
| 67 | KERNEL_FEATURES:append:powerpc =" arch/powerpc/powerpc-debug.scc" |
| 68 | KERNEL_FEATURES:append:powerpc64 =" arch/powerpc/powerpc-debug.scc" |
| 69 | KERNEL_FEATURES:append:powerpc64le =" arch/powerpc/powerpc-debug.scc" |
| 70 | |
| 71 | INSANE_SKIP:kernel-vmlinux:qemuppc64 = "textrel" |
| 72 | |