From eb72b918445e9e8cf5ebd410a55059ba7cb90bd4 Mon Sep 17 00:00:00 2001 From: Marek Belisko Date: Sat, 3 Nov 2018 22:43:29 +0100 Subject: [PATCH] xradio: Drop unnecessary patch when fix module compilation Signed-off-by: Marek Belisko --- recipes-kernel/xradio/xradio.bb | 3 ++- .../xradio/Add_Targets_To_Makefile.patch | 19 ------------------- 2 files changed, 2 insertions(+), 20 deletions(-) delete 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 index b7a6240..32a516a 100644 --- a/recipes-kernel/xradio/xradio.bb +++ b/recipes-kernel/xradio/xradio.bb @@ -14,9 +14,10 @@ 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" +EXTRA_OEMAKE += "-C ${STAGING_KERNEL_DIR} M=${S}" + 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 deleted file mode 100644 index 8edfff0..0000000 --- a/recipes-kernel/xradio/xradio/Add_Targets_To_Makefile.patch +++ /dev/null @@ -1,19 +0,0 @@ -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