Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | # 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 |
| 12 | ARMBSPFILESPATHS := "${THISDIR}:${THISDIR}/files:" |
| 13 | |
| 14 | # Arm platforms kmeta |
| 15 | SRC_URI_KMETA = "file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta" |
| 16 | SRC_URI:append:fvp-base = " ${SRC_URI_KMETA}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 17 | SRC_URI:append:fvp-baser-aemv8r64 = " ${SRC_URI_KMETA}" |
| 18 | SRC_URI:append:juno = " ${SRC_URI_KMETA}" |
| 19 | SRC_URI:append:n1sdp = " ${SRC_URI_KMETA}" |
| 20 | SRC_URI:append:tc = " ${SRC_URI_KMETA}" |
| 21 | SRCREV:arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5" |
| 22 | |
| 23 | # |
| 24 | # Corstone-500 KMACHINE |
| 25 | # |
| 26 | COMPATIBLE_MACHINE:corstone500 = "corstone500" |
| 27 | KBUILD_DEFCONFIG:corstone500 = "multi_v7_defconfig" |
| 28 | KCONFIG_MODE:corstone500 = "--alldefconfig" |
| 29 | |
| 30 | # |
| 31 | # Corstone1000 KMACHINE |
| 32 | # |
| 33 | FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}" |
| 34 | COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}" |
| 35 | KCONFIG_MODE:corstone1000 = "--alldefconfig" |
| 36 | KMACHINE:corstone1000 = "corstone1000" |
| 37 | LINUX_KERNEL_TYPE:corstone1000 = "standard" |
| 38 | #disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel |
| 39 | KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y" |
| 40 | SRC_URI:append:corstone1000 = " \ |
| 41 | file://defconfig \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 42 | file://0002-Add-external-system-driver.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 43 | file://0003-Add-rpmsg-driver-for-corstone1000.patch \ |
| 44 | file://0004-rpmsg-arm-fix-return-value.patch \ |
| 45 | file://0005-rpmsg-arm-update-chrdev-to-ctrldev-registration.patch \ |
| 46 | file://0006-Adds-workaround-for-cs1k-specific-bug.patch \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 47 | " |
| 48 | |
| 49 | SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \ |
| 50 | 'corstone1000_kernel_debug', \ |
| 51 | 'file://corstone1000_kernel_debug.cfg', \ |
| 52 | '', \ |
| 53 | d)}" |
| 54 | |
| 55 | # Default kernel features not needed for corstone1000 |
| 56 | # otherwise the extra kernel modules will increase the rootfs size |
| 57 | # corstone1000 has limited flash memory constraints |
| 58 | KERNEL_EXTRA_FEATURES:corstone1000 = "" |
| 59 | KERNEL_FEATURES:corstone1000 = "" |
| 60 | |
| 61 | # |
| 62 | # FVP BASE KMACHINE |
| 63 | # |
| 64 | COMPATIBLE_MACHINE:fvp-base = "fvp-base" |
| 65 | KMACHINE:fvp-base = "fvp" |
| 66 | FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 67 | SRC_URI:append:fvp-base = " file://0001-arm64-dts-fvp-Enable-virtio-rng-support.patch" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 68 | |
| 69 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 70 | # FVP BaseR AEMv8r64 Machine |
| 71 | # |
| 72 | COMPATIBLE_MACHINE:fvp-baser-aemv8r64 = "fvp-baser-aemv8r64" |
| 73 | FILESEXTRAPATHS:prepend:fvp-baser-aemv8r64 := "${ARMBSPFILESPATHS}" |
| 74 | SRC_URI:append:fvp-baser-aemv8r64 = " file://fvp-baser-aemv8r64.dts;subdir=git/arch/arm64/boot/dts/arm" |
| 75 | |
| 76 | # |
| 77 | # Juno KMACHINE |
| 78 | # |
| 79 | COMPATIBLE_MACHINE:juno = "juno" |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 80 | #KBUILD_DEFCONFIG:juno = "defconfig" |
| 81 | #KCONFIG_MODE:juno = "--alldefconfig" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 82 | FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}" |
Andrew Geissler | ea144b0 | 2023-01-27 16:03:57 -0600 | [diff] [blame] | 83 | SRC_URI:append:juno = " \ |
Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame] | 84 | file://0001-arm64-dts-Update-cache-properties-for-Arm-Ltd-platfo.patch \ |
| 85 | file://0002-arm64-dts-fvp-Add-SPE-to-Foundation-FVP.patch \ |
| 86 | file://0003-arm64-dts-fvp-Add-information-about-L1-and-L2-caches.patch \ |
| 87 | file://0004-ARM-dts-vexpress-align-LED-node-names-with-dtschema.patch \ |
Andrew Geissler | ea144b0 | 2023-01-27 16:03:57 -0600 | [diff] [blame] | 88 | " |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 89 | |
| 90 | # |
| 91 | # Musca B1/S2 can't run Linux |
| 92 | # |
| 93 | COMPATIBLE_MACHINE:musca-b1 = "(^$)" |
| 94 | COMPATIBLE_MACHINE:musca-s1 = "(^$)" |
| 95 | |
| 96 | # |
| 97 | # N1SDP KMACHINE |
| 98 | # |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame^] | 99 | FILESEXTRAPATHS:prepend:n1sdp := "${THISDIR}/linux-yocto-6.1/n1sdp:" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 100 | COMPATIBLE_MACHINE:n1sdp = "n1sdp" |
| 101 | KBUILD_DEFCONFIG:n1sdp = "defconfig" |
| 102 | KCONFIG_MODE:n1sdp = "--alldefconfig" |
| 103 | FILESEXTRAPATHS:prepend:n1sdp := "${ARMBSPFILESPATHS}" |
| 104 | SRC_URI:append:n1sdp = " \ |
| 105 | file://0001-iommu-arm-smmu-v3-workaround-for-ATC_INV_SIZE_ALL-in.patch \ |
| 106 | file://0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch \ |
| 107 | file://0003-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \ |
| 108 | file://0004-n1sdp-pcie-add-quirk-support-enabling-remote-chip-PC.patch \ |
| 109 | file://0005-arm64-kpti-Whitelist-early-Arm-Neoverse-N1-revisions.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 110 | file://0006-arm64-defconfig-disable-config-options-that-does-not.patch \ |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame^] | 111 | file://enable-nvme.cfg \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 112 | file://enable-realtek-R8169.cfg \ |
| 113 | file://enable-usb_conn_gpio.cfg \ |
| 114 | file://usb_xhci_pci_renesas.cfg \ |
| 115 | " |
| 116 | # Since we use the intree defconfig and the preempt-rt turns off some configs |
| 117 | # do_kernel_configcheck will display warnings. So, lets disable it. |
| 118 | KCONF_AUDIT_LEVEL:n1sdp:pn-linux-yocto-rt = "0" |
| 119 | |
| 120 | # |
| 121 | # SGI575 KMACHINE |
| 122 | # |
| 123 | COMPATIBLE_MACHINE:sgi575 = "sgi575" |
| 124 | KBUILD_DEFCONFIG:sgi575 = "defconfig" |
| 125 | KCONFIG_MODE:sgi575 = "--alldefconfig" |
| 126 | |
| 127 | # |
| 128 | # Total Compute (TC0/TC1) KMACHINE |
| 129 | # |
| 130 | COMPATIBLE_MACHINE:tc = "(tc0|tc1)" |
| 131 | KCONFIG_MODE:tc = "--alldefconfig" |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 132 | FILESEXTRAPATHS:prepend:tc := "${ARMBSPFILESPATHS}:${THISDIR}/linux-arm64-ack-5.15/tc:" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 133 | SRC_URI:append:tc = " \ |
| 134 | file://gki_defconfig \ |
| 135 | file://0001-drm-Add-component-aware-simple-encoder.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 136 | file://0001-drm-komeda-Fix-handling-of-atomic-commits-in-the-ato.patch \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 137 | file://0002-drm-arm-komeda-add-RENDER-capability-to-the-device-n.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 138 | file://0003-firmware-arm_ffa-Fix-uuid-argument-passed-to-ffa_par.patch \ |
| 139 | file://0004-firmware-arm_ffa-Add-ffa_dev_get_drvdata.patch \ |
| 140 | file://0005-firmware-arm_ffa-extern-ffa_bus_type.patch \ |
| 141 | file://0006-firmware-arm_ffa-Fix-FFA_MEM_SHARE-and-FFA_MEM_FRAG_.patch \ |
| 142 | file://0007-Revert-optee-use-driver-internal-tee_context-for-som.patch \ |
| 143 | file://0008-tee-add-sec_world_id-to-struct-tee_shm.patch \ |
| 144 | file://0009-optee-simplify-optee_release.patch \ |
| 145 | file://0010-optee-refactor-driver-with-internal-callbacks.patch \ |
| 146 | file://0011-optee-isolate-smc-abi.patch \ |
| 147 | file://0012-optee-add-FF-A-support.patch \ |
| 148 | file://0013-optee-smc_abi.c-add-missing-include-linux-mm.h.patch \ |
| 149 | file://0014-optee-Fix-spelling-mistake-reclain-reclaim.patch \ |
| 150 | file://0015-optee-fix-kfree-NULL-pointer.patch \ |
| 151 | file://0016-perf-arm-cmn-Account-for-NUMA-affinity.patch \ |
| 152 | file://0017-perf-arm-cmn-Drop-compile-test-restriction.patch \ |
| 153 | file://0018-perf-arm-cmn-Refactor-node-ID-handling.patch \ |
| 154 | file://0019-perf-arm-cmn-Streamline-node-iteration.patch \ |
| 155 | file://0020-perf-arm-cmn-Refactor-DTM-handling.patch \ |
| 156 | file://0021-perf-arm-cmn-Optimise-DTM-counter-reads.patch \ |
| 157 | file://0022-perf-arm-cmn-Optimise-DTC-counter-accesses.patch \ |
| 158 | file://0023-perf-arm-cmn-Move-group-validation-data-off-stack.patch \ |
| 159 | file://0024-perf-arm-cmn-Demarcate-CMN-600-specifics.patch \ |
| 160 | file://0025-perf-arm-cmn-Support-new-IP-features.patch \ |
| 161 | file://0026-perf-arm-cmn-Add-CI-700-Support.patch \ |
| 162 | file://0027-ANDROID-trusty-Backport-of-trusty-driver.patch \ |
| 163 | file://0028-ANDROID-trusty-Remove-FFA-specific-initilization.patch \ |
| 164 | file://0029-ANDROID-trusty-Rename-transfer-memory-function-to-le.patch \ |
| 165 | file://0030-ANDROID-trusty-Separate-out-SMC-based-transport.patch \ |
| 166 | file://0031-ANDROID-trusty-Modify-device-compatible-string.patch \ |
| 167 | file://0032-ANDROID-trusty-Add-transport-descriptor.patch \ |
| 168 | file://0033-ANDROID-trusty-Add-trusty-ffa-driver.patch \ |
| 169 | file://0034-ANDROID-trusty-ffa-Add-support-for-FFA-memory-operat.patch \ |
| 170 | file://0035-ANDROID-trusty-ffa-Enable-FFA-transport-for-both-mem.patch \ |
| 171 | file://0036-ANDROID-trusty-Make-trusty-transports-configurable.patch \ |
| 172 | file://0037-ANDROID-trusty-log-include-panic_notifier.h.patch \ |
| 173 | file://0038-ANDROID-trusty-ipc-fix-VIRTIO_ID_TRUSTY_IPC-ID.patch \ |
| 174 | file://0039-gki_config-add-tc-disable_mpam.patch \ |
| 175 | file://0040-ANDROID-KVM-arm64-disable-FFA-driver-at-EL2.patch \ |
Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 176 | file://init_disassemble_info-signature-changes-causes-compile-failures.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 177 | file://0041-etherdevice-Adjust-ether_addr-prototypes-to-silence-.patch \ |
| 178 | file://0042-mm-page_alloc-fix-building-error-on-Werror-array-com.patch \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 179 | " |
| 180 | KERNEL_FEATURES:append:tc = " bsp/arm-platforms/tc.scc" |
| 181 | KERNEL_FEATURES:append:tc1 = " bsp/arm-platforms/tc-autofdo.scc" |