From 318e609f651a40cb7fe26e49e04e86211b8df4bc Mon Sep 17 00:00:00 2001 From: Marek Belisko Date: Tue, 30 Oct 2018 20:37:49 +0100 Subject: [PATCH] recipes-kernel: xradio: Added wifi driver for orange-pi-zero wifi Driver taken from: https://github.com/Halolo/orange-pi-distro.git Signed-off-by: Marek Belisko --- recipes-kernel/xradio/xradio.bb | 22 +++++++++++++++++++ .../xradio/Add_Targets_To_Makefile.patch | 19 ++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 recipes-kernel/xradio/xradio.bb create mode 100644 recipes-kernel/xradio/xradio/Add_Targets_To_Makefile.patch diff --git a/recipes-kernel/xradio/xradio.bb b/recipes-kernel/xradio/xradio.bb new file mode 100644 index 0000000..b7a6240 --- /dev/null +++ b/recipes-kernel/xradio/xradio.bb @@ -0,0 +1,22 @@ +SUMMARY = "Xradio WiFi driver for orangepi-zero" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a23a74b3f4caf9616230789d94217acb" + +inherit module + +PV = "0.1" +PR = "r0" + +RDEPENDS_${PN} += "xradio-firmware" + +COMPATIBLE_MACHINE = "orange-pi-zero" + +SRCREV = "d649e5a78efdc56ecd0951e35ca60db175650232" + +SRC_URI = "git://github.com/fifteenhex/xradio.git;protocol=https \ + file://Add_Targets_To_Makefile.patch \ + " + +S = "${WORKDIR}/git" + +KERNEL_MODULE_AUTOLOAD += "xradio_wlan" diff --git a/recipes-kernel/xradio/xradio/Add_Targets_To_Makefile.patch b/recipes-kernel/xradio/xradio/Add_Targets_To_Makefile.patch new file mode 100644 index 0000000..8edfff0 --- /dev/null +++ b/recipes-kernel/xradio/xradio/Add_Targets_To_Makefile.patch @@ -0,0 +1,19 @@ +diff --git a/Makefile b/Makefile +index fd15d31..078a2ad 100644 +--- a/Makefile ++++ b/Makefile +@@ -50,3 +50,14 @@ ccflags-y += -DXRADIO_USE_LONG_KEEP_ALIVE_PERIOD + ldflags-y += --strip-debug + + obj-$(CONFIG_XRADIO) += xradio_wlan.o ++ ++SRC := $(shell pwd) ++ ++all: ++ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules ++ ++modules_install: ++ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) modules_install ++ ++clean: ++ $(MAKE) -C $(KERNEL_SRC) M=$(SRC) clean