From d1e206d2c57593d8475a0e91b2f50a58116edffa Mon Sep 17 00:00:00 2001 From: Yevhen Fastiuk Date: Tue, 10 Sep 2019 11:01:21 +0300 Subject: [PATCH 1/2] Yocto: Fixed targets for yocto build --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 9bbc2fd..c813f6e 100755 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/i386/ | sed -e s/ppc/powerpc/ | sed ARCH ?= $(SUBARCH) CROSS_COMPILE ?= KVER := $(shell uname -r) -KSRC := /lib/modules/$(KVER)/build +KERNEL_SRC ?= /lib/modules/$(KVER)/build MODDESTDIR := /lib/modules/$(KVER)/kernel/drivers/net/wireless/ INSTALL_PREFIX := @@ -150,7 +150,10 @@ export CONFIG_RTL8188EU = m all: modules modules: - $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules + $(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KERNEL_SRC) M=$(shell pwd) modules + +modules_install: + $(MAKE) -C $(KERNEL_SRC) M=$(shell pwd) modules_install strip: $(CROSS_COMPILE)strip 8188eu.ko --strip-unneeded From 26cb6f682bf36e9b8fe03e5ded4e3c013689c2eb Mon Sep 17 00:00:00 2001 From: Yevhen Fastiuk Date: Tue, 10 Sep 2019 11:50:18 +0300 Subject: [PATCH 2/2] Yocto: Added bitbake recipe --- .../rtl8188eu/rtl8188eu_4.1.8.bb | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta-yocto/recipes-connectivity/rtl8188eu/rtl8188eu_4.1.8.bb diff --git a/meta-yocto/recipes-connectivity/rtl8188eu/rtl8188eu_4.1.8.bb b/meta-yocto/recipes-connectivity/rtl8188eu/rtl8188eu_4.1.8.bb new file mode 100644 index 0000000..b57d4d0 --- /dev/null +++ b/meta-yocto/recipes-connectivity/rtl8188eu/rtl8188eu_4.1.8.bb @@ -0,0 +1,22 @@ +SUMMARY = "Realtek rtl8188eu driver" +DESCRIPTION = "lwfinger's rtl8188eu driver that enables AP mode support" +AUTHOR = "Yevhen Fastiuk " +SECTION = "Connectivity" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +inherit module + +S = "${WORKDIR}/git" + +SRCREV = "${AUTOREV}" +SRC_URI = "git://github.com/lwfinger/rtl8188eu.git;branch=v4.1.8_9499" + +RTLWIFI = "${base_libdir}/firmware/rtlwifi" + +do_install_append() { + install -d ${D}/${RTLWIFI} + install -m 0755 ${S}/rtl8188eufw.bin ${D}/${RTLWIFI}/ +} + +FILES_${PN} += "${RTLWIFI}/*"