blob: 4028cf31d147f9da810b30af051bd726928677b0 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001# Kernel configuration and dts specific information
2
3#
4# Kernel configurations and dts (If not using Linux provided ones) are captured
5# in this file. Update SRC_URI and do_patch for building images with custom dts
6#
7
8# We can't set FILESEXTRAPATHS once because of how the kernel classes search for
9# config fragments. Discussion is ongoing as to whether this is the correct
10# solution, or a workaround.
11# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14154
12ARMBSPFILESPATHS := "${THISDIR}:${THISDIR}/files:"
13
14# Arm platforms kmeta
15SRC_URI_KMETA = "file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta"
16SRC_URI:append:fvp-base = " ${SRC_URI_KMETA}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040017SRC_URI:append:juno = " ${SRC_URI_KMETA}"
18SRC_URI:append:n1sdp = " ${SRC_URI_KMETA}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040019SRCREV:arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"
20
21#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040022# Corstone1000 KMACHINE
23#
24FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}"
25COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}"
26KCONFIG_MODE:corstone1000 = "--alldefconfig"
27KMACHINE:corstone1000 = "corstone1000"
28LINUX_KERNEL_TYPE:corstone1000 = "standard"
29#disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel
30KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y"
31SRC_URI:append:corstone1000 = " \
32 file://defconfig \
Patrick Williams8dd68482022-10-04 07:57:18 -050033 file://0002-Add-external-system-driver.patch \
Patrick Williams2194f502022-10-16 14:26:09 -050034 file://0003-Add-rpmsg-driver-for-corstone1000.patch \
35 file://0004-rpmsg-arm-fix-return-value.patch \
36 file://0005-rpmsg-arm-update-chrdev-to-ctrldev-registration.patch \
37 file://0006-Adds-workaround-for-cs1k-specific-bug.patch \
Brad Bishopbec4ebc2022-08-03 09:55:16 -040038 "
39
40SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \
41 'corstone1000_kernel_debug', \
42 'file://corstone1000_kernel_debug.cfg', \
43 '', \
44 d)}"
45
46# Default kernel features not needed for corstone1000
47# otherwise the extra kernel modules will increase the rootfs size
48# corstone1000 has limited flash memory constraints
49KERNEL_EXTRA_FEATURES:corstone1000 = ""
50KERNEL_FEATURES:corstone1000 = ""
51
52#
53# FVP BASE KMACHINE
54#
55COMPATIBLE_MACHINE:fvp-base = "fvp-base"
56KMACHINE:fvp-base = "fvp"
57FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}"
Patrick Williams7784c422022-11-17 07:29:11 -060058SRC_URI:append:fvp-base = " file://0001-arm64-dts-fvp-Enable-virtio-rng-support.patch"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040059
60#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040061# Juno KMACHINE
62#
63COMPATIBLE_MACHINE:juno = "juno"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040064FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040065
66#
67# Musca B1/S2 can't run Linux
68#
69COMPATIBLE_MACHINE:musca-b1 = "(^$)"
70COMPATIBLE_MACHINE:musca-s1 = "(^$)"
71
72#
73# N1SDP KMACHINE
74#
Andrew Geissler220dafd2023-10-04 10:18:08 -050075FILESEXTRAPATHS:prepend:n1sdp := "${THISDIR}/linux-yocto-6.4/n1sdp:"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040076COMPATIBLE_MACHINE:n1sdp = "n1sdp"
77KBUILD_DEFCONFIG:n1sdp = "defconfig"
78KCONFIG_MODE:n1sdp = "--alldefconfig"
79FILESEXTRAPATHS:prepend:n1sdp := "${ARMBSPFILESPATHS}"
80SRC_URI:append:n1sdp = " \
81 file://0001-iommu-arm-smmu-v3-workaround-for-ATC_INV_SIZE_ALL-in.patch \
82 file://0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch \
83 file://0003-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \
84 file://0004-n1sdp-pcie-add-quirk-support-enabling-remote-chip-PC.patch \
85 file://0005-arm64-kpti-Whitelist-early-Arm-Neoverse-N1-revisions.patch \
Patrick Williams2194f502022-10-16 14:26:09 -050086 file://0006-arm64-defconfig-disable-config-options-that-does-not.patch \
Andrew Geissler2daf84b2023-03-31 09:57:23 -050087 file://enable-nvme.cfg \
Brad Bishopbec4ebc2022-08-03 09:55:16 -040088 file://enable-realtek-R8169.cfg \
89 file://enable-usb_conn_gpio.cfg \
90 file://usb_xhci_pci_renesas.cfg \
91 "
92# Since we use the intree defconfig and the preempt-rt turns off some configs
93# do_kernel_configcheck will display warnings. So, lets disable it.
94KCONF_AUDIT_LEVEL:n1sdp:pn-linux-yocto-rt = "0"
95
96#
97# SGI575 KMACHINE
98#
99COMPATIBLE_MACHINE:sgi575 = "sgi575"
100KBUILD_DEFCONFIG:sgi575 = "defconfig"
101KCONFIG_MODE:sgi575 = "--alldefconfig"
102
103#
104# Total Compute (TC0/TC1) KMACHINE
105#
106COMPATIBLE_MACHINE:tc = "(tc0|tc1)"
Patrick Williamse760df82023-05-26 11:10:49 -0500107KBUILD_DEFCONFIG:tc = "defconfig"
Brad Bishopbec4ebc2022-08-03 09:55:16 -0400108KCONFIG_MODE:tc = "--alldefconfig"