Merge pull request #2707 from nxhack/node-hid-fix-compile-error
node-hid: fix compile error, condition of not-installing 'libusb-dev' package at cross-compile host.
This commit is contained in:
commit
ba451bd8aa
1 changed files with 2 additions and 3 deletions
|
@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
|
|||
PKG_NPM_NAME:=hid
|
||||
PKG_NAME:=node-$(PKG_NPM_NAME)
|
||||
PKG_VERSION:=0.5.1
|
||||
PKG_RELEASE:=1
|
||||
PKG_RELEASE:=2
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/node-hid/node-hid.git
|
||||
|
@ -43,8 +43,7 @@ endef
|
|||
|
||||
CPU:=$(subst x86_64,x64,$(subst i386,ia32,$(ARCH)))
|
||||
|
||||
EXTRA_LDFLAGS+="-lhidapi-libusb"
|
||||
EXTRA_CFLAGS+="-I$(STAGING_DIR)/usr/include/hidapi/"
|
||||
EXTRA_CFLAGS+=-I$(STAGING_DIR)/usr/include/libusb-1.0
|
||||
|
||||
define Build/Compile
|
||||
$(MAKE_VARS) \
|
||||
|
|
Loading…
Reference in a new issue