From 2f6e00210b5d79eee21dd8f2c3399fb8505d838e Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Sun, 8 Dec 2024 02:08:31 +0200 Subject: [PATCH] sun9i.inc: Add SoC family sun9i Create SoC family sun9i for machines with Allwinner A80 that are supported by mainline U-Boot and mainline Linux kernel. Signed-off-by: Leon Anavi --- conf/machine/include/sun9i.inc | 5 +++++ recipes-bsp/u-boot/u-boot_%.bbappend | 2 +- recipes-kernel/linux/linux-mainline.inc | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 conf/machine/include/sun9i.inc diff --git a/conf/machine/include/sun9i.inc b/conf/machine/include/sun9i.inc new file mode 100644 index 0000000..1037a20 --- /dev/null +++ b/conf/machine/include/sun9i.inc @@ -0,0 +1,5 @@ +require conf/machine/include/sunxi.inc +require conf/machine/include/sunxi-mali.inc +require conf/machine/include/arm/armv7a/tune-cortexa15.inc + +SOC_FAMILY = "sun9i" diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend index ea69e04..6420a7d 100644 --- a/recipes-bsp/u-boot/u-boot_%.bbappend +++ b/recipes-bsp/u-boot/u-boot_%.bbappend @@ -3,7 +3,7 @@ FILESEXTRAPATHS:prepend:sunxi := "${THISDIR}/files:" DEPENDS:append:sunxi = " bc-native dtc-native swig-native python3-native flex-native bison-native " DEPENDS:append:sun50i = " trusted-firmware-a" -COMPATIBLE_MACHINE:sunxi = "(sun4i|sun5i|sun7i|sun8i|sun50i)" +COMPATIBLE_MACHINE:sunxi = "(sun4i|sun5i|sun7i|sun8i|sun9i|sun50i)" DEFAULT_PREFERENCE:sun4i = "1" DEFAULT_PREFERENCE:sun5i = "1" diff --git a/recipes-kernel/linux/linux-mainline.inc b/recipes-kernel/linux/linux-mainline.inc index da1b40e..91e562d 100644 --- a/recipes-kernel/linux/linux-mainline.inc +++ b/recipes-kernel/linux/linux-mainline.inc @@ -1,7 +1,7 @@ SECTION = "kernel" LICENSE = "GPL-2.0-only" LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814" -COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun50i)" +COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun9i|sun50i)" inherit kernel