diff --git a/recipes-support/hidapi/hidapi-stm32mp/0001-configure.ac-remove-duplicate-AC_CONFIG_MACRO_DIR-22.patch b/recipes-support/hidapi/hidapi-stm32mp/0001-configure.ac-remove-duplicate-AC_CONFIG_MACRO_DIR-22.patch new file mode 100644 index 0000000..f3cd101 --- /dev/null +++ b/recipes-support/hidapi/hidapi-stm32mp/0001-configure.ac-remove-duplicate-AC_CONFIG_MACRO_DIR-22.patch @@ -0,0 +1,27 @@ +From ce3ab6ba4b8176d100ac535a39e3d5b0c517989b Mon Sep 17 00:00:00 2001 +From: Jan Palus +Date: Fri, 15 Jan 2021 14:32:14 +0100 +Subject: [PATCH] configure.ac: remove duplicate AC_CONFIG_MACRO_DIR (#226) + +fixes build with autoconf 2.70 +Upstream-Status: Backport [https://github.com/libusb/hidapi/pull/226] +Signed-off-by: Khem Raj +--- + configure.ac | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 220909a..77da67a 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -13,7 +13,6 @@ LTLDFLAGS="-version-info ${lt_current}:${lt_revision}:${lt_age}" + + AC_CONFIG_MACRO_DIR([m4]) + AM_INIT_AUTOMAKE([foreign -Wall -Werror]) +-AC_CONFIG_MACRO_DIR([m4]) + + m4_ifdef([AM_PROG_AR], [AM_PROG_AR]) + LT_INIT +-- +2.30.0 + diff --git a/recipes-support/hidapi/hidapi-stm32mp_0.10.1.bb b/recipes-support/hidapi/hidapi-stm32mp_0.10.1.bb new file mode 100644 index 0000000..4557e75 --- /dev/null +++ b/recipes-support/hidapi/hidapi-stm32mp_0.10.1.bb @@ -0,0 +1,35 @@ +SUMMARY = "Multi-platform library to interface with USB and Bluetooth HID-Class devices" +AUTHOR = "Alan Ott" +HOMEPAGE = "http://www.signal11.us/oss/hidapi/" +SECTION = "libs" + +LICENSE = "BSD-3-Clause | GPLv3" +LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077" + +SRC_URI = "git://github.com/libusb/hidapi.git;protocol=https;branch=master \ + file://0001-configure.ac-remove-duplicate-AC_CONFIG_MACRO_DIR-22.patch \ +" +SRCREV = "f6d0073fcddbdda24549199445e844971d3c9cef" + +PV = "0.10.1-git.${SRCPV}" + +S = "${WORKDIR}/git" + +inherit autotools pkgconfig + +BBCLASSEXTEND += "native nativesdk" + +DEPENDS += "libusb" + +DEPENDS:class-native += "libusb-native" +DEPENDS:class-nativesdk += "nativesdk-libusb" + +# Disable udev backend build in native/nativesdk +EXTRA_OECONF += "libudev_CFLAGS=' ' libudev_LIBS=' '" +EXTRA_OEMAKE += "SUBDIRS=libusb" + +EXTRA_OECONF:class-native += "libudev_CFLAGS=' ' libudev_LIBS=' '" +EXTRA_OEMAKE:class-native += "SUBDIRS=libusb" + +EXTRA_OECONF:class-nativesdk += "libudev_CFLAGS=' ' libudev_LIBS=' '" +EXTRA_OEMAKE:class-nativesdk += "SUBDIRS=libusb" diff --git a/recipes-support/hidapi/hidapi-stm32mp_0.8.0-rc1.bb b/recipes-support/hidapi/hidapi-stm32mp_0.8.0-rc1.bb deleted file mode 100644 index 9e27122..0000000 --- a/recipes-support/hidapi/hidapi-stm32mp_0.8.0-rc1.bb +++ /dev/null @@ -1,33 +0,0 @@ -SUMMARY = "Multi-platform library to interface with USB and Bluetooth HID-Class devices" -AUTHOR = "Alan Ott" -HOMEPAGE = "http://www.signal11.us/oss/hidapi/" -SECTION = "libs" - -LICENSE = "BSD-3-Clause | GPLv3" -LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077" - -SRC_URI = "git://github.com/signal11/hidapi.git" -SRCREV = "a6a622ffb680c55da0de787ff93b80280498330f" - -PV = "0.8.0-rc1-git.${SRCPV}" - -S = "${WORKDIR}/git" - -inherit autotools pkgconfig - -BBCLASSEXTEND += "native nativesdk" - -DEPENDS += "libusb1" - -DEPENDS_class-native += "libusb-native" -DEPENDS_class-nativesdk += "nativesdk-libusb" - -# Disable udev backend build in native/nativesdk -EXTRA_OECONF += "libudev_CFLAGS=' ' libudev_LIBS=' '" -EXTRA_OEMAKE += "SUBDIRS=libusb" - -EXTRA_OECONF_class-native += "libudev_CFLAGS=' ' libudev_LIBS=' '" -EXTRA_OEMAKE_class-native += "SUBDIRS=libusb" - -EXTRA_OECONF_class-nativesdk += "libudev_CFLAGS=' ' libudev_LIBS=' '" -EXTRA_OEMAKE_class-nativesdk += "SUBDIRS=libusb"