提交 167c452f 编写于 作者: S storypku

Build: --define USE_ESD_CAN

上级 f4cb686e
......@@ -62,13 +62,10 @@ function check_machine_arch() {
}
function check_esd_files() {
CAN_CARD="fake_can"
if [ -f ./third_party/can_card_library/esd_can/include/ntcan.h \
-a -f ./third_party/can_card_library/esd_can/lib/libntcan.so.4 \
-a -f ./third_party/can_card_library/esd_can/lib/libntcan.so.4.0.1 ]; then
USE_ESD_CAN=true
CAN_CARD="esd_can"
else
warning "ESD CAN library supplied by ESD Electronics does not exist. If you need ESD CAN, please refer to third_party/can_card_library/esd_can/README.md."
USE_ESD_CAN=false
......@@ -576,7 +573,7 @@ function main() {
check_esd_files
DEFINES="--define ARCH=${MACHINE_ARCH} --define CAN_CARD=${CAN_CARD} --cxxopt=-DUSE_ESD_CAN=${USE_ESD_CAN}"
DEFINES="--define ARCH=${MACHINE_ARCH} --define USE_ESD_CAN=${USE_ESD_CAN} --cxxopt=-DUSE_ESD_CAN=${USE_ESD_CAN}"
# Enable bazel's feature to compute md5 checksums in parallel
DEFINES="${DEFINES} --experimental_multi_threaded_digest"
......
......@@ -18,3 +18,10 @@ config_setting(
"define": "USE_GPU=true",
},
)
config_setting(
name = "use_esd_can",
values = {
"define": "USE_ESD_CAN=true",
},
)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册