[PATCH 3/3] bare/libusb: Fix the configuration and add a hash

chrisj at rtems.org chrisj at rtems.org
Tue Aug 11 01:44:31 UTC 2020


From: Chris Johns <chrisj at rtems.org>

Updates #4014
---
 bare/config/devel/libusb-1.0.18-1.cfg | 3 +++
 source-builder/config/libusb-1-1.cfg  | 4 +++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/bare/config/devel/libusb-1.0.18-1.cfg b/bare/config/devel/libusb-1.0.18-1.cfg
index b47855b..494afbe 100644
--- a/bare/config/devel/libusb-1.0.18-1.cfg
+++ b/bare/config/devel/libusb-1.0.18-1.cfg
@@ -15,6 +15,9 @@ Name: libusb-%{libusb_version}-%{_host}-%{release}
 %description
 LibUSB for host %{_host}.
 
+%hash sha512 libusb-%{libusb_version}.tar.bz2 \
+       u8PXXLkfTmoCRUnCusOO6FrtqFKaRVP9NryOilwiPNieuVLtpx/MAHHWxsgYoGMdTMoIT+1p1Jhu7l3PmofWYg==
+
 #
 # The Libuxb build instructions. We use 1.xx Release 1.
 #
diff --git a/source-builder/config/libusb-1-1.cfg b/source-builder/config/libusb-1-1.cfg
index 4b250a3..803f326 100644
--- a/source-builder/config/libusb-1-1.cfg
+++ b/source-builder/config/libusb-1-1.cfg
@@ -33,8 +33,10 @@ URL: 	   http://libusb.org/
   cd libusb-%{libusb_version}
 
 %if "%{_build}" != "%{_host}"
-  CFLAGS_FOR_BUILD="-g -O2 -Wall" \
+  LIBUSB_CFLAGS_FOR_BUILD="-g -O2 -Wall"
 %endif
+
+  CFLAGS_FOR_BUILD=${LIBUSB_CFLAGS_FOR_BUILD} \
   CFLAGS="$SB_CFLAGS" \
   ./configure \
     --build=%{_build} --host=%{_host} \
-- 
2.27.0



More information about the devel mailing list