diff --git a/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb b/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb new file mode 100644 index 0000000..5ca1077 --- /dev/null +++ b/layers/meta-resin-allwinner/recipes-kernel/xradio-firmware/xradio-firmware.bb @@ -0,0 +1,22 @@ +SUMMARY = "Xradio xr819 WiFi firmware" +LICENSE = "CC0-1.0" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE};md5=0ceb3372c9595f0a8067e55da801e4a1" + +SRCREV = "bddd21b7f895be9f0c37e435f0a7ac84405c6091" + +SRC_URI = "git://github.com/armbian/firmware.git;protocol=https" + +S = "${WORKDIR}/git" + +do_compile () { + exit 0 +} + +do_install() { + install -d ${D}${base_libdir}/firmware/xr819 + install -m 0644 ${S}/xr819/boot_xr819.bin ${D}${base_libdir}/firmware/xr819/ + install -m 0644 ${S}/xr819/sdd_xr819.bin ${D}${base_libdir}/firmware/xr819/ + install -m 0644 ${S}/xr819/fw_xr819.bin ${D}${base_libdir}/firmware/xr819/ +} + +FILES_${PN} = "${base_libdir}/*" diff --git a/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb b/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb new file mode 100644 index 0000000..532857f --- /dev/null +++ b/layers/meta-resin-allwinner/recipes-kernel/xradio/xradio.bb @@ -0,0 +1,16 @@ +SUMMARY = "Xradio WiFi driver for orangepi-zero" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=a23a74b3f4caf9616230789d94217acb" + +inherit module + +SRCREV = "b7789c274091344eeff47cf34a48e0b225de852b" + +SRC_URI = "git://github.com/fifteenhex/xradio.git;protocol=https \ + " + +S = "${WORKDIR}/git" + +EXTRA_OEMAKE += "-C ${STAGING_KERNEL_DIR} M=${S}" + +KERNEL_MODULE_AUTOLOAD += "xradio_wlan" \ No newline at end of file