mirror of
https://git.yoctoproject.org/meta-arm
synced 2026-07-16 03:47:19 +00:00
af33b41925
Backport of 7fc51c7c from master which removes some redundant code to
reduce the size of the resulting corstone1000 binary.
Signed-off-by: Harry Moulton <harry.moulton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
269 lines
13 KiB
C++
269 lines
13 KiB
C++
# Kernel configuration and dts specific information
|
|
|
|
#
|
|
# Kernel configurations and dts (If not using Linux provided ones) are captured
|
|
# in this file. Update SRC_URI and do_patch for building images with custom dts
|
|
#
|
|
|
|
# We can't set FILESEXTRAPATHS once because of how the kernel classes search for
|
|
# config fragments. Discussion is ongoing as to whether this is the correct
|
|
# solution, or a workaround.
|
|
# https://bugzilla.yoctoproject.org/show_bug.cgi?id=14154
|
|
ARMBSPFILESPATHS := "${THISDIR}:${THISDIR}/files:"
|
|
|
|
# Arm platforms kmeta
|
|
SRC_URI_KMETA = "file://arm-platforms-kmeta;type=kmeta;name=arm-platforms-kmeta;destsuffix=arm-platforms-kmeta"
|
|
SRC_URI:append:corstone700 = " ${SRC_URI_KMETA}"
|
|
SRC_URI:append:fvp-base = " ${SRC_URI_KMETA}"
|
|
SRC_URI:append:fvp-base-arm32 = " ${SRC_URI_KMETA}"
|
|
SRC_URI:append:fvp-baser-aemv8r64 = " ${SRC_URI_KMETA}"
|
|
SRC_URI:append:juno = " ${SRC_URI_KMETA}"
|
|
SRC_URI:append:n1sdp = " ${SRC_URI_KMETA}"
|
|
SRCREV:arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"
|
|
|
|
#
|
|
# Corstone-500 KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:corstone500 = "corstone500"
|
|
KMACHINE:corstone500 = "corstone500"
|
|
KBUILD_DEFCONFIG:corstone500 = "multi_v7_defconfig"
|
|
KCONFIG_MODE:corstone500 = "--alldefconfig"
|
|
|
|
#
|
|
# Corstone-700 Machines
|
|
#
|
|
COMPATIBLE_MACHINE:corstone700 = "${MACHINE}"
|
|
KMACHINE:corstone700 = "corstone700"
|
|
KERNEL_IMAGETYPE:corstone700 = "xipImage"
|
|
KCONFIG_MODE:corstone700 = "--alldefconfig"
|
|
FILESEXTRAPATHS:prepend:corstone700 := "${ARMBSPFILESPATHS}"
|
|
SRC_URI:append:corstone700 = " \
|
|
file://0001-arm-support-for-a-single-ARMv7-A-based-platform.patch \
|
|
file://0002-arm-Add-tiny-vexpress-machine.patch \
|
|
file://0003-arm-introduce-corstone700_defconfig.patch \
|
|
file://0004-add-driver-of-mailbox-handling-unit-controller-versi.patch \
|
|
file://0005-add-rpmsg-based-on-rpmsg-char-driver-using-mailbox.patch \
|
|
file://0006-enable-arm-MHU-driver-and-RPMSG-char-driver.patch \
|
|
file://0007-allow-creation-of-multiple-arm-rpmsg-channels.patch \
|
|
file://0008-mailbox-enable-combined-receiver-interrupt-when-usin.patch \
|
|
file://0009-misc-arm-add-corstone700-external-system-harness-dri.patch \
|
|
file://0010-arm-containerize-endpoint-and-mailbox-information.patch \
|
|
file://0011-arm-couple-mailbox-channel-ownership-to-rpmsg-endpoi.patch \
|
|
file://0012-mailbox-arm_mhu_v2-add-new-AMBA-ID-to-support-MHU-v2.patch \
|
|
file://0013-mailbox-arm_mhu_v2-dynamic-allocation-of-channels.patch \
|
|
file://0014-defconfig-adjust-XIP-physical-address-to-3MB-offset.patch \
|
|
file://0015-arm-Kconfig-disable-ARM_VIRT-extension-if-XIP_KERNEL.patch \
|
|
file://0016-corstone700_defconfig-use-DDR-address-instead-of-sha.patch \
|
|
file://0017-corstone700_defconfig-enable-configs-for-cramfs-xip.patch \
|
|
file://0018-usb-isp1760-move-to-regmap-for-register-access.patch \
|
|
file://0019-usb-isp1760-hcd-refactor-mempool-config-and-setup.patch \
|
|
file://0020-usb-isp1760-add-support-for-isp1763.patch \
|
|
"
|
|
|
|
KERNEL_FEATURES:append:corstone700 = " bsp/arm-platforms/corstone700-bsp.scc"
|
|
KERNEL_FEATURES:append:corstone700-fvp = " \
|
|
${@bb.utils.contains('MACHINE_FEATURES', \
|
|
'eth_lan91c111', \
|
|
'bsp/arm-platforms/corstone700/xip_dhcp_cmdline.cfg \
|
|
bsp/arm-platforms/corstone700/eth_lan91c111.scc', \
|
|
'bsp/arm-platforms/corstone700/xip_cmdline.cfg', \
|
|
d)}"
|
|
KERNEL_FEATURES:append:corstone700-mps3 = " \
|
|
${@bb.utils.contains('MACHINE_FEATURES', \
|
|
'eth_lan9115', \
|
|
'bsp/arm-platforms/corstone700/xip_dhcp_cmdline.cfg \
|
|
bsp/arm-platforms/corstone700/eth_lan9115.scc', \
|
|
'bsp/arm-platforms/corstone700/xip_cmdline.cfg', \
|
|
d)} \
|
|
${@bb.utils.contains('MACHINE_FEATURES', \
|
|
'usb_host', \
|
|
'bsp/arm-platforms/corstone700/usb_host.cfg', \
|
|
'', \
|
|
d)}"
|
|
|
|
#
|
|
# Corstone1000 KMACHINE
|
|
#
|
|
FILESEXTRAPATHS:prepend:corstone1000 := "${ARMBSPFILESPATHS}"
|
|
COMPATIBLE_MACHINE:corstone1000 = "${MACHINE}"
|
|
KCONFIG_MODE:corstone1000 = "--alldefconfig"
|
|
KMACHINE:corstone1000 = "corstone1000"
|
|
LINUX_KERNEL_TYPE:corstone1000 = "standard"
|
|
#disabling the rootfs cpio file compression so it is not compressed twice when bundled with the kernel
|
|
KERNEL_EXTRA_ARGS:corstone1000 += "CONFIG_INITRAMFS_COMPRESSION_NONE=y"
|
|
SRC_URI:append:corstone1000 = " \
|
|
file://0001-usb-isp1760-fix-strict-typechecking.patch \
|
|
file://0002-usb-isp1760-move-to-regmap-for-register-access.patch \
|
|
file://0003-usb-isp1760-use-relaxed-primitives.patch \
|
|
file://0004-usb-isp1760-remove-platform-data-struct-and-code.patch \
|
|
file://0005-usb-isp1760-hcd-refactor-mempool-config-and-setup.patch \
|
|
file://0006-usb-isp1760-use-dr_mode-binding.patch \
|
|
file://0007-usb-isp1760-add-support-for-isp1763.patch \
|
|
file://0008-dt-bindings-usb-nxp-isp1760-add-bindings.patch \
|
|
file://0009-usb-isp1763-add-peripheral-mode.patch \
|
|
file://0010-firmware-smccc-Add-SMCCC-TRNG-function-call-IDs.patch \
|
|
file://0011-firmware-smccc-Introduce-SMCCC-TRNG-framework.patch \
|
|
file://0012-arm64-smccc-Add-support-for-SMCCCv1.2-extended-input-output-registers.patch \
|
|
file://0013-firmware-arm_ffa-Add-initial-FFA-bus-support-for-device-enumeration.patch \
|
|
file://0014-firmware-arm_ffa-Add-initial-Arm-FFA-driver-support.patch \
|
|
file://0015-firmware-arm_ffa-Add-support-for-SMCCC-as-transport-to-ffa-driver.patch \
|
|
file://0016-firmware-arm_ffa-Setup-in-kernel-users-of-FFA-partitions.patch \
|
|
file://0017-firmware-arm_ffa-Add-support-for-MEM_-interfaces.patch \
|
|
file://0018-firmware-arm_ffa-Ensure-drivers-provide-a-probe-function.patch \
|
|
file://0019-firmware-arm_ffa-Simplify-probe-function.patch \
|
|
file://0020-firmware-arm_ffa-Fix-the-comment-style.patch \
|
|
file://0021-firmware-arm_ffa-Fix-a-possible-ffa_linux_errmap-buffer-overflow.patch \
|
|
file://0022-usb-isp1760-isp1760-udc-Provide-missing-description-.patch \
|
|
file://0023-usb-isp1760-Fix-meaningless-check-in-isp1763_run.patch \
|
|
file://0024-usb-isp1760-remove-debug-message-as-error.patch \
|
|
file://0025-usb-isp1760-do-not-sleep-in-field-register-poll.patch \
|
|
file://0026-usb-isp1760-rework-cache-initialization-error-handli.patch \
|
|
file://0027-usb-isp1760-ignore-return-value-for-bus-change-patte.patch \
|
|
file://0028-usb-isp1760-check-maxpacketsize-before-using-it.patch \
|
|
file://0029-usb-isp1760-do-not-reset-retval.patch \
|
|
file://0030-usb-isp1760-do-not-shift-in-uninitialized-slot.patch \
|
|
file://0031-usb-isp1760-clean-never-read-udc_enabled-warning.patch \
|
|
file://0032-usb-isp1760-fix-memory-pool-initialization.patch \
|
|
file://0033-usb-isp1760-fix-qtd-fill-length.patch \
|
|
file://0034-usb-isp1760-write-to-status-and-address-register.patch \
|
|
file://0035-usb-isp1760-use-the-right-irq-status-bit.patch \
|
|
file://0036-usb-isp1760-otg-control-register-access.patch \
|
|
file://0037-firmware-arm_ffa-setting-the-FFA_VERSION-compatibility-checks.patch.patch \
|
|
file://defconfig \
|
|
"
|
|
|
|
SRC_URI:append:corstone1000 = " ${@bb.utils.contains('MACHINE_FEATURES', \
|
|
'corstone1000_kernel_debug', \
|
|
'file://corstone1000_kernel_debug.cfg', \
|
|
'', \
|
|
d)}"
|
|
|
|
# Default kernel features not needed for corstone1000
|
|
# otherwise the extra kernel modules will increase the rootfs size
|
|
# corstone1000 has limited flash memory constraints
|
|
KERNEL_EXTRA_FEATURES:corstone1000 = ""
|
|
KERNEL_FEATURES:corstone1000 = ""
|
|
|
|
#
|
|
# FVP BASE KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:fvp-base = "fvp-base"
|
|
KMACHINE:fvp-base = "fvp"
|
|
FILESEXTRAPATHS:prepend:fvp-base := "${ARMBSPFILESPATHS}"
|
|
|
|
#
|
|
# FVP BASE ARM32 KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:fvp-base-arm32 = "fvp-base-arm32"
|
|
KMACHINE:fvp-base-arm32 = "fvp-arm32"
|
|
FILESEXTRAPATHS:prepend:fvp-base-arm32 := "${ARMBSPFILESPATHS}"
|
|
SRC_URI:append:fvp-base-arm32 = " file://fvp-base-arm32-dts.patch \
|
|
file://0001-ARM-vexpress-enable-GICv3.patch"
|
|
|
|
#
|
|
# FVP BaseR AEMv8r64 Machine
|
|
#
|
|
COMPATIBLE_MACHINE:fvp-baser-aemv8r64 = "fvp-baser-aemv8r64"
|
|
FILESEXTRAPATHS:prepend:fvp-baser-aemv8r64 := "${ARMBSPFILESPATHS}"
|
|
SRC_URI:append:fvp-baser-aemv8r64 = " file://fvp-baser-aemv8r64.dts;subdir=git/arch/arm64/boot/dts/arm"
|
|
|
|
#
|
|
# Juno KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:juno = "juno"
|
|
KMACHINE:juno = "juno"
|
|
KBUILD_DEFCONFIG:juno = "defconfig"
|
|
KCONFIG_MODE:juno = "--alldefconfig"
|
|
#FIXME - temporarily pin kernel version to allow for juno patches to apply
|
|
KBRANCH:juno = "v5.4/standard/base"
|
|
KERNEL_VERSION_SANITY_SKIP:juno = "1"
|
|
SRCREV_machine:juno = "dd8a64a523fb714a98328441e0de72cde115a6fc"
|
|
FILESEXTRAPATHS:prepend:juno := "${ARMBSPFILESPATHS}"
|
|
SRC_URI:append:juno = " \
|
|
file://0001-mailbox-add-support-for-doorbell-signal-mode-control.patch \
|
|
file://0002-dt-bindings-mailbox-add-bindings-to-support-ARM-MHU-.patch \
|
|
file://0003-mailbox-arm_mhu-migrate-to-threaded-irq-handler.patch \
|
|
file://0004-mailbox-arm_mhu-re-factor-data-structure-to-add-door.patch \
|
|
file://0005-mailbox-arm_mhu-add-full-support-for-the-doorbells.patch \
|
|
file://0006-mailbox-arm_mhu-add-support-to-read-and-record-mbox-.patch \
|
|
file://0007-arm64-defconfig-add-all-SCMI-related-configs.patch \
|
|
file://0008-arm64-dts-juno-add-mhu-doorbell-support-and-scmi-dev.patch \
|
|
"
|
|
|
|
#
|
|
# Musca B1/S2 can't run Linux
|
|
#
|
|
COMPATIBLE_MACHINE:musca-b1 = "(^$)"
|
|
COMPATIBLE_MACHINE:musca-s1 = "(^$)"
|
|
|
|
#
|
|
# N1SDP KMACHINE
|
|
#
|
|
FILESEXTRAPATHS:prepend:n1sdp := "${THISDIR}/linux-yocto-5.10/n1sdp:"
|
|
COMPATIBLE_MACHINE:n1sdp = "n1sdp"
|
|
KBUILD_DEFCONFIG:n1sdp = "defconfig"
|
|
KCONFIG_MODE:n1sdp = "--alldefconfig"
|
|
FILESEXTRAPATHS:prepend:n1sdp := "${ARMBSPFILESPATHS}"
|
|
SRC_URI:append:n1sdp = " \
|
|
file://0001-pci_quirk-add-acs-override-for-PCI-devices.patch \
|
|
file://0002-pcie-Add-quirk-for-the-Arm-Neoverse-N1SDP-platform.patch \
|
|
file://0003-n1sdp-update-n1sdp-pci-quirk-for-SR-IOV-support.patch \
|
|
file://0004-n1sdp-pcie-add-quirk-support-enabling-remote-chip-PC.patch \
|
|
file://0001-arm64-defconfig-drop-unused-BACKLIGHT_GENERIC-option.patch \
|
|
file://no-power-avs.patch \
|
|
file://enable-realtek-R8169.cfg \
|
|
file://enable-usb_conn_gpio.cfg \
|
|
"
|
|
# Since we use the intree defconfig and the preempt-rt turns off some configs
|
|
# do_kernel_configcheck will display warnings. So, lets disable it.
|
|
KCONF_AUDIT_LEVEL:n1sdp:pn-linux-yocto-rt = "0"
|
|
|
|
#
|
|
# SGI575 KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:sgi575 = "sgi575"
|
|
KMACHINE:sgi575 = "sgi575"
|
|
KBUILD_DEFCONFIG:sgi575 = "defconfig"
|
|
KCONFIG_MODE:sgi575 = "--alldefconfig"
|
|
|
|
#
|
|
# Total Compute TC0 KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:tc0 = "tc0"
|
|
KMACHINE:tc0 = "tc0"
|
|
KCONFIG_MODE:tc0 = "--alldefconfig"
|
|
FILESEXTRAPATHS:prepend:tc0 := "${THISDIR}/linux-arm64-ack-5.10/tc:"
|
|
SRC_URI:append:tc = " \
|
|
file://defconfig \
|
|
file://0001-drm-Add-component-aware-simple-encoder.patch \
|
|
file://0002-drm-arm-komeda-add-RENDER-capability-to-the-device-n.patch \
|
|
file://0003-Adapt-ION-interface-to-match-Android.patch \
|
|
file://0004-dt-bindings-mailbox-arm-mhuv2-Add-bindings.patch \
|
|
file://0005-mailbox-arm_mhuv2-Add-driver.patch \
|
|
file://0006-mailbox-arm_mhuv2-Fix-sparse-warnings.patch \
|
|
file://0007-mailbox-arm_mhuv2-make-remove-callback-return-void.patch \
|
|
file://0008-mailbox-arm_mhuv2-Skip-calling-kfree-with-invalid-po.patch \
|
|
file://0009-arm64-smccc-Add-support-for-SMCCCv1.2-extended-input.patch \
|
|
file://0010-firmware-arm_ffa-Add-initial-FFA-bus-support-for-dev.patch \
|
|
file://0011-firmware-arm_ffa-Add-initial-Arm-FFA-driver-support.patch \
|
|
file://0012-firmware-arm_ffa-Add-support-for-SMCCC-as-transport-.patch \
|
|
file://0013-firmware-arm_ffa-Setup-in-kernel-users-of-FFA-partit.patch \
|
|
file://0014-firmware-arm_ffa-Add-support-for-MEM_-interfaces.patch \
|
|
file://0015-tee-add-sec_world_id-to-struct-tee_shm.patch \
|
|
file://0016-optee-simplify-optee_release.patch \
|
|
file://0017-optee-sync-OP-TEE-headers.patch \
|
|
file://0018-optee-refactor-driver-with-internal-callbacks.patch \
|
|
file://0019-optee-add-a-FF-A-memory-pool.patch \
|
|
file://0020-optee-add-FF-A-support.patch \
|
|
file://0021-drivers-optee-hack-for-UUID-endianess-issue.patch \
|
|
file://0022-arm_ffa-add-support-for-FFA-v1.1.patch \
|
|
"
|
|
|
|
#
|
|
# Total Compute TC1 KMACHINE
|
|
#
|
|
COMPATIBLE_MACHINE:tc1 = "tc1"
|
|
KMACHINE:tc1 = "tc1"
|
|
KCONFIG_MODE:tc1 = "--alldefconfig"
|
|
FILESEXTRAPATHS:prepend:tc1 := "${THISDIR}/linux-arm64-ack-5.10/tc:"
|