From afae76b548eb79ebebd4db1b5980f7e17a025a44 Mon Sep 17 00:00:00 2001 From: Ovidiu Panait Date: Fri, 15 Aug 2025 10:20:42 +0300 Subject: [PATCH 1/2] pya20: fix COMPATIBLE_MACHINE regex The current regex in COMPATIBLE_MACHINE will also match machine names which are not in the list, such as 'olinuxino-a20som204'. Since 'olinuxino-a20som204' SOM is newer, a mapping.h file is not available for it in upstream pya20, so there is no need to build the recipe for it. Add "^$" to the regex in order to restrict the pya20 recipe only to those machines that have a mapping.h file. Signed-off-by: Ovidiu Panait --- recipes-devtools/python/pya20_0.2.12.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-devtools/python/pya20_0.2.12.bb b/recipes-devtools/python/pya20_0.2.12.bb index 16d304d..1866636 100644 --- a/recipes-devtools/python/pya20_0.2.12.bb +++ b/recipes-devtools/python/pya20_0.2.12.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;md5=4e584373bb0f46ef1e423cb7df37847d" DEPENDS = "python3" # No GPIO mappings for other machines yet -COMPATIBLE_MACHINE = "(olinuxino-a13|olinuxino-a10|olinuxino-a20|olinuxino-a10lime|olinuxino-a20lime|olinuxino-a20lime2|olinuxino-a13som|olinuxino-a20som)" +COMPATIBLE_MACHINE = "^(olinuxino-a13|olinuxino-a10|olinuxino-a20|olinuxino-a10lime|olinuxino-a20lime|olinuxino-a20lime2|olinuxino-a13som|olinuxino-a20som)$" SRC_URI = "https://pypi.python.org/packages/source/p/pyA20/pyA20-${PV}.tar.gz \ file://mapping.h \ From cd83074deecf84bcc9387d9c9107163824bb6f51 Mon Sep 17 00:00:00 2001 From: Ovidiu Panait Date: Fri, 15 Aug 2025 11:32:22 +0300 Subject: [PATCH 2/2] olinuxino-a20som204.conf: add support for Olimex A20-SOM204-EVB board Add machine file for Olimex A20-SOM204-EVB board. It is an expansion board for the Olimex A20-SOM204 SOM that uses the sun7i Allwinner A20 Soc. It is supported in U-Boot and mainline Linux kernel. Signed-off-by: Ovidiu Panait --- conf/machine/olinuxino-a20som204.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 conf/machine/olinuxino-a20som204.conf diff --git a/conf/machine/olinuxino-a20som204.conf b/conf/machine/olinuxino-a20som204.conf new file mode 100644 index 0000000..dbd90c7 --- /dev/null +++ b/conf/machine/olinuxino-a20som204.conf @@ -0,0 +1,9 @@ +#@TYPE: Machine +#@NAME: Olimex A20-SOM204 +#@DESCRIPTION: Machine configuration for the Olimex A20-SOM204 Evaluation Board, based on Allwinner A20 CPU +#https://github.com/OLIMEX/SOM204 + +require conf/machine/include/sun7i.inc + +KERNEL_DEVICETREE = "allwinner/sun7i-a20-olimex-som204-evb.dtb" +UBOOT_MACHINE = "A20-Olimex-SOM204-EVB_defconfig"