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}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 18 | |
| 19 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 20 | # Corstone1000 KMACHINE |
| 21 | # |
| 22 | FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}" |
| 23 | COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}" |
| 24 | KCONFIG_MODE:corstone1000 = "--alldefconfig" |
| 25 | KMACHINE:corstone1000 = "corstone1000" |
| 26 | LINUX_KERNEL_TYPE:corstone1000 = "standard" |
| 27 | #disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel |
| 28 | KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y" |
| 29 | SRC_URI:append:corstone1000 = " \ |
| 30 | file://defconfig \ |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 31 | " |
| 32 | |
| 33 | SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \ |
| 34 | 'corstone1000_kernel_debug', \ |
| 35 | 'file://corstone1000_kernel_debug.cfg', \ |
| 36 | '', \ |
| 37 | d)}" |
Andrew Geissler | edff492 | 2024-06-19 14:12:16 -0400 | [diff] [blame] | 38 | SRC_URI:append:corstone1000 = " \ |
Patrick Williams | 8460358 | 2024-12-14 08:00:57 -0500 | [diff] [blame] | 39 | ${@bb.utils.contains( \ |
| 40 | 'MACHINE_FEATURES', \ |
| 41 | 'corstone1000-extsys', \ |
| 42 | ' \ |
| 43 | file://extsys.cfg \ |
| 44 | file://0001-remoteproc-Add-Arm-remoteproc-driver.patch \ |
| 45 | file://0002-arm64-dts-Add-corstone1000-external-system-device-no.patch \ |
| 46 | file://0003-dt-bindings-remoteproc-Add-Arm-remoteproc.patch \ |
| 47 | ', \ |
| 48 | '', \ |
| 49 | d \ |
| 50 | ) \ |
| 51 | } \ |
| 52 | " |
Andrew Geissler | edff492 | 2024-06-19 14:12:16 -0400 | [diff] [blame] | 53 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 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 |
| 57 | KERNEL_EXTRA_FEATURES:corstone1000 = "" |
| 58 | KERNEL_FEATURES:corstone1000 = "" |
| 59 | |
| 60 | # |
| 61 | # FVP BASE KMACHINE |
| 62 | # |
| 63 | COMPATIBLE_MACHINE:fvp-base = "fvp-base" |
| 64 | KMACHINE:fvp-base = "fvp" |
Andrew Geissler | edff492 | 2024-06-19 14:12:16 -0400 | [diff] [blame] | 65 | FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}:${ARMFILESPATHS}" |
| 66 | SRC_URI:append:fvp-base = " \ |
| 67 | file://0001-arm64-dts-fvp-Enable-virtio-rng-support.patch \ |
| 68 | file://tee.cfg \ |
| 69 | ${@bb.utils.contains('MACHINE_FEATURES', 'ts-smm-gateway', \ |
| 70 | 'file://no-strict-devmem.cfg', '' , d)} \ |
| 71 | " |
| 72 | |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 73 | |
| 74 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 75 | # Juno KMACHINE |
| 76 | # |
| 77 | COMPATIBLE_MACHINE:juno = "juno" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 78 | FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}" |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 79 | |
| 80 | # |
| 81 | # Musca B1/S2 can't run Linux |
| 82 | # |
| 83 | COMPATIBLE_MACHINE:musca-b1 = "(^$)" |
| 84 | COMPATIBLE_MACHINE:musca-s1 = "(^$)" |
| 85 | |
| 86 | # |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 87 | # SGI575 KMACHINE |
| 88 | # |
| 89 | COMPATIBLE_MACHINE:sgi575 = "sgi575" |
| 90 | KBUILD_DEFCONFIG:sgi575 = "defconfig" |
| 91 | KCONFIG_MODE:sgi575 = "--alldefconfig" |
| 92 | |
| 93 | # |
Andrew Geissler | edff492 | 2024-06-19 14:12:16 -0400 | [diff] [blame] | 94 | # sbsa-ref KMACHINE |
| 95 | # |
| 96 | COMPATIBLE_MACHINE:sbsa-ref = "sbsa-ref" |
| 97 | KBUILD_DEFCONFIG:sbsa-ref = "defconfig" |
| 98 | KCONFIG_MODE:sbsa-ref = "--alldefconfig" |