summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-09-17 19:41:26 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-10-02 11:12:48 +0200
commitd297e90323f3f129feea237cd48a3fe9a290850b (patch)
tree3f0751e498b28c411ce673a230d299bec5980666
parent067f4cf79fab8848c0dd3e125e71e9c89a1d14d9 (diff)
downloadbarebox-d297e90323f3f129feea237cd48a3fe9a290850b.tar.gz
barebox-d297e90323f3f129feea237cd48a3fe9a290850b.tar.xz
scripts: omap3-usb-loader: make proper use of pkg-config --cflags
pkg-config --cflags libusb-1.0 should ensure <libusb.h> would be found. Command's output is used to compile omap3-usb-loader.c, but because the file does #include <libusb-1.0/libusb.h>, it will probably not find the header in the directory added to search path by pkg-config and depend on other directories in the search path. Fix this. We already expect users to have proper pkg-config files, so linking works, so it's not too much to ask to expect the pkg-config file that should already exist to yield proper --cflags as well. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210917174127.23345-3-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--scripts/omap3-usb-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/omap3-usb-loader.c b/scripts/omap3-usb-loader.c
index 599a93856a..0f352c8453 100644
--- a/scripts/omap3-usb-loader.c
+++ b/scripts/omap3-usb-loader.c
@@ -28,7 +28,7 @@
#include <errno.h>
#include <libgen.h> /* for basename */
-#include <libusb-1.0/libusb.h> /* the main event */
+#include <libusb.h> /* the main event */
/* Device specific defines (OMAP)
* Primary source: http://www.ti.com/lit/pdf/sprugn4