From 14ca86bdb3bdfd2aceee4531366cf39b90690fe0 Mon Sep 17 00:00:00 2001 From: matteolel Date: Thu, 8 Dec 2022 17:09:33 +0100 Subject: [PATCH] Add bananapi-m2-zero machine --- conf/machine/bananapi-m2-zero.conf | 10 ++++++++++ recipes-kernel/linux/linux-mainline.inc | 1 + 2 files changed, 11 insertions(+) create mode 100644 conf/machine/bananapi-m2-zero.conf diff --git a/conf/machine/bananapi-m2-zero.conf b/conf/machine/bananapi-m2-zero.conf new file mode 100644 index 0000000..ab8cfa1 --- /dev/null +++ b/conf/machine/bananapi-m2-zero.conf @@ -0,0 +1,10 @@ +#@TYPE: Machine +#@NAME: bananapi-m2-zero +#@DESCRIPTION: Machine configuration for the Banana Pi M2 Zero, base on Allwinner H3 CPU + +require conf/machine/include/sun8i.inc +require conf/machine/include/hardware/ap6212a.inc + +KERNEL_DEVICETREE = "sun8i-h2-plus-bananapi-m2-zero.dtb" +UBOOT_MACHINE = "bananapi_m2_zero_defconfig" + diff --git a/recipes-kernel/linux/linux-mainline.inc b/recipes-kernel/linux/linux-mainline.inc index d9f01b6..29f71bc 100644 --- a/recipes-kernel/linux/linux-mainline.inc +++ b/recipes-kernel/linux/linux-mainline.inc @@ -29,6 +29,7 @@ SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \ SRC_URI:append:use-mailine-graphics = " file://drm.cfg" SRC_URI:append:bananapi = " file://axp20x.cfg" +SRC_URI:append:bananapi-m2-zero = " file://axp20x.cfg" SRC_URI:append:cubietruck = " file://axp20x.cfg" FILES_${KERNEL_PACKAGE_NAME}-base:append = " ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"