Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/package/network/services/ppp/Makefile b/package/network/services/ppp/Makefile
- index 616cd086..f39b7fb4 100644
- --- a/package/network/services/ppp/Makefile
- +++ b/package/network/services/ppp/Makefile
- @@ -171,7 +171,9 @@ endef
- # Entware specific
- +ifeq ($(CONFIG_LINUX_4_9),)
- LINUX_UAPI_DIR=""
- +endif
- define Build/Configure
- $(call Build/Configure/Default,, \
- diff --git a/net/usbip/Makefile b/net/usbip/Makefile
- index aae49c3..f488de9 100644
- --- a/net/usbip/Makefile
- +++ b/net/usbip/Makefile
- @@ -15,7 +15,11 @@ PKG_LICENSE:=GPL-2.0
- # Since kernel 2.6.39.1 userspace tools are inside the kernel tree
- # Package Automatic match version in kernel
- # MD5SUM is not useful kernel package already check it
- +ifeq ($(CONFIG_LINUX_4_9),y)
- +PKG_VERSION:=$(shell sed -n -e '/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp' $(LINUX_DIR)/tools/usb/usbip/configure.ac)
- +else
- PKG_VERSION:=$(shell sed -n -e '/^AC_INIT/s/.*\[\([[:digit:]\.]*\)\].*/\1/gp' $(LINUX_DIR)/drivers/staging/usbip/userspace/configure.ac)
- +endif
- PKG_SOURCE:=
- PKG_SOURCE_URL:=
- PKG_HASH:=unknown
- @@ -26,7 +30,11 @@ PATCH_DIR:=./patches-$(PKG_VERSION)
- define prepare_source_directory
- rm -rf $(PKG_BUILD_DIR)
- + ifeq ($(CONFIG_LINUX_4_9),y)
- + $(CP) $(LINUX_DIR)/tools/usb/usbip $(PKG_BUILD_DIR)
- + else
- $(CP) $(LINUX_DIR)/drivers/staging/usbip/userspace $(PKG_BUILD_DIR)
- + endif
- endef
- Hooks/Prepare/Pre += prepare_source_directory
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement