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}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 20 | SRCREV:arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5" |
| 21 | |
| 22 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 23 | # Corstone1000 KMACHINE |
| 24 | # |
| 25 | FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}" |
| 26 | COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}" |
| 27 | KCONFIG_MODE:corstone1000 = "--alldefconfig" |
| 28 | KMACHINE:corstone1000 = "corstone1000" |
| 29 | LINUX_KERNEL_TYPE:corstone1000 = "standard" |
| 30 | #disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel |
| 31 | KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y" |
| 32 | SRC_URI:append:corstone1000 = " \ |
| 33 | file://defconfig \ |
Patrick Williams | 8dd6848 | 2022-10-04 07:57:18 -0500 | [diff] [blame] | 34 | file://0002-Add-external-system-driver.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 35 | file://0003-Add-rpmsg-driver-for-corstone1000.patch \ |
| 36 | file://0004-rpmsg-arm-fix-return-value.patch \ |
| 37 | file://0005-rpmsg-arm-update-chrdev-to-ctrldev-registration.patch \ |
| 38 | file://0006-Adds-workaround-for-cs1k-specific-bug.patch \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 39 | " |
| 40 | |
| 41 | SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \ |
| 42 | 'corstone1000_kernel_debug', \ |
| 43 | 'file://corstone1000_kernel_debug.cfg', \ |
| 44 | '', \ |
| 45 | d)}" |
| 46 | |
| 47 | # Default kernel features not needed for corstone1000 |
| 48 | # otherwise the extra kernel modules will increase the rootfs size |
| 49 | # corstone1000 has limited flash memory constraints |
| 50 | KERNEL_EXTRA_FEATURES:corstone1000 = "" |
| 51 | KERNEL_FEATURES:corstone1000 = "" |
| 52 | |
| 53 | # |
| 54 | # FVP BASE KMACHINE |
| 55 | # |
| 56 | COMPATIBLE_MACHINE:fvp-base = "fvp-base" |
| 57 | KMACHINE:fvp-base = "fvp" |
| 58 | FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}" |
Patrick Williams | 7784c42 | 2022-11-17 07:29:11 -0600 | [diff] [blame] | 59 | 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] | 60 | |
| 61 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 62 | # FVP BaseR AEMv8r64 Machine |
| 63 | # |
| 64 | COMPATIBLE_MACHINE:fvp-baser-aemv8r64 = "fvp-baser-aemv8r64" |
| 65 | FILESEXTRAPATHS:prepend:fvp-baser-aemv8r64 := "${ARMBSPFILESPATHS}" |
| 66 | SRC_URI:append:fvp-baser-aemv8r64 = " file://fvp-baser-aemv8r64.dts;subdir=git/arch/arm64/boot/dts/arm" |
| 67 | |
| 68 | # |
| 69 | # Juno KMACHINE |
| 70 | # |
| 71 | COMPATIBLE_MACHINE:juno = "juno" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 72 | FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 73 | |
| 74 | # |
| 75 | # Musca B1/S2 can't run Linux |
| 76 | # |
| 77 | COMPATIBLE_MACHINE:musca-b1 = "(^$)" |
| 78 | COMPATIBLE_MACHINE:musca-s1 = "(^$)" |
| 79 | |
| 80 | # |
| 81 | # N1SDP KMACHINE |
| 82 | # |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 83 | FILESEXTRAPATHS:prepend:n1sdp := "${THISDIR}/linux-yocto-6.1/n1sdp:" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 84 | COMPATIBLE_MACHINE:n1sdp = "n1sdp" |
| 85 | KBUILD_DEFCONFIG:n1sdp = "defconfig" |
| 86 | KCONFIG_MODE:n1sdp = "--alldefconfig" |
| 87 | FILESEXTRAPATHS:prepend:n1sdp := "${ARMBSPFILESPATHS}" |
| 88 | SRC_URI:append:n1sdp = " \ |
| 89 | file://0001-iommu-arm-smmu-v3-workaround-for-ATC_INV_SIZE_ALL-in.patch \ |
| 90 | file://0002-n1sdp-pci_quirk-add-acs-override-for-PCI-devices.patch \ |
| 91 | file://0003-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \ |
| 92 | file://0004-n1sdp-pcie-add-quirk-support-enabling-remote-chip-PC.patch \ |
| 93 | file://0005-arm64-kpti-Whitelist-early-Arm-Neoverse-N1-revisions.patch \ |
Patrick Williams | 2194f50 | 2022-10-16 14:26:09 -0500 | [diff] [blame] | 94 | file://0006-arm64-defconfig-disable-config-options-that-does-not.patch \ |
Andrew Geissler | 2daf84b | 2023-03-31 09:57:23 -0500 | [diff] [blame] | 95 | file://enable-nvme.cfg \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 96 | file://enable-realtek-R8169.cfg \ |
| 97 | file://enable-usb_conn_gpio.cfg \ |
| 98 | file://usb_xhci_pci_renesas.cfg \ |
| 99 | " |
| 100 | # Since we use the intree defconfig and the preempt-rt turns off some configs |
| 101 | # do_kernel_configcheck will display warnings. So, lets disable it. |
| 102 | KCONF_AUDIT_LEVEL:n1sdp:pn-linux-yocto-rt = "0" |
| 103 | |
| 104 | # |
| 105 | # SGI575 KMACHINE |
| 106 | # |
| 107 | COMPATIBLE_MACHINE:sgi575 = "sgi575" |
| 108 | KBUILD_DEFCONFIG:sgi575 = "defconfig" |
| 109 | KCONFIG_MODE:sgi575 = "--alldefconfig" |
| 110 | |
| 111 | # |
| 112 | # Total Compute (TC0/TC1) KMACHINE |
| 113 | # |
| 114 | COMPATIBLE_MACHINE:tc = "(tc0|tc1)" |
Patrick Williams | e760df8 | 2023-05-26 11:10:49 -0500 | [diff] [blame] | 115 | KBUILD_DEFCONFIG:tc = "defconfig" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 116 | KCONFIG_MODE:tc = "--alldefconfig" |