From 4bb6f26b05450777d14aa96e10783066c2503dc2 Mon Sep 17 00:00:00 2001 From: John Klug Date: Wed, 11 Nov 2020 16:17:52 -0600 Subject: Add new BSP submodule for Atmel Processors. --- recipes-kernel/vizzini/vizzini.inc | 49 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 recipes-kernel/vizzini/vizzini.inc (limited to 'recipes-kernel/vizzini/vizzini.inc') diff --git a/recipes-kernel/vizzini/vizzini.inc b/recipes-kernel/vizzini/vizzini.inc new file mode 100644 index 0000000..48eb241 --- /dev/null +++ b/recipes-kernel/vizzini/vizzini.inc @@ -0,0 +1,49 @@ +DESCRIPTION = "USB Driver for Exar USB UARTs" +HOMEPAGE = "http://www.exar.com/connectivity/uart-and-bridging-solutions/usb-uarts/xr21v1414" +SECTION = "base" +PRIORITY = "optional" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" +do_fetch[depends] += "virtual/kernel:do_shared_workdir" +DEPENDS = "virtual/kernel" +RPROVIDES_kernel-module-${PN} = "vizzini" + +SRC_URI = " \ + file://vizzini.init \ +" + +inherit module +inherit update-rc.d + +EXTRA_OEMAKE = " -C ${STAGING_KERNEL_DIR} \ + M=${S} \ + modules \ + " + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + oe_runmake +} + +PACKAGES = "kernel-module-${PN} ${PN}-dev" + +FILES_kernel-module-${PN} = "${base_libdir}/modules/${KERNEL_VERSION}/extra/vizzini.ko" +FILES_kernel-module-${PN} += "${sysconfdir}/init.d/vizzini" + +INITSCRIPT_NAME = "vizzini" +INITSCRIPT_PARAMS = "start 90 S ." + +PARALLEL_MAKE = "" + +do_install() { + install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + # use cp instead of install so the driver doesn't get stripped + cp ${S}/vizzini.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra + cp ${S}/vizzini.h ${STAGING_KERNEL_DIR}/include/linux/ + cp ${S}/vizzini.h ${STAGING_INCDIR}/linux/ + cp ${S}/vzioctl.h ${STAGING_KERNEL_DIR}/include/linux/ + cp ${S}/vzioctl.h ${STAGING_INCDIR}/linux/ + + install -d ${D}${sysconfdir}/init.d + install -m 0755 ${WORKDIR}/vizzini.init ${D}${sysconfdir}/init.d/vizzini +} -- cgit v1.2.3