xref: /openbmc/openbmc/meta-arm/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc (revision 8460358c3d24c71d9d38fd126c745854a6301564)
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
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}"
17SRC_URI:append:juno = " ${SRC_URI_KMETA}"
18
19#
20# 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  \
31        "
32
33SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \
34                                                            'corstone1000_kernel_debug', \
35                                                            'file://corstone1000_kernel_debug.cfg', \
36                                                            '', \
37                                                             d)}"
38SRC_URI:append:corstone1000 = " \
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"
53
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
57KERNEL_EXTRA_FEATURES:corstone1000 = ""
58KERNEL_FEATURES:corstone1000 = ""
59
60#
61# FVP BASE KMACHINE
62#
63COMPATIBLE_MACHINE:fvp-base = "fvp-base"
64KMACHINE:fvp-base = "fvp"
65FILESEXTRAPATHS: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
73
74#
75# Juno KMACHINE
76#
77COMPATIBLE_MACHINE:juno = "juno"
78FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}"
79
80#
81# Musca B1/S2 can't run Linux
82#
83COMPATIBLE_MACHINE:musca-b1 = "(^$)"
84COMPATIBLE_MACHINE:musca-s1 = "(^$)"
85
86#
87# SGI575 KMACHINE
88#
89COMPATIBLE_MACHINE:sgi575 = "sgi575"
90KBUILD_DEFCONFIG:sgi575 = "defconfig"
91KCONFIG_MODE:sgi575 = "--alldefconfig"
92
93#
94# sbsa-ref KMACHINE
95#
96COMPATIBLE_MACHINE:sbsa-ref = "sbsa-ref"
97KBUILD_DEFCONFIG:sbsa-ref = "defconfig"
98KCONFIG_MODE:sbsa-ref = "--alldefconfig"
99