Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
44573323
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
44573323
编写于
10月 05, 2020
作者:
S
storypku
提交者:
Liu Jiaming
10月 19, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Build: set use_esd_can to False for arm64
上级
2ddc587d
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
24 addition
and
18 deletion
+24
-18
apollo.sh
apollo.sh
+6
-4
modules/drivers/canbus/can_client/esd/BUILD
modules/drivers/canbus/can_client/esd/BUILD
+9
-7
third_party/can_card_library/esd_can/BUILD
third_party/can_card_library/esd_can/BUILD
+3
-7
tools/platform/build_defs.bzl
tools/platform/build_defs.bzl
+6
-0
未找到文件。
apollo.sh
浏览文件 @
44573323
...
...
@@ -26,7 +26,7 @@ function check_architecture_support() {
function
check_platform_support
()
{
local
platform
=
"
$(
uname
-s
)
"
if
[
"
$platform
"
!=
"Linux"
]
;
then
if
[
[
"
${
platform
}
"
!=
"Linux"
]
]
;
then
error
"Unsupported platform:
${
platform
}
."
error
"
${
TAB
}
Apollo is expected to run on Linux systems (E.g., Debian/Ubuntu)."
exit
1
...
...
@@ -45,8 +45,9 @@ function check_minimal_memory_requirement() {
function
determine_esdcan_use
()
{
local
esdcan_dir
=
"
${
APOLLO_ROOT_DIR
}
/third_party/can_card_library/esd_can"
local
use_esd
=
false
if
[
-f
"
${
esdcan_dir
}
/include/ntcan.h"
]
&&
[
-f
"
${
esdcan_dir
}
/lib/libntcan.so.4"
]
;
then
if
[[
"
${
ARCH
}
"
==
"x86_64"
]]
&&
[[
-f
"
${
esdcan_dir
}
/include/ntcan.h"
]]
&&
[[
-f
"
${
esdcan_dir
}
/lib/libntcan.so.4"
]]
;
then
use_esd
=
true
fi
USE_ESD_CAN
=
"
${
use_esd
}
"
...
...
@@ -160,7 +161,8 @@ function main() {
local
coverage_sh
=
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_coverage.sh"
local
ci_sh
=
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_ci.sh"
local
cmd
=
"
$1
"
;
shift
local
cmd
=
"
$1
"
shift
case
"
${
cmd
}
"
in
config
)
env
${
APOLLO_ENV
}
bash
"
${
APOLLO_ROOT_DIR
}
/scripts/apollo_config.sh"
"
$@
"
...
...
modules/drivers/canbus/can_client/esd/BUILD
浏览文件 @
44573323
load
(
"@rules_cc//cc:defs.bzl"
,
"cc_library"
,
"cc_test"
)
load
(
"//tools/platform:build_defs.bzl"
,
"if_esd_can"
)
load
(
"//tools:cpplint.bzl"
,
"cpplint"
)
package
(
default_visibility
=
[
"//visibility:public"
])
cc_library
(
name
=
"esd_can_client"
,
srcs
=
[
"esd_can_client.cc"
]
,
hdrs
=
[
"esd_can_client.h"
]
,
deps
=
[
srcs
=
if_esd_can
([
"esd_can_client.cc"
])
,
hdrs
=
if_esd_can
([
"esd_can_client.h"
])
,
deps
=
if_esd_can
(
[
"//modules/common/proto:error_code_cc_proto"
,
"//modules/drivers/canbus:sensor_gflags"
,
"//modules/drivers/canbus/can_client"
,
"//third_party/can_card_library/esd_can"
,
],
]
)
,
)
cc_test
(
name
=
"esd_can_client_test"
,
size
=
"small"
,
srcs
=
[
"esd_can_client_test.cc"
],
deps
=
[
srcs
=
if_esd_can
([
"esd_can_client_test.cc"
]),
deps
=
if_esd_can
([
":esd_can_client"
,
"//cyber"
,
"//modules/drivers/canbus/can_client/esd:esd_can_client"
,
"//modules/drivers/canbus/common:canbus_common"
,
])
+
[
"@com_google_googletest//:gtest_main"
,
],
)
...
...
third_party/can_card_library/esd_can/BUILD
浏览文件 @
44573323
load
(
"@rules_cc//cc:defs.bzl"
,
"cc_library"
)
load
(
"//tools/platform:build_defs.bzl"
,
"if_esd_can"
)
package
(
default_visibility
=
[
"//visibility:public"
])
licenses
([
"notice"
])
cc_library
(
name
=
"esd_can"
,
srcs
=
[
"lib/libntcan.so.4"
,
],
hdrs
=
[
"include/ntcan.h"
,
],
srcs
=
if_esd_can
([
"lib/libntcan.so.4"
]),
hdrs
=
if_esd_can
([
"include/ntcan.h"
]),
include_prefix
=
"esd_can"
,
)
tools/platform/build_defs.bzl
浏览文件 @
44573323
...
...
@@ -32,3 +32,9 @@ def if_aarch64_mode(if_true, if_false = []):
"//tools/platform:aarch64_mode"
:
if_true
,
"//conditions:default"
:
if_false
,
})
def
if_esd_can
(
if_true
,
if_false
=
[]):
return
select
({
"//tools/platform:use_esd_can"
:
if_true
,
"//conditions:default"
:
if_false
,
})
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录