mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
r8168: fix typo error
Switched to use KERNEL_MAKE while at it. Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org> (cherry picked from commit 3ced3baf509654f470f6e0a626d1799626ef770a)
This commit is contained in:
parent
dd46833080
commit
457869f0cf
@ -8,7 +8,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
|
|
||||||
PKG_NAME:=r8168
|
PKG_NAME:=r8168
|
||||||
PKG_VERSION:=8.050.03
|
PKG_VERSION:=8.050.03
|
||||||
PKG_RELEASE:=$(AUTORELEAE)
|
PKG_RELEASE:=$(AUTORELEASE)
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/BROBIRD/openwrt-r8168.git
|
PKG_SOURCE_URL:=https://github.com/BROBIRD/openwrt-r8168.git
|
||||||
@ -17,8 +17,6 @@ PKG_MIRROR_HASH:=5428f60dc33e9503c6cfdf690c00077149dce24cbb0591129d905b9f1aad920
|
|||||||
|
|
||||||
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
MAKE_PATH:=src
|
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define KernelPackage/r8168
|
define KernelPackage/r8168
|
||||||
@ -35,20 +33,8 @@ define Package/r8168/description
|
|||||||
This package contains a driver for Realtek r8168 chipsets.
|
This package contains a driver for Realtek r8168 chipsets.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
R8168_MAKEOPTS= -C $(PKG_BUILD_DIR)/src \
|
|
||||||
PATH="$(TARGET_PATH)" \
|
|
||||||
ARCH="$(LINUX_KARCH)" \
|
|
||||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
||||||
TARGET="$(HAL_TARGET)" \
|
|
||||||
TOOLPREFIX="$(KERNEL_CROSS)" \
|
|
||||||
TOOLPATH="$(KERNEL_CROSS)" \
|
|
||||||
KERNELPATH="$(LINUX_DIR)" \
|
|
||||||
KERNELDIR="$(LINUX_DIR)" \
|
|
||||||
LDOPTS=" " \
|
|
||||||
DOMULTI=1
|
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(MAKE) $(R8168_MAKEOPTS) modules
|
+$(KERNEL_MAKE) M=$(PKG_BUILD_DIR)/src modules
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call KernelPackage,r8168))
|
$(eval $(call KernelPackage,r8168))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user