drivers/thirdparty: add copy-drivers.sh to using thirdparty drivers
copy-drivers.sh is used for: 1, Prepare git sub-module; 2, Copy thirdparty drivers to override kernel native drivers. Signed-off-by: Jianping Liu <frankjpliu@tencent.com> Reviewed-by: Yongliang Gao <leonylgao@tencent.com>
This commit is contained in:
parent
4289221dd2
commit
dd05b94243
|
@ -597,6 +597,11 @@ case $KernUnameR in
|
|||
|
||||
# Prepare Kernel config
|
||||
BuildConfig() {
|
||||
# Prepare git sub-module, copy thirdparty drivers to override kernel native drivers
|
||||
pushd $_KernSrc/drivers/thirdparty
|
||||
./copy-drivers.sh
|
||||
popd
|
||||
|
||||
mkdir -p $_KernBuild
|
||||
pushd $_KernBuild
|
||||
cp $1 .config
|
||||
|
|
|
@ -243,4 +243,6 @@ source "drivers/hte/Kconfig"
|
|||
|
||||
source "drivers/cdx/Kconfig"
|
||||
|
||||
source "drivers/thirdparty/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
|
|
@ -3,6 +3,7 @@ config INFINIBAND_BNXT_RE
|
|||
tristate "Broadcom Netxtreme HCA support"
|
||||
depends on 64BIT
|
||||
depends on INET && DCB && BNXT
|
||||
depends on !THIRDPARTY_BNXT
|
||||
help
|
||||
This driver supports Broadcom NetXtreme-E 10/25/40/50 gigabit
|
||||
RoCE HCAs. To compile this driver as a module, choose M here:
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
# SPDX-License-Identifier: GPL-2.0
|
||||
menu "Thirdparty Drivers"
|
||||
|
||||
config THIRDPARTY_BNXT
|
||||
bool
|
||||
default y
|
||||
|
||||
endmenu
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ ! -e release-drivers/.git ] ; then
|
||||
timeout 300 git clone https://gitee.com/OpenCloudOS/release-drivers.git release-drivers/
|
||||
fi
|
||||
|
||||
if [ -e release-drivers/bnxt ]; then
|
||||
rm -rf ../../drivers/net/ethernet/broadcom/bnxt
|
||||
cp -a release-drivers/bnxt ../../drivers/net/ethernet/broadcom/
|
||||
fi
|
|
@ -1 +1 @@
|
|||
Subproject commit 19cd069eab785765ddde4d8b35e9c329c609c5d7
|
||||
Subproject commit 9d8f838a01628124590fbea985b120ecfaef9982
|
Loading…
Reference in New Issue