STT-tensorflow/third_party/toolchains/cpus/arm/BUILD
ebrevdo b244912b2f Add Raspberry PI build ()
* Add support for Raspberry PI (ARM) builds.

To build:

./configure

bazel build --sandbox_debug -c opt --copt=-march=armv6 --copt=-mfpu=vfp \
  --copt=-funsafe-math-optimizations --copt=-ftree-vectorize \
  --copt=-fomit-frame-pointer --cpu=armeabi \
  --crosstool_top=@local_config_arm_compiler//:toolchain \
  --verbose_failures --build_python_zip ...targets...

* Additional changes to get raspberry pi build working.

update platform.h and crosstool template for define RASPBERRY_PI.

* Add build_raspberry_pi.sh with some documentation.

* Cleanups for build_raspberry_pi.sh

* contrib/makefile/Makefile in PI mode: add -DRASPBERRY_PI.

* Recommend using aptitude instead of apt-get in build_raspberry_pi.sh.

* More comments to build_raspberry_pi.sh

* Switched to tar file for ARM tool chain

* More fixes to arm build scripts; move tools/arm_compiler -> third_party/toolchains/cpus/arm.

* Update comments in build_raspberry_pi: get ubuntu ports for your lsb codename.

* Hacked around cxx_builtin_include_directory problem in CROSSTOOL

* Added an extra system include

* Added Pi Two/Three NEON support, with fix for Eigen version

* Undo pete's Eigen change - it breaks OS X build.  Will be fixed later.
2017-07-26 09:39:40 -07:00

50 lines
1.1 KiB
Python

package(default_visibility = ["//visibility:public"])
cc_toolchain_suite(
name = "toolchain",
toolchains = {
"armeabi|compiler": ":cc-compiler-armeabi",
"local|compiler": ":cc-compiler-local",
},
)
filegroup(
name = "empty",
srcs = [],
)
filegroup(
name = "arm_linux_all_files",
srcs = [
"@arm_compiler//:compiler_pieces",
],
)
cc_toolchain(
name = "cc-compiler-local",
all_files = ":empty",
compiler_files = ":empty",
cpu = "local",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = ":empty",
objcopy_files = ":empty",
static_runtime_libs = [":empty"],
strip_files = ":empty",
supports_param_files = 1,
)
cc_toolchain(
name = "cc-compiler-armeabi",
all_files = ":arm_linux_all_files",
compiler_files = ":arm_linux_all_files",
cpu = "armeabi",
dwp_files = ":empty",
dynamic_runtime_libs = [":empty"],
linker_files = ":arm_linux_all_files",
objcopy_files = "arm_linux_all_files",
static_runtime_libs = [":empty"],
strip_files = "arm_linux_all_files",
supports_param_files = 1,
)