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