Support build for A311D
Add cross compilation support for A311D SoC platform. A prebuilt-sdk for aarch64 and Linux Kernel version 4.9 is provided. basel build --config A311D //samples/lenet:lenet_asymu8_cc Signed-off-by: Jiang Bo <bo.jiang@verisilicon.com> Signed-off-by: Kainan Cha <kainan.cha@verisilicon.com>
This commit is contained in:
parent
984ab3b24a
commit
2390ece5ac
|
|
@ -0,0 +1,20 @@
|
|||
# Auto generated!
|
||||
|
||||
# Default: x86_64_linux vSimualtor
|
||||
build --config x86_64_linux
|
||||
|
||||
# Usage example: bazel build --config x86_64_linux
|
||||
build:x86_64_linux --define target_device=x86_64_linux
|
||||
|
||||
# Usage example: bazel build --config A311D
|
||||
build:A311D --define linux=true
|
||||
build:A311D --spawn_strategy=standalone
|
||||
build:A311D --crosstool_top=@TOOLCHAINS//gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu:toolchain
|
||||
build:A311D --host_crosstool_top=@bazel_tools//tools/cpp:toolchain
|
||||
build:A311D --cpu=armv8-a
|
||||
build:A311D --compiler=gcc
|
||||
build:A311D --copt -Wno-ignored-attributes
|
||||
build:A311D --copt -Wno-unused-function
|
||||
build:A311D --copt -Wno-sequence-point
|
||||
build:A311D --copt -Wno-implicit-fallthrough
|
||||
build:A311D --define target_device=aarch64_A311D
|
||||
|
|
@ -0,0 +1 @@
|
|||
3.1.0
|
||||
12
WORKSPACE
12
WORKSPACE
|
|
@ -1,5 +1,17 @@
|
|||
workspace(name = "TIM_VX")
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
http_archive(
|
||||
name = "aarch64_A311D",
|
||||
build_file = "@//prebuilt-sdk/x86_64_linux:BUILD",
|
||||
sha256 = "9c3fe033f6d012010c92ed1f173b5410019ec144ddf68cbc49eaada2b4737e7f",
|
||||
strip_prefix = "aarch64_A311D_D312513_A294074_R311680_T312233_O312045",
|
||||
urls = [
|
||||
"https://github.com/VeriSilicon/TIM-VX/releases/download/v1.1.28/aarch64_A311D_D312513_A294074_R311680_T312233_O312045.tgz",
|
||||
],
|
||||
)
|
||||
|
||||
local_repository(
|
||||
name = 'TOOLCHAINS',
|
||||
path = 'toolchains',
|
||||
|
|
|
|||
|
|
@ -5,9 +5,15 @@ config_setting(
|
|||
values = {"define": "target_device=x86_64_linux"},
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "aarch64_A311D",
|
||||
values = {"define": "target_device=aarch64_A311D"},
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "VIV_SDK_LIB",
|
||||
deps = select({
|
||||
"aarch64_A311D": ["@aarch64_A311D//:VIV_SDK_LIB"],
|
||||
"//conditions:default": ["//prebuilt-sdk/x86_64_linux:VIV_SDK_LIB"],
|
||||
}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue