[meta-arm,3/7] arm-bsp/linux: Build Linux stable 5.7 for sgi575

Submitted by Prabin CA on Aug. 10, 2020, 5:32 p.m. | Patch ID: 175198

Details

Message ID 20200810173216.10411-3-prabin.ca@arm.com
State New
Headers show

Commit Message

Prabin CA Aug. 10, 2020, 5:32 p.m.
- Update linux-arm inc for including sgi575
        - Add machine conf to add image dependency
          for Linux components

Change-Id: I26c539793b73a3f4a31e40daa4272904a1751b3e
Signed-off-by: Prabin CA <prabin.ca@arm.com>
---
 meta-arm-bsp/conf/machine/sgi575.conf                    | 5 +++++
 .../recipes-kernel/linux/linux-arm-platforms.inc         | 9 +++++++++
 2 files changed, 14 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/sgi575.conf b/meta-arm-bsp/conf/machine/sgi575.conf
index c77f3f5..719d99e 100644
--- a/meta-arm-bsp/conf/machine/sgi575.conf
+++ b/meta-arm-bsp/conf/machine/sgi575.conf
@@ -16,3 +16,8 @@  PREFERRED_VERSION_trusted-firmware-a ?= "2.2%"
 
 EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
 
+# Use kernel provided by linaro
+KERNEL_IMAGETYPE ?= "Image"
+PREFERRED_PROVIDER_virtual/kernel ?= "linux-stable"
+PREFERRED_VERSION_linux-stable ?= "5.7%"
+SERIAL_CONSOLES = "115200;ttyAMA0"
diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
index 4e5635a..9224dde 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
@@ -13,6 +13,7 @@  SRC_URI_append_foundation-armv8 = " ${SRC_URI_KMETA}"
 SRC_URI_append_fvp-base = " ${SRC_URI_KMETA}"
 SRC_URI_append_fvp-base-arm32 = " ${SRC_URI_KMETA}"
 SRC_URI_append_juno = " ${SRC_URI_KMETA}"
+SRC_URI_append_sgi575 = " ${SRC_URI_KMETA}"
 SRC_URI_append_gem5-arm64 = " ${SRC_URI_KMETA}"
 SRCREV_arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"
 
@@ -48,6 +49,14 @@  SRC_URI_append_fvp-base-arm32 = " file://fvp-base-arm32-dts.patch"
 COMPATIBLE_MACHINE_juno = "juno"
 KMACHINE_juno = "juno"
 
+#
+# SGI575 KMACHINE
+#
+COMPATIBLE_MACHINE_sgi575 = "sgi575"
+KMACHINE_sgi575 = "sgi575"
+KBUILD_DEFCONFIG_sgi575 = "defconfig"
+KCONFIG_MODE_sgi575 = "--alldefconfig"
+
 #
 # Total Compute KMACHINE
 #