[meta-arm,4/6] arm-bsp/linux: Build Linux stable 5.7 for rdn1edge

Submitted by Thomas Abraham on Nov. 20, 2020, 4:28 a.m. | Patch ID: 178126

Details

Message ID 20201120042844.21915-4-thomas.abraham@arm.com
State New
Headers show

Commit Message

Thomas Abraham Nov. 20, 2020, 4:28 a.m.
From: Vivek Gautam <vivek.gautam@arm.com>


Update linux-arm inc to add build support for rdn1edge. In addition
to this, add machine conf to add image dependency for Linux
components.

Change-Id: If98fae10b69193ba635bc65b386b136f171d6826
Signed-off-by: Vivek Gautam <vivek.gautam@arm.com>

---
 meta-arm-bsp/conf/machine/rdn1edge.conf                   | 6 ++++++
 meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc | 8 ++++++++
 2 files changed, 14 insertions(+)

-- 
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1404): https://lists.yoctoproject.org/g/meta-arm/message/1404
Mute This Topic: https://lists.yoctoproject.org/mt/78382827/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-

Patch hide | download patch | download mbox

diff --git a/meta-arm-bsp/conf/machine/rdn1edge.conf b/meta-arm-bsp/conf/machine/rdn1edge.conf
index cdc879c..d86c9f7 100644
--- a/meta-arm-bsp/conf/machine/rdn1edge.conf
+++ b/meta-arm-bsp/conf/machine/rdn1edge.conf
@@ -14,3 +14,9 @@  PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-firmware-a"
 PREFERRED_VERSION_trusted-firmware-a ?= "2.3%"
 
 EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"
+
+#Linux Stable Kernel
+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 62b1dec..42d5604 100644
--- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
+++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc
@@ -14,6 +14,7 @@  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_rdn1edge = " ${SRC_URI_KMETA}"
 SRC_URI_append_gem5-arm64 = " ${SRC_URI_KMETA}"
 SRCREV_arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"
 
@@ -70,6 +71,13 @@  KMACHINE_sgi575 = "sgi575"
 KBUILD_DEFCONFIG_sgi575 = "defconfig"
 KCONFIG_MODE_sgi575 = "--alldefconfig"
 
+#
+# RD-N1-Edge KMACHINE
+#
+COMPATIBLE_MACHINE_rdn1edge = "rdn1edge"
+KBUILD_DEFCONFIG_rdn1edge = "defconfig"
+KCONFIG_MODE_rdn1edge = "--alldefconfig"
+
 #
 # Total Compute KMACHINE
 #

Comments

Jon Mason Nov. 20, 2020, 4:11 p.m.
On Fri, Nov 20, 2020 at 09:58:42AM +0530, Thomas Abraham wrote:
> From: Vivek Gautam <vivek.gautam@arm.com>

> 

> Update linux-arm inc to add build support for rdn1edge. In addition

> to this, add machine conf to add image dependency for Linux

> components.

> 

> Change-Id: If98fae10b69193ba635bc65b386b136f171d6826

> Signed-off-by: Vivek Gautam <vivek.gautam@arm.com>


We recently removed all of the meta-kernel kernels and the dependency
on meta-kernel from meta-arm-bsp.  See
https://lists.yoctoproject.org/g/meta-arm/message/1367

So, this patch fails to compile due to the missing dependency.  Given
that linux-yocto is currently at v5.8, wouldn't this be a better
choice (and would not necerssitate adding the meta-kernel dependnecy)?
If not, I would recommend a LTS kernel (v5.4).

Also, meta-kernel has dropped support for 5.7 in their master branch.
So this will fail to compile with meta-arm master and meta-kernel
master (which is how we and the yocto project autobuilder are testing
this), even if we added the meta-kernel dependency back.

So, please rework this and resubmit the series.

Thanks,
Jon


> ---

>  meta-arm-bsp/conf/machine/rdn1edge.conf                   | 6 ++++++

>  meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc | 8 ++++++++

>  2 files changed, 14 insertions(+)

> 

> diff --git a/meta-arm-bsp/conf/machine/rdn1edge.conf b/meta-arm-bsp/conf/machine/rdn1edge.conf

> index cdc879c..d86c9f7 100644

> --- a/meta-arm-bsp/conf/machine/rdn1edge.conf

> +++ b/meta-arm-bsp/conf/machine/rdn1edge.conf

> @@ -14,3 +14,9 @@ PREFERRED_PROVIDER_virtual/trusted-firmware-a ?= "trusted-firmware-a"

>  PREFERRED_VERSION_trusted-firmware-a ?= "2.3%"

>  

>  EXTRA_IMAGEDEPENDS += "virtual/trusted-firmware-a"

> +

> +#Linux Stable Kernel

> +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 62b1dec..42d5604 100644

> --- a/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc

> +++ b/meta-arm-bsp/recipes-kernel/linux/linux-arm-platforms.inc

> @@ -14,6 +14,7 @@ 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_rdn1edge = " ${SRC_URI_KMETA}"

>  SRC_URI_append_gem5-arm64 = " ${SRC_URI_KMETA}"

>  SRCREV_arm-platforms-kmeta = "6147e82375aa9df8f2a162d42ea6406c79c854c5"

>  

> @@ -70,6 +71,13 @@ KMACHINE_sgi575 = "sgi575"

>  KBUILD_DEFCONFIG_sgi575 = "defconfig"

>  KCONFIG_MODE_sgi575 = "--alldefconfig"

>  

> +#

> +# RD-N1-Edge KMACHINE

> +#

> +COMPATIBLE_MACHINE_rdn1edge = "rdn1edge"

> +KBUILD_DEFCONFIG_rdn1edge = "defconfig"

> +KCONFIG_MODE_rdn1edge = "--alldefconfig"

> +

>  #

>  # Total Compute KMACHINE

>  #

> -- 

> 2.17.1

> 


> 

> 

>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#1419): https://lists.yoctoproject.org/g/meta-arm/message/1419
Mute This Topic: https://lists.yoctoproject.org/mt/78382827/1003190
Group Owner: meta-arm+owner@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/meta-arm/unsub [mhalstead@linuxfoundation.org]
-=-=-=-=-=-=-=-=-=-=-=-