Fix a build regression caused by r39975 by making sure $(STAGING_DIR)/host
directory exists before trying to copy files to it.

Cc: Florian Fainelli <[email protected]>

Signed-off-by: Tim Harvey <[email protected]>
---
 package/libs/libusb-compat/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/libs/libusb-compat/Makefile 
b/package/libs/libusb-compat/Makefile
index 3b77083..784f238 100644
--- a/package/libs/libusb-compat/Makefile
+++ b/package/libs/libusb-compat/Makefile
@@ -38,6 +38,8 @@ endef
 TARGET_CFLAGS += $(FPIC)
 
 define Build/InstallDev
+       $(INSTALL_DIR) $(STAGING_DIR)/host
+
        $(CP) $(PKG_INSTALL_DIR)/* $(1)/
        $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(STAGING_DIR)/host/bin
 endef
-- 
1.8.3.2
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to