[meta-arm,2/4] arm-bsp: Fix tc0 compile

Submitted by Jon Mason on July 14, 2020, 12:58 p.m. | Patch ID: 174432

Details

Message ID 20200714125834.31338-2-jon.mason@arm.com
State New
Headers show

Commit Message

Jon Mason July 14, 2020, 12:58 p.m.
TC0 does not compile on the latest master branch.  Clean-up the recipe
and get it compiling again.

Change-Id: I9eda0db826727ca33cac5a1f0be68024a8827900
Signed-off-by: Jon Mason <jon.mason@arm.com>
---
 .../recipes-kernel/linux/linux-arm-platforms.inc  | 13 +++++++++++++
 .../recipes-kernel/linux/linux-arm64-ack-tc0.inc  | 15 ---------------
 .../linux/linux-arm64-ack_4.19.bbappend           |  5 ++---
 .../recipes-kernel/linux/linux-arm64-ack_4.19.bb  |  1 -
 4 files changed, 15 insertions(+), 19 deletions(-)
 delete mode 100644 meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc

Patch hide | download patch | download mbox

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 fb37610..6f16f49 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
@@ -38,3 +38,16 @@  KMACHINE_fvp-base = "fvp"
 #
 COMPATIBLE_MACHINE_juno = "juno"
 KMACHINE_juno = "juno"
+
+#
+# Total Compute KMACHINE
+#
+COMPATIBLE_MACHINE_tc0 = "tc0"
+KMACHINE_tc0 = "tc0"
+KBUILD_DEFCONFIG_tc0 = "defconfig"
+KCONFIG_MODE_tc0 = "--alldefconfig"
+SRC_URI_append_tc0 = " \
+    file://0001-drm-Add-component-aware-simple-encoder.patch \
+    file://0002-swap-red-and-blue-colors-in-HDLCD-driver.patch \
+    file://defconfig \
+    "
diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc b/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc
deleted file mode 100644
index a8fe6ff..0000000
--- a/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack-tc0.inc
+++ /dev/null
@@ -1,15 +0,0 @@ 
-#
-# TC0 MACHINE specific configurations
-#
-
-FILESEXTRAPATHS_prepend := "${THISDIR}/linux-arm64-ack-4.19:${THISDIR}/files:"
-
-SRC_URI_append = " \
-    file://defconfig \
-    file://0001-drm-Add-component-aware-simple-encoder.patch \
-    file://0002-swap-red-and-blue-colors-in-HDLCD-driver.patch \
-    "
-
-KCONFIG_MODE = "--alldefconfig"
-
-COMPATIBLE_MACHINE = "tc0"
diff --git a/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend b/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend
index 4df4831..4b1aaa0 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm64-ack_4.19.bbappend
@@ -1,6 +1,5 @@ 
 # Machine specific configurations
 
-MACHINE_ACK_REQUIRE ?= ""
-MACHINE_ACK_REQUIRE_tc0 = "linux-arm64-ack-tc0.inc"
+FILESEXTRAPATHS_prepend := "${THISDIR}/linux-arm64-ack-4.19:${THISDIR}/files:"
 
-require ${MACHINE_ACK_REQUIRE}
+require linux-arm-platforms.inc
diff --git a/meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb b/meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb
index 99db960..4eb17e2 100644
--- a/meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb
+++ b/meta-arm/recipes-kernel/linux/linux-arm64-ack_4.19.bb
@@ -3,7 +3,6 @@ 
 # Copyright (c) 2020 Arm Limited
 #
 
-
 DESCRIPTION = "Linux Android Common Kernel"
 SECTION = "kernel"
 LICENSE = "GPLv2"