Commit Graph

3 Commits

Author SHA1 Message Date
Christian Sigg
6b350fcde9 Make tf_http_archive() consistently take string attributes and create a label from it early in the rule.
That way, we do not need to use clean_dep anymore in workspace.bzl, which is easy to forget.

PiperOrigin-RevId: 358860040
Change-Id: Ia21a1c6fc19b386103b8ff3f153fef7352ef8ab2
2021-02-22 11:15:46 -08:00
Terry Heo
ff99778343 Build pip_package with Bazel
Added new script build_pip_package_with_bazel.sh.
This scirpt can be used with ci_build.sh of TF for cross building.

ex) Build armhf Python3 based PIP
$ CI_DOCKER_EXTRA_PARAMS="-e CI_BUILD_PYTHON=python3 -e CROSSTOOL_PYTHON_INCLUDE_PATH=/usr/include/python3.5" \
  tensorflow/tools/ci_build/ci_build.sh PI-PYTHON3 \
  tensorflow/lite/tools/pip_package/build_pip_package_with_bazel.sh armhf

PiperOrigin-RevId: 312420603
Change-Id: I5504fb22248e6a9d29560fa9216113a8705b7399
2020-05-19 22:19:00 -07:00
Terry Heo
4961f18733 Add embedded toolchains for cross-compiling
Added Bazel toolchain configuration for ARM's GNU toolchain.
- https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain
- GCC 8.3-2019.03

This configuration handles following CPU and build config_settings.
- armhf: linux_armhf
- aarch64: linux_aarch64

PiperOrigin-RevId: 306351085
Change-Id: I479d52e2243be9f75888ea81c7250e9072825da5
2020-04-13 18:27:07 -07:00