mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2025-07-17 22:39:48 +02:00
Compare commits
43 Commits
Author | SHA1 | Date | |
---|---|---|---|
b99cc59cfc | |||
f367a1ff2c | |||
7b7c64f8ef | |||
a3848d2e23 | |||
eae1cd6122 | |||
91ddc99c98 | |||
ea508b4f10 | |||
e76d39e3d2 | |||
a1a6504789 | |||
c47c7dcc61 | |||
b1db4fbfc7 | |||
e4d5c7323e | |||
37bfb7c8cd | |||
648484cd2c | |||
296735769d | |||
f3243b56d2 | |||
8b7ee077bf | |||
6787fdcc4a | |||
56bfc99b03 | |||
ebde1a411c | |||
ee0b2699ee | |||
d46ff454d0 | |||
ee3a551b83 | |||
74a488e2ef | |||
1d6ef084db | |||
fa0846c0eb | |||
e9d4b90576 | |||
620c66eac5 | |||
4b928c5b72 | |||
6eab521310 | |||
c82b2f8612 | |||
02e3e7fba8 | |||
12cbb60a76 | |||
2398d55ad4 | |||
f9060cda38 | |||
f25203c936 | |||
b2f0d28f49 | |||
89be65d931 | |||
802857ee59 | |||
fbf5ac3e31 | |||
c9527c099d | |||
21462a47a2 | |||
7fdbe68c1f |
17
README.md
17
README.md
@ -19,8 +19,12 @@ Maintainers:
|
|||||||
Kernel / U-Boot Version
|
Kernel / U-Boot Version
|
||||||
===========
|
===========
|
||||||
Most Allwinner devices and hardware are supported in mainline kernel and U-Boot, so this layer builds mainline by default.
|
Most Allwinner devices and hardware are supported in mainline kernel and U-Boot, so this layer builds mainline by default.
|
||||||
|
|
||||||
|
Legacy sunxi Kernel / U-Boot
|
||||||
|
-----------
|
||||||
|
|
||||||
There is a custom U-Boot and Kernel version for sunxi devices which includes some special drivers not mainlined.
|
There is a custom U-Boot and Kernel version for sunxi devices which includes some special drivers not mainlined.
|
||||||
These versions are rather old (3.4 for kernel and 2014.04 for U-Boot), but may support more functions and devices than current mainline
|
These versions are rather old (3.4 for kernel and 2014.04 for U-Boot), but may support more functions and devices than current mainline.
|
||||||
|
|
||||||
If you want to switch back to sunxi versions for some reasons (no device tree available, unsupported hardware), either:
|
If you want to switch back to sunxi versions for some reasons (no device tree available, unsupported hardware), either:
|
||||||
- change the file conf/machine/include/sunxi.inc to include the following block
|
- change the file conf/machine/include/sunxi.inc to include the following block
|
||||||
@ -35,9 +39,16 @@ If you already have built the mainline versions it might be necessary to reset t
|
|||||||
|
|
||||||
bitbake -c clean virtual/kernel virtual/bootloader
|
bitbake -c clean virtual/kernel virtual/bootloader
|
||||||
|
|
||||||
For mainline kernel we have now support for latest LTS, stable and bleeding edge (latest possible rc).
|
Mainline Kernel / U-Boot
|
||||||
|
-----------
|
||||||
|
|
||||||
|
For mainline kernel we have now support for latest LTS and stable.
|
||||||
By default we use latest LTS. If you would like to change version please update ```PREFERRED_VERSION_linux-mainline``` in:
|
By default we use latest LTS. If you would like to change version please update ```PREFERRED_VERSION_linux-mainline``` in:
|
||||||
* [conf/machine/include/sunxi.inc](https://github.com/linux-sunxi/meta-sunxi/blob/4921234ed77f9df77c65c88637ce50468f65bde7/conf/machine/include/sunxi.inc#L16)
|
* [conf/machine/include/sunxi.inc](https://github.com/linux-sunxi/meta-sunxi/blob/fa0846c0eb23e3424b89acb4d5a327e921f73497/conf/machine/include/sunxi.inc#L16)
|
||||||
|
|
||||||
|
When using mainline kernel ≥ 5.2 it is now possible to use the mainline graphics drivers *lima* and *panfrost*, instead of the *mali* driver provided by ARM. To enable open source mainline graphics support add the following line in your `local.conf`:
|
||||||
|
|
||||||
|
MACHINEOVERRIDES .= ":use-mailine-graphics"
|
||||||
|
|
||||||
Performance
|
Performance
|
||||||
===========
|
===========
|
||||||
|
@ -17,7 +17,7 @@ inherit image_types
|
|||||||
IMAGE_TYPEDEP_sunxi-sdimg = "${SDIMG_ROOTFS_TYPE}"
|
IMAGE_TYPEDEP_sunxi-sdimg = "${SDIMG_ROOTFS_TYPE}"
|
||||||
|
|
||||||
# Boot partition volume id
|
# Boot partition volume id
|
||||||
BOOTDD_VOLUME_ID ?= "${MACHINE}"
|
BOOTDD_VOLUME_ID ?= "boot"
|
||||||
|
|
||||||
# Boot partition size [in KiB]
|
# Boot partition size [in KiB]
|
||||||
BOOT_SPACE ?= "40960"
|
BOOT_SPACE ?= "40960"
|
||||||
|
@ -14,4 +14,4 @@ LAYERVERSION_meta-sunxi = "1"
|
|||||||
|
|
||||||
LAYERDEPENDS_meta-sunxi = "core openembedded-layer"
|
LAYERDEPENDS_meta-sunxi = "core openembedded-layer"
|
||||||
|
|
||||||
LAYERSERIES_COMPAT_meta-sunxi = "zeus"
|
LAYERSERIES_COMPAT_meta-sunxi = "zeus dunfell"
|
||||||
|
9
conf/machine/bananapi-m2m.conf
Normal file
9
conf/machine/bananapi-m2m.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: bananapi-m2m
|
||||||
|
#@DESCRIPTION: Machine configuration for the Banana Pi M2M, base on Allwinner H8 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-r16-bananapi-m2m.dtb"
|
||||||
|
UBOOT_MACHINE = "Bananapi_m2m_defconfig"
|
||||||
|
|
9
conf/machine/bananapi-m2plus.conf
Normal file
9
conf/machine/bananapi-m2plus.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: bananapi-m2plus
|
||||||
|
#@DESCRIPTION: Machine configuration for the Banana Pi M2+, base on Allwinner H3 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-h3-bananapi-m2-plus.dtb"
|
||||||
|
UBOOT_MACHINE = "bananapi_m2_plus_h3_defconfig"
|
||||||
|
|
8
conf/machine/bananapi-m64.conf
Normal file
8
conf/machine/bananapi-m64.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: pine64-plus
|
||||||
|
#@DESCRIPTION: Machine configuration for the pine64-plus, based on Allwinner A64 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun50i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "allwinner/sun50i-a64-bananapi-m64.dtb"
|
||||||
|
UBOOT_MACHINE = "bananapi_m64_defconfig"
|
5
conf/machine/include/hardware/ap6212a.inc
Normal file
5
conf/machine/include/hardware/ap6212a.inc
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Include for boards with AMPAK 6212A Wifi / Bluetooth module
|
||||||
|
# https://linux-sunxi.org/Wifi#Ampak
|
||||||
|
|
||||||
|
MACHINE_EXTRA_RRECOMMENDS_append = " kernel-module-brcmfmac"
|
||||||
|
MACHINE_EXTRA_RDEPENDS_append = " linux-firmware-bcm43430"
|
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
15
conf/machine/include/sunxi-mali-driver.inc
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
|
||||||
|
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
|
||||||
|
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali"
|
||||||
|
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali"
|
||||||
|
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali"
|
||||||
|
|
||||||
|
PACKAGECONFIG_remove_pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}"
|
||||||
|
|
||||||
|
XSERVER += "sunxi-mali \
|
||||||
|
sunxi-mali-dev"
|
||||||
|
|
||||||
|
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\
|
||||||
|
kernel-module-mali \
|
||||||
|
kernel-module-mali-drm \
|
||||||
|
"
|
@ -1,15 +1,5 @@
|
|||||||
PREFERRED_PROVIDER_virtual/mesa ?= "mesa-gl"
|
# The "sunxi-mailine-graphics-drivers.inc" doesn't exist, but it can be created
|
||||||
PREFERRED_PROVIDER_virtual/libgl ?= "mesa-gl"
|
# in the future if needed. Using include directive ensures build doesn't fail
|
||||||
PREFERRED_PROVIDER_virtual/libgles1 ?= "sunxi-mali"
|
# if .inc file doesn't exist:
|
||||||
PREFERRED_PROVIDER_virtual/libgles2 ?= "sunxi-mali"
|
# https://www.yoctoproject.org/pipermail/yocto/2019-August/046484.html
|
||||||
PREFERRED_PROVIDER_virtual/egl ?= "sunxi-mali"
|
include ${@'sunxi-mali-driver.inc' if 'use-mailine-graphics' not in d.getVar("MACHINEOVERRIDES").split(":") else 'sunxi-mailine-graphics-drivers.inc' }
|
||||||
|
|
||||||
PACKAGECONFIG_remove_pn-xserver-xorg = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'glamor', '', d)}"
|
|
||||||
|
|
||||||
XSERVER += "sunxi-mali \
|
|
||||||
sunxi-mali-dev"
|
|
||||||
|
|
||||||
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS += "\
|
|
||||||
kernel-module-mali \
|
|
||||||
kernel-module-mali-drm \
|
|
||||||
"
|
|
||||||
|
@ -13,7 +13,7 @@ XSERVER = "xserver-xorg \
|
|||||||
xf86-input-keyboard"
|
xf86-input-keyboard"
|
||||||
|
|
||||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
||||||
PREFERRED_VERSION_linux-mainline ?= "4.19%"
|
PREFERRED_VERSION_linux-mainline ?= "5.4.%"
|
||||||
PREFERRED_PROVIDER_u-boot ?= "u-boot"
|
PREFERRED_PROVIDER_u-boot ?= "u-boot"
|
||||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
# on the Allwinner H5 SoC.
|
# on the Allwinner H5 SoC.
|
||||||
|
|
||||||
require conf/machine/include/sun50i.inc
|
require conf/machine/include/sun50i.inc
|
||||||
|
require conf/machine/include/hardware/ap6212a.inc
|
||||||
|
|
||||||
KERNEL_DEVICETREE = "allwinner/sun50i-h5-nanopi-neo-plus2.dtb"
|
KERNEL_DEVICETREE = "allwinner/sun50i-h5-nanopi-neo-plus2.dtb"
|
||||||
UBOOT_MACHINE = "nanopi_neo_plus2_defconfig"
|
UBOOT_MACHINE = "nanopi_neo_plus2_defconfig"
|
||||||
|
8
conf/machine/orange-pi-plus2e.conf
Normal file
8
conf/machine/orange-pi-plus2e.conf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: orange-pi-plus2e
|
||||||
|
#@DESCRIPTION: Machine configuration for the orange-pi-plus2e, base on allwinner H3 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-h3-orangepi-plus2e.dtb"
|
||||||
|
UBOOT_MACHINE = "orangepi_plus2e_defconfig"
|
9
conf/machine/orange-pi-zero-plus2-h3.conf
Normal file
9
conf/machine/orange-pi-zero-plus2-h3.conf
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
#@TYPE: Machine
|
||||||
|
#@NAME: orange-pi-zero-plus2-h3
|
||||||
|
#@DESCRIPTION: Machine configuration for the orange-pi-zero-plus2, based on Allwinner H3 CPU
|
||||||
|
|
||||||
|
require conf/machine/include/sun8i.inc
|
||||||
|
require conf/machine/include/hardware/ap6212a.inc
|
||||||
|
|
||||||
|
KERNEL_DEVICETREE = "sun8i-h3-orangepi-zero-plus2.dtb"
|
||||||
|
UBOOT_MACHINE = "orangepi_zero_plus2_h3_defconfig"
|
@ -2,8 +2,8 @@
|
|||||||
#@NAME: orange-pi-zero-plus2
|
#@NAME: orange-pi-zero-plus2
|
||||||
#@DESCRIPTION: Machine configuration for the orange-pi-zero-plus2, base on Allwinner H5 CPU
|
#@DESCRIPTION: Machine configuration for the orange-pi-zero-plus2, base on Allwinner H5 CPU
|
||||||
|
|
||||||
|
|
||||||
require conf/machine/include/sun50i.inc
|
require conf/machine/include/sun50i.inc
|
||||||
|
require conf/machine/include/hardware/ap6212a.inc
|
||||||
|
|
||||||
KERNEL_DEVICETREE = "allwinner/sun50i-h5-orangepi-zero-plus2.dtb"
|
KERNEL_DEVICETREE = "allwinner/sun50i-h5-orangepi-zero-plus2.dtb"
|
||||||
UBOOT_MACHINE = "orangepi_zero_plus2_defconfig"
|
UBOOT_MACHINE = "orangepi_zero_plus2_defconfig"
|
||||||
|
@ -1,16 +1,26 @@
|
|||||||
DESCRIPTION = "ARM Trusted Firmware Allwinner"
|
inherit deploy
|
||||||
LICENSE = "BSD"
|
|
||||||
LIC_FILES_CHKSUM = "file://license.md;md5=829bdeb34c1d9044f393d5a16c068371"
|
|
||||||
|
|
||||||
SRC_URI = "git://github.com/apritzel/arm-trusted-firmware;nobranch=1"
|
DESCRIPTION = "ARM Trusted Firmware"
|
||||||
SRCREV = "aa75c8da415158a94b82a430b2b40000778e851f"
|
LICENSE = "BSD"
|
||||||
|
LIC_FILES_CHKSUM = "file://license.rst;md5=1dd070c98a281d18d9eefd938729b031"
|
||||||
|
|
||||||
|
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
|
||||||
|
|
||||||
|
SRC_URI = " \
|
||||||
|
git://github.com/ARM-software/arm-trusted-firmware.git;nobranch=1 \
|
||||||
|
"
|
||||||
|
SRCREV_sun50iw2 = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
||||||
|
SRCREV_sun50iw6 = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
||||||
|
SRCREV_sun50i = "c390ecd6db5fadb054466a8d4168d9bbbff2fa95"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
B = "${WORKDIR}/build"
|
B = "${WORKDIR}/build"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "(sun50i)"
|
COMPATIBLE_MACHINE = "(sun50iw2|sun50iw6|sun50i)"
|
||||||
|
|
||||||
PLATFORM_sun50i = "sun50iw1p1"
|
PLATFORM_sun50iw2 = "sun50i_a64"
|
||||||
|
PLATFORM_sun50i = "sun50i_a64"
|
||||||
|
PLATFORM_sun50iw6 = "sun50i_h6"
|
||||||
|
|
||||||
LDFLAGS[unexport] = "1"
|
LDFLAGS[unexport] = "1"
|
||||||
|
|
||||||
@ -22,6 +32,8 @@ do_compile() {
|
|||||||
all
|
all
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install() {
|
do_deploy() {
|
||||||
install -D -p -m 0644 ${B}/${PLATFORM}/release/bl31.bin ${DEPLOY_DIR_IMAGE}/bl31.bin
|
install -D -p -m 0644 ${B}/${PLATFORM}/release/bl31.bin ${DEPLOYDIR}/bl31.bin
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addtask deploy after do_compile
|
||||||
|
@ -0,0 +1,67 @@
|
|||||||
|
From bb6f500c10cc8f5f31245626899e0732b7b287c5 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
Date: Wed, 19 Aug 2020 13:39:49 +0200
|
||||||
|
Subject: [PATCH] Revert "sunxi: psci: avoid error address-of-packed-member"
|
||||||
|
|
||||||
|
This reverts commit 9bd34a69a453d409792e08c00953ce8862145e65.
|
||||||
|
---
|
||||||
|
arch/arm/cpu/armv7/sunxi/psci.c | 16 +++++-----------
|
||||||
|
1 file changed, 5 insertions(+), 11 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/arch/arm/cpu/armv7/sunxi/psci.c b/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
index 5b68900..2c5d99e 100644
|
||||||
|
--- a/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
+++ b/arch/arm/cpu/armv7/sunxi/psci.c
|
||||||
|
@@ -75,7 +75,7 @@ static void __secure __mdelay(u32 ms)
|
||||||
|
isb();
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure clamp_release(void __maybe_unused *clamp)
|
||||||
|
+static void __secure clamp_release(u32 __maybe_unused *clamp)
|
||||||
|
{
|
||||||
|
#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
|
||||||
|
defined(CONFIG_MACH_SUN8I_H3) || \
|
||||||
|
@@ -90,7 +90,7 @@ static void __secure clamp_release(void __maybe_unused *clamp)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure clamp_set(void __maybe_unused *clamp)
|
||||||
|
+static void __secure clamp_set(u32 __maybe_unused *clamp)
|
||||||
|
{
|
||||||
|
#if defined(CONFIG_MACH_SUN6I) || defined(CONFIG_MACH_SUN7I) || \
|
||||||
|
defined(CONFIG_MACH_SUN8I_H3) || \
|
||||||
|
@@ -99,28 +99,22 @@ static void __secure clamp_set(void __maybe_unused *clamp)
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
-static void __secure sunxi_power_switch(void *clamp, void *pwroff_ptr, bool on,
|
||||||
|
+static void __secure sunxi_power_switch(u32 *clamp, u32 *pwroff, bool on,
|
||||||
|
int cpu)
|
||||||
|
{
|
||||||
|
- u32 pwroff;
|
||||||
|
-
|
||||||
|
- memcpy(&pwroff, pwroff_ptr, sizeof(u32));
|
||||||
|
-
|
||||||
|
if (on) {
|
||||||
|
/* Release power clamp */
|
||||||
|
clamp_release(clamp);
|
||||||
|
|
||||||
|
/* Clear power gating */
|
||||||
|
- clrbits_le32(&pwroff, BIT(cpu));
|
||||||
|
+ clrbits_le32(pwroff, BIT(cpu));
|
||||||
|
} else {
|
||||||
|
/* Set power gating */
|
||||||
|
- setbits_le32(&pwroff, BIT(cpu));
|
||||||
|
+ setbits_le32(pwroff, BIT(cpu));
|
||||||
|
|
||||||
|
/* Activate power clamp */
|
||||||
|
clamp_set(clamp);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- memcpy(pwroff_ptr, &pwroff, sizeof(u32));
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_MACH_SUN8I_R40
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
@ -15,6 +15,8 @@ SRC_URI += " \
|
|||||||
file://0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch \
|
file://0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch \
|
||||||
file://boot.cmd \
|
file://boot.cmd \
|
||||||
"
|
"
|
||||||
|
# fix booting issue on orange pi zero
|
||||||
|
SRC_URI_append_orange-pi-zero = " file://0002-Revert-sunxi-psci-avoid-error-address-of-packed-memb.patch"
|
||||||
|
|
||||||
UBOOT_ENV_SUFFIX = "scr"
|
UBOOT_ENV_SUFFIX = "scr"
|
||||||
UBOOT_ENV = "boot"
|
UBOOT_ENV = "boot"
|
||||||
|
@ -1,51 +0,0 @@
|
|||||||
--- pyA20-0.2.1/setup.py 2014-09-04 12:17:18.000000000 +0200
|
|
||||||
+++ pyA20-0.2.1/setup.py 2014-11-24 17:44:37.000000000 +0100
|
|
||||||
@@ -43,31 +43,31 @@
|
|
||||||
Detect processor type
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
- cpuinfo = open("/proc/cpuinfo", 'r')
|
|
||||||
- for line in cpuinfo:
|
|
||||||
- if "Hardware" in line:
|
|
||||||
- processor = line.split(":")[1].rstrip()
|
|
||||||
+ #cpuinfo = open("/proc/cpuinfo", 'r')
|
|
||||||
+ #for line in cpuinfo:
|
|
||||||
+ # if "Hardware" in line:
|
|
||||||
+ # processor = line.split(":")[1].rstrip()
|
|
||||||
|
|
||||||
- if "sun4i" in processor:
|
|
||||||
- print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A10)")
|
|
||||||
+ # if "sun4i" in processor:
|
|
||||||
+ # print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A10)")
|
|
||||||
|
|
||||||
- elif "sun5i" in processor:
|
|
||||||
- print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A13)")
|
|
||||||
+ # elif "sun5i" in processor:
|
|
||||||
+ # print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A13)")
|
|
||||||
|
|
||||||
- elif "sun7i" in processor:
|
|
||||||
- print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A20)")
|
|
||||||
+ # elif "sun7i" in processor:
|
|
||||||
+ # print ("Detected processor: " + print_color(processor) + " (Probably Allwinner A20)")
|
|
||||||
|
|
||||||
- else:
|
|
||||||
- print ("Detected processor: " + print_color("unknown"))
|
|
||||||
+ # else:
|
|
||||||
+ # print ("Detected processor: " + print_color("unknown"))
|
|
||||||
|
|
||||||
|
|
||||||
- if processor_type not in processor:
|
|
||||||
- print_warning()
|
|
||||||
+ # if processor_type not in processor:
|
|
||||||
+ # print_warning()
|
|
||||||
|
|
||||||
- return
|
|
||||||
+ return
|
|
||||||
|
|
||||||
- print ("No processor detected")
|
|
||||||
- print_warning()
|
|
||||||
+ #print ("No processor detected")
|
|
||||||
+ #print_warning()
|
|
||||||
|
|
||||||
|
|
||||||
class build_ext(_build_ext):
|
|
@ -1,24 +1,23 @@
|
|||||||
DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels"
|
DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels"
|
||||||
HOMEPAGE = "https://pypi.python.org/pypi/pyA20"
|
HOMEPAGE = "https://pypi.python.org/pypi/pyA20"
|
||||||
SECTION = "devel/python"
|
SECTION = "devel/python"
|
||||||
LICENSE = "MIT"
|
LICENSE = "GPLv3"
|
||||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=bfe0261ded6cff75086193ec2f79129e"
|
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=4e584373bb0f46ef1e423cb7df37847d"
|
||||||
DEPENDS = "python"
|
DEPENDS = "python3"
|
||||||
|
|
||||||
# No GPIO mappings for other machines yet
|
# 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 \
|
SRC_URI = "https://pypi.python.org/packages/source/p/pyA20/pyA20-${PV}.tar.gz \
|
||||||
file://setup.py.patch \
|
|
||||||
file://mapping.h \
|
file://mapping.h \
|
||||||
"
|
"
|
||||||
S = "${WORKDIR}/pyA20-${PV}"
|
S = "${WORKDIR}/pyA20-${PV}"
|
||||||
|
|
||||||
inherit distutils
|
inherit distutils3
|
||||||
|
|
||||||
do_compile_prepend() {
|
do_compile_prepend() {
|
||||||
cp ${WORKDIR}/mapping.h ${S}/pyA20/gpio/mapping.h
|
cp ${WORKDIR}/mapping.h ${S}/pyA20/gpio/mapping.h
|
||||||
}
|
}
|
||||||
|
|
||||||
SRC_URI[md5sum] = "2290066bbe274000c53693959a8005b4"
|
SRC_URI[md5sum] = "cab03b4931199804603d1074f6d8f48f"
|
||||||
SRC_URI[sha256sum] = "b15e4ee1016b7eb52001cbccde3751868624a88d2adbb9adc5404628f7e59e7e"
|
SRC_URI[sha256sum] = "4bef559a9c5a4d648d9834bad996cf2805b20d6063b8051029ffdf9deda2b536"
|
@ -1,24 +0,0 @@
|
|||||||
DESCRIPTION = "A module to control Allwinner GPIO,SPI and I2C channels"
|
|
||||||
HOMEPAGE = "https://pypi.python.org/pypi/pyA20SOM"
|
|
||||||
SECTION = "devel/python"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://PKG-INFO;md5=cf6345f2cb2acee98b01c493d68b8322"
|
|
||||||
DEPENDS = "python"
|
|
||||||
|
|
||||||
# No GPIO mappings for other machines yet
|
|
||||||
COMPATIBLE_MACHINE = "olinuxino-a20som"
|
|
||||||
|
|
||||||
SRC_URI = "https://pypi.python.org/packages/source/p/pyA20SOM/pyA20SOM-${PV}.tar.gz \
|
|
||||||
file://setup.py.patch \
|
|
||||||
file://mapping.h \
|
|
||||||
"
|
|
||||||
S = "${WORKDIR}/pyA20SOM-${PV}"
|
|
||||||
|
|
||||||
inherit distutils
|
|
||||||
|
|
||||||
do_compile_prepend() {
|
|
||||||
cp ${WORKDIR}/mapping.h ${S}/pyA20SOM/gpio/mapping.h
|
|
||||||
}
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "a720115ef1d3dffe82f42f2157ca1c56"
|
|
||||||
SRC_URI[sha256sum] = "1ac1025596cc112964f7caac9a6a523d5da61623c248ccc178c6cbb4bc1b4549"
|
|
5
recipes-graphics/mesa/mesa_%.bbappend
Normal file
5
recipes-graphics/mesa/mesa_%.bbappend
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# Enable lima and panfrost Mesa drivers
|
||||||
|
PACKAGECONFIG_append_use-mailine-graphics = " lima panfrost"
|
||||||
|
# Enable KMS renderonly Mesa support
|
||||||
|
# See https://cgit.freedesktop.org/mesa/mesa/commit/?id=2b780fe89300199f2334539aa1678e9b68f0434f
|
||||||
|
GALLIUMDRIVERS_append_use-mailine-graphics = ",kmsro"
|
13
recipes-kernel/linux-firmware/linux-firmware_%.bbappend
Normal file
13
recipes-kernel/linux-firmware/linux-firmware_%.bbappend
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# The brcmfmac driver looks for NVRAM files using the first entry in board
|
||||||
|
# compatible since kernel >= 5.0:
|
||||||
|
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=0ad4b55b2f29784f93875e6231bf57cd233624a2
|
||||||
|
# We create a link to the AP6212 module NVRAM file so that firmware is
|
||||||
|
# autodetected by the driver.
|
||||||
|
# WARNING: The following commit is required for NVRAM files to be included in
|
||||||
|
# linux-firmware-bcm43430 package:
|
||||||
|
# http://git.openembedded.org/openembedded-core/commit/?id=dde0f79f32fa6bab045ef60199903f74c4cc3393
|
||||||
|
do_install_append() {
|
||||||
|
ln -sf -r ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.AP6212.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.xunlong,orangepi-zero-plus2.txt
|
||||||
|
ln -sf -r ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.AP6212.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.xunlong,orangepi-zero-plus2-h3.txt
|
||||||
|
ln -sf -r ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.AP6212.txt ${D}${nonarch_base_libdir}/firmware/brcm/brcmfmac43430-sdio.friendlyarm,nanopi-neo-plus2.txt
|
||||||
|
}
|
@ -1,5 +1,4 @@
|
|||||||
SECTION = "kernel"
|
SECTION = "kernel"
|
||||||
DESCRIPTION = "Mainline Stable Linux kernel"
|
|
||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||||
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun50i)"
|
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun50i)"
|
||||||
@ -21,14 +20,13 @@ KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
|||||||
|
|
||||||
S = "${WORKDIR}/linux-${PV}"
|
S = "${WORKDIR}/linux-${PV}"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "6f4ab59d6ac7311f4245fc359706a0b7"
|
|
||||||
SRC_URI[sha256sum] = "78f3cfc6c20b10ff21c0bb22d7d257cab03781c44d8c5aae289f749f94f76649"
|
|
||||||
|
|
||||||
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \
|
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v5.x/linux-${PV}.tar.xz \
|
||||||
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
||||||
file://defconfig \
|
|
||||||
"
|
|
||||||
|
|
||||||
SRC_URI_append_orange-pi-zero += "\
|
|
||||||
file://0001-dts-orange-pi-zero-Add-wifi-support.patch \
|
file://0001-dts-orange-pi-zero-Add-wifi-support.patch \
|
||||||
"
|
file://defconfig \
|
||||||
|
"
|
||||||
|
|
||||||
|
SRC_URI_append_use-mailine-graphics = " file://drm.cfg"
|
||||||
|
SRC_URI_append_bananapi = " file://axp20x.cfg"
|
||||||
|
|
||||||
|
FILES_${KERNEL_PACKAGE_NAME}-base_append = " ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
@ -1,28 +1,18 @@
|
|||||||
From 055155f463693e61f9018a011ad600d872d6736f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Marek Belisko <marek.belisko@open-nandra.com>
|
|
||||||
Date: Fri, 2 Aug 2019 14:46:10 +0200
|
|
||||||
Subject: [PATCH] dts: orange-pi-zero: Add wifi support
|
|
||||||
|
|
||||||
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
|
|
||||||
---
|
|
||||||
arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts | 47 ++++++++++++++++++-----
|
|
||||||
1 file changed, 37 insertions(+), 10 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
||||||
index 84cd9c0..77b2fc6 100644
|
index 84cd9c061..917986cce 100644
|
||||||
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
||||||
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
+++ b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
|
||||||
@@ -80,13 +80,14 @@
|
@@ -80,13 +80,15 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
- reg_vcc_wifi: reg_vcc_wifi {
|
- reg_vcc_wifi: reg_vcc_wifi {
|
||||||
- compatible = "regulator-fixed";
|
+ vdd_wifi: vdd_wifi {
|
||||||
|
compatible = "regulator-fixed";
|
||||||
- regulator-min-microvolt = <3300000>;
|
- regulator-min-microvolt = <3300000>;
|
||||||
- regulator-max-microvolt = <3300000>;
|
- regulator-max-microvolt = <3300000>;
|
||||||
- regulator-name = "vcc-wifi";
|
- regulator-name = "vcc-wifi";
|
||||||
- enable-active-high;
|
- enable-active-high;
|
||||||
+ vdd_wifi: vdd_wifi {
|
|
||||||
+ regulator-name = "wifi";
|
+ regulator-name = "wifi";
|
||||||
+ regulator-min-microvolt = <1800000>;
|
+ regulator-min-microvolt = <1800000>;
|
||||||
+ regulator-max-microvolt = <1800000>;
|
+ regulator-max-microvolt = <1800000>;
|
||||||
@ -33,7 +23,7 @@ index 84cd9c0..77b2fc6 100644
|
|||||||
};
|
};
|
||||||
|
|
||||||
reg_vdd_cpux: vdd-cpux-regulator {
|
reg_vdd_cpux: vdd-cpux-regulator {
|
||||||
@@ -106,10 +107,12 @@
|
@@ -106,10 +108,12 @@
|
||||||
1300000 1>;
|
1300000 1>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -48,7 +38,7 @@ index 84cd9c0..77b2fc6 100644
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -140,9 +143,11 @@
|
@@ -140,9 +144,11 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
&mmc1 {
|
&mmc1 {
|
||||||
@ -62,7 +52,7 @@ index 84cd9c0..77b2fc6 100644
|
|||||||
non-removable;
|
non-removable;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
|
||||||
@@ -152,6 +157,13 @@
|
@@ -152,6 +158,13 @@
|
||||||
*/
|
*/
|
||||||
xr819: sdio_wifi@1 {
|
xr819: sdio_wifi@1 {
|
||||||
reg = <1>;
|
reg = <1>;
|
||||||
@ -76,7 +66,7 @@ index 84cd9c0..77b2fc6 100644
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -208,3 +220,18 @@
|
@@ -208,3 +221,18 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
|
||||||
};
|
};
|
||||||
@ -95,6 +85,3 @@ index 84cd9c0..77b2fc6 100644
|
|||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
--
|
|
||||||
2.7.4
|
|
||||||
|
|
@ -485,8 +485,8 @@ CONFIG_CW1200_WLAN_SDIO=m
|
|||||||
CONFIG_CW1200_WLAN_SPI=m
|
CONFIG_CW1200_WLAN_SPI=m
|
||||||
CONFIG_RSI_91X=m
|
CONFIG_RSI_91X=m
|
||||||
# CONFIG_INPUT_MOUSEDEV is not set
|
# CONFIG_INPUT_MOUSEDEV is not set
|
||||||
# CONFIG_INPUT_KEYBOARD is not set
|
CONFIG_INPUT_KEYBOARD=y
|
||||||
# CONFIG_INPUT_MOUSE is not set
|
CONFIG_INPUT_MOUSE=y
|
||||||
CONFIG_INPUT_TOUCHSCREEN=y
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
CONFIG_TOUCHSCREEN_SUN4I=y
|
CONFIG_TOUCHSCREEN_SUN4I=y
|
||||||
CONFIG_INPUT_MISC=y
|
CONFIG_INPUT_MISC=y
|
||||||
|
4
recipes-kernel/linux/linux-mainline/axp20x.cfg
Normal file
4
recipes-kernel/linux/linux-mainline/axp20x.cfg
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
CONFIG_MFD_AXP20X_I2C=y
|
||||||
|
CONFIG_MFD_AXP20X=y
|
||||||
|
CONFIG_IIO=y
|
||||||
|
CONFIG_AXP20X_POWER=y
|
8
recipes-kernel/linux/linux-mainline/drm.cfg
Normal file
8
recipes-kernel/linux/linux-mainline/drm.cfg
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
CONFIG_DRM=y
|
||||||
|
CONFIG_DRM_SUN4I=y
|
||||||
|
CONFIG_DRM_SUN8I_DW_HDMI=y
|
||||||
|
CONFIG_DRM_SUN8I_MIXER=y
|
||||||
|
CONFIG_DRM_LIMA=y
|
||||||
|
CONFIG_DRM_PANFROST=y
|
||||||
|
CONFIG_CMA=y
|
||||||
|
CONFIG_DMA_CMA=y
|
@ -19,8 +19,8 @@ KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
|||||||
|
|
||||||
S = "${WORKDIR}/linux-${PV}"
|
S = "${WORKDIR}/linux-${PV}"
|
||||||
|
|
||||||
SRC_URI[md5sum] = "bf96b6783a2d11178a2aaa3cf376f975"
|
SRC_URI[md5sum] = "dfb4db3d95bdcd8114281e32eb0be5cd"
|
||||||
SRC_URI[sha256sum] = "293ec1ae0f6b3b4be83a217224b51d137f2163cf2d9d294eecf5d0a354e4e29d"
|
SRC_URI[sha256sum] = "d8c5d7844214510e85ceb9f5236f27f63fc03535a143f3aaa0c1677a8f92e631"
|
||||||
|
|
||||||
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \
|
SRC_URI = "https://www.kernel.org/pub/linux/kernel/v4.x/linux-${PV}.tar.xz \
|
||||||
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
@ -1,36 +0,0 @@
|
|||||||
SECTION = "kernel"
|
|
||||||
DESCRIPTION = "Mainline RC Linux kernel"
|
|
||||||
LICENSE = "GPLv2"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
|
||||||
COMPATIBLE_MACHINE = "(sun4i|sun5i|sun7i|sun8i|sun50i)"
|
|
||||||
|
|
||||||
inherit kernel
|
|
||||||
|
|
||||||
require linux.inc
|
|
||||||
|
|
||||||
# Since we're not using git, this doesn't make a difference, but we need to fill
|
|
||||||
# in something or kernel-yocto.bbclass will fail.
|
|
||||||
KBRANCH ?= "master"
|
|
||||||
|
|
||||||
DEPENDS += "rsync-native"
|
|
||||||
|
|
||||||
# Pull in the devicetree files into the rootfs
|
|
||||||
RDEPENDS_${KERNEL_PACKAGE_NAME}-base += "kernel-devicetree"
|
|
||||||
|
|
||||||
KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/linux-${PV}"
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "58b2b15fb3c429948051ce4f12f30c37"
|
|
||||||
SRC_URI[sha256sum] = "b07532aa008438e0bce2b8f0253079a4f1654a048a75ae1477c8826f32feea7a"
|
|
||||||
|
|
||||||
SRC_URI = "https://git.kernel.org/torvalds/t/linux-${PV}.tar.gz \
|
|
||||||
file://0003-ARM-dts-nanopi-neo-air-Add-WiFi-eMMC.patch \
|
|
||||||
file://defconfig \
|
|
||||||
"
|
|
||||||
SRC_URI_append_orange-pi-zero += "\
|
|
||||||
file://0001-dts-orange-pi-zero-Add-wifi-support.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
FILES_${KERNEL_PACKAGE_NAME}-base_append = " ${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo"
|
|
||||||
|
|
6
recipes-kernel/linux/linux-mainline_5.4.111.bb
Normal file
6
recipes-kernel/linux/linux-mainline_5.4.111.bb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require linux-mainline.inc
|
||||||
|
|
||||||
|
DESCRIPTION = "Mainline Longterm Linux kernel"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "a3820e9aa56af51c0331b7f427e6f71b"
|
||||||
|
SRC_URI[sha256sum] = "21626132658dc34cb41b7aa7b80ecf83751890a71ac1a63d77aea9d488271a03"
|
6
recipes-kernel/linux/linux-mainline_5.5.3.bb
Normal file
6
recipes-kernel/linux/linux-mainline_5.5.3.bb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
require linux-mainline.inc
|
||||||
|
|
||||||
|
DESCRIPTION = "Mainline Stable Linux kernel"
|
||||||
|
|
||||||
|
SRC_URI[md5sum] = "3ea50025d8c679a327cf2fc225d81a46"
|
||||||
|
SRC_URI[sha256sum] = "2bef3edcf44c746383045f4a809b2013e18c52319c827875ed8e89138951cab2"
|
@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a
|
|||||||
PV = "1.0"
|
PV = "1.0"
|
||||||
PR = "r0"
|
PR = "r0"
|
||||||
|
|
||||||
SRCREV = "bddd21b7f895be9f0c37e435f0a7ac84405c6091"
|
SRCREV = "761658e1701c77a0a84706754e6db1a25ee60b82"
|
||||||
|
|
||||||
COMPATIBLE_MACHINE = "orange-pi-zero"
|
COMPATIBLE_MACHINE = "orange-pi-zero"
|
||||||
|
|
||||||
|
@ -11,9 +11,11 @@ RDEPENDS_${PN} += "xradio-firmware"
|
|||||||
|
|
||||||
COMPATIBLE_MACHINE = "orange-pi-zero"
|
COMPATIBLE_MACHINE = "orange-pi-zero"
|
||||||
|
|
||||||
SRCREV = "d649e5a78efdc56ecd0951e35ca60db175650232"
|
SRCREV = "279868ac96f6db34b65f68c6722830fa0aacb86b"
|
||||||
|
|
||||||
SRC_URI = "git://github.com/fifteenhex/xradio.git;protocol=https \
|
SRC_URI = "\
|
||||||
|
git://github.com/dbeinder/xradio.git;protocol=https;branch=karabek_rebase \
|
||||||
|
file://0001-Enable-out-of-tree-compilation.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
@ -0,0 +1,30 @@
|
|||||||
|
From 15651d333da5429a1544f0a17d5f02c74f693ad7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
Date: Thu, 15 Oct 2020 14:45:07 +0200
|
||||||
|
Subject: [PATCH] Enable out of tree compilation
|
||||||
|
|
||||||
|
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
|
||||||
|
---
|
||||||
|
Makefile | 6 +++---
|
||||||
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 7a0de9a..ee75f0b 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
# # Standalone Makefile - uncomment for out-of-tree compilation
|
||||||
|
-# CONFIG_WLAN_VENDOR_XRADIO := m
|
||||||
|
-# ccflags-y += -DCONFIG_XRADIO_USE_EXTENSIONS
|
||||||
|
-# ccflags-y += -DCONFIG_XRADIO_WAPI_SUPPORT
|
||||||
|
+CONFIG_WLAN_VENDOR_XRADIO := m
|
||||||
|
+ccflags-y += -DCONFIG_XRADIO_USE_EXTENSIONS
|
||||||
|
+ccflags-y += -DCONFIG_XRADIO_WAPI_SUPPORT
|
||||||
|
|
||||||
|
# Kernel part
|
||||||
|
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
Reference in New Issue
Block a user