blob: 8e964e17df60c7f33f7526bc40f0f9f9afd5c43c [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:juno = " ${SRC_URI_KMETA}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040018
19#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040020# Corstone1000 KMACHINE
21#
22FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}"
23COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}"
24KCONFIG_MODE:corstone1000 = "--alldefconfig"
25KMACHINE:corstone1000 = "corstone1000"
26LINUX_KERNEL_TYPE:corstone1000 = "standard"
27#disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel
28KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y"
29SRC_URI:append:corstone1000 = " \
30 file://defconfig \
Brad Bishopbec4ebc2022-08-03 09:55:16 -040031 "
32
33SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \
34 'corstone1000_kernel_debug', \
35 'file://corstone1000_kernel_debug.cfg', \
36 '', \
37 d)}"
Andrew Geissleredff4922024-06-19 14:12:16 -040038SRC_URI:append:corstone1000 = " \
Patrick Williams84603582024-12-14 08:00:57 -050039 ${@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 Geissleredff4922024-06-19 14:12:16 -040053
Brad Bishopbec4ebc2022-08-03 09:55:16 -040054# 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"
Andrew Geissleredff4922024-06-19 14:12:16 -040065FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}:${ARMFILESPATHS}"
66SRC_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 Bishopbec4ebc2022-08-03 09:55:16 -040073
74#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040075# Juno KMACHINE
76#
77COMPATIBLE_MACHINE:juno = "juno"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040078FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}"
Brad Bishopbec4ebc2022-08-03 09:55:16 -040079
80#
81# Musca B1/S2 can't run Linux
82#
83COMPATIBLE_MACHINE:musca-b1 = "(^$)"
84COMPATIBLE_MACHINE:musca-s1 = "(^$)"
85
86#
Brad Bishopbec4ebc2022-08-03 09:55:16 -040087# SGI575 KMACHINE
88#
89COMPATIBLE_MACHINE:sgi575 = "sgi575"
90KBUILD_DEFCONFIG:sgi575 = "defconfig"
91KCONFIG_MODE:sgi575 = "--alldefconfig"
92
93#
Andrew Geissleredff4922024-06-19 14:12:16 -040094# sbsa-ref KMACHINE
95#
96COMPATIBLE_MACHINE:sbsa-ref = "sbsa-ref"
97KBUILD_DEFCONFIG:sbsa-ref = "defconfig"
98KCONFIG_MODE:sbsa-ref = "--alldefconfig"