blob: 38bea022cc8f81f046c59f916d4357209c9b4fcf [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:fvp-baser-aemv8r64 = " ${SRC_URI_KMETA}"
18SRC_URI:append:juno = " ${SRC_URI_KMETA}"
19SRC_URI:append:n1sdp = " ${SRC_URI_KMETA}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040020SRCREV:arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"
21
22#
23# Corstone-500 KMACHINE
24#
25COMPATIBLE_MACHINE:corstone500 = "corstone500"
26KBUILD_DEFCONFIG:corstone500 = "multi_v7_defconfig"
27KCONFIG_MODE:corstone500 = "--alldefconfig"
28
29#
30# Corstone1000 KMACHINE
31#
32FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}"
33COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}"
34KCONFIG_MODE:corstone1000 = "--alldefconfig"
35KMACHINE:corstone1000 = "corstone1000"
36LINUX_KERNEL_TYPE:corstone1000 = "standard"
37#disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel
38KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y"
39SRC_URI:append:corstone1000 = " \
40 file://defconfig \
Patrick Williams8dd68482022-10-04 07:57:18 -050041 file://0002-Add-external-system-driver.patch \
Patrick Williams2194f502022-10-16 14:26:09 -050042 file://0003-Add-rpmsg-driver-for-corstone1000.patch \
43 file://0004-rpmsg-arm-fix-return-value.patch \
44 file://0005-rpmsg-arm-update-chrdev-to-ctrldev-registration.patch \
45 file://0006-Adds-workaround-for-cs1k-specific-bug.patch \
Brad Bishopbec4ebc2022-08-03 09:55:16 -040046 "
47
48SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \
49 'corstone1000_kernel_debug', \
50 'file://corstone1000_kernel_debug.cfg', \
51 '', \
52 d)}"
53
54# Default kernel features not needed for corstone1000
55# otherwise the extra kernel modules will increase the rootfs size
56# corstone1000 has limited flash memory constraints
57KERNEL_EXTRA_FEATURES:corstone1000 = ""
58KERNEL_FEATURES:corstone1000 = ""
59
60#
61# FVP BASE KMACHINE
62#
63COMPATIBLE_MACHINE:fvp-base = "fvp-base"
64KMACHINE:fvp-base = "fvp"
65FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}"
Patrick Williams7784c422022-11-17 07:29:11 -060066SRC_URI:append:fvp-base = " file://0001-arm64-dts-fvp-Enable-virtio-rng-support.patch"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040067
68#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040069# FVP BaseR AEMv8r64 Machine
70#
71COMPATIBLE_MACHINE:fvp-baser-aemv8r64 = "fvp-baser-aemv8r64"
72FILESEXTRAPATHS:prepend:fvp-baser-aemv8r64 := "${ARMBSPFILESPATHS}"
73SRC_URI:append:fvp-baser-aemv8r64 = " file://fvp-baser-aemv8r64.dts;subdir=git/arch/arm64/boot/dts/arm"
74
75#
76# Juno KMACHINE
77#
78COMPATIBLE_MACHINE:juno = "juno"
Patrick Williamsb9af8752023-01-30 13:28:01 -060079#KBUILD_DEFCONFIG:juno = "defconfig"
80#KCONFIG_MODE:juno = "--alldefconfig"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040081FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}"
Andrew Geisslerea144b02023-01-27 16:03:57 -060082SRC_URI:append:juno = " \
Patrick Williamsb9af8752023-01-30 13:28:01 -060083 file://0001-arm64-dts-Update-cache-properties-for-Arm-Ltd-platfo.patch \
84 file://0002-arm64-dts-fvp-Add-SPE-to-Foundation-FVP.patch \
85 file://0003-arm64-dts-fvp-Add-information-about-L1-and-L2-caches.patch \
86 file://0004-ARM-dts-vexpress-align-LED-node-names-with-dtschema.patch \
Andrew Geisslerea144b02023-01-27 16:03:57 -060087 "
Brad Bishopbec4ebc2022-08-03 09:55:16 -040088
89#
90# Musca B1/S2 can't run Linux
91#
92COMPATIBLE_MACHINE:musca-b1 = "(^$)"
93COMPATIBLE_MACHINE:musca-s1 = "(^$)"
94
95#
96# N1SDP KMACHINE
97#
Andrew Geissler2daf84b2023-03-31 09:57:23 -050098FILESEXTRAPATHS:prepend:n1sdp := "${THISDIR}/linux-yocto-6.1/n1sdp:"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040099COMPATIBLE_MACHINE:n1sdp = "n1sdp"
100KBUILD_DEFCONFIG:n1sdp = "defconfig"
101KCONFIG_MODE:n1sdp = "--alldefconfig"
102FILESEXTRAPATHS:prepend:n1sdp := "${ARMBSPFILESPATHS}"
103SRC_URI:append:n1sdp = " \
104 file://0001-iommu-arm-smmu-v3-workaround-for-ATC_INV_SIZE_ALL-in.patch \
105 file://0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch \
106 file://0003-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \
107 file://0004-n1sdp-pcie-add-quirk-support-enabling-remote-chip-PC.patch \
108 file://0005-arm64-kpti-Whitelist-early-Arm-Neoverse-N1-revisions.patch \
Patrick Williams2194f502022-10-16 14:26:09 -0500109 file://0006-arm64-defconfig-disable-config-options-that-does-not.patch \
Andrew Geissler2daf84b2023-03-31 09:57:23 -0500110 file://enable-nvme.cfg \
Brad Bishopbec4ebc2022-08-03 09:55:16 -0400111 file://enable-realtek-R8169.cfg \
112 file://enable-usb_conn_gpio.cfg \
113 file://usb_xhci_pci_renesas.cfg \
114 "
115# Since we use the intree defconfig and the preempt-rt turns off some configs
116# do_kernel_configcheck will display warnings. So, lets disable it.
117KCONF_AUDIT_LEVEL:n1sdp:pn-linux-yocto-rt = "0"
118
119#
120# SGI575 KMACHINE
121#
122COMPATIBLE_MACHINE:sgi575 = "sgi575"
123KBUILD_DEFCONFIG:sgi575 = "defconfig"
124KCONFIG_MODE:sgi575 = "--alldefconfig"
125
126#
127# Total Compute (TC0/TC1) KMACHINE
128#
129COMPATIBLE_MACHINE:tc = "(tc0|tc1)"
Patrick Williamse760df82023-05-26 11:10:49 -0500130KBUILD_DEFCONFIG:tc = "defconfig"
Brad Bishopbec4ebc2022-08-03 09:55:16 -0400131KCONFIG_MODE:tc = "--alldefconfig"