Filip Kujawa | a5e3970 | 2023-03-04 17:58:27 -0800 | [diff] [blame^] | 1 | # Clone the correct version of libedgetpu |
| 2 | git clone https://github.com/google-coral/libedgetpu.git |
| 3 | cd libedgetpu |
| 4 | # Build libedgetpu.so.1.0 for both arm and x86 |
| 5 | DOCKER_CPUS="k8" DOCKER_IMAGE="ubuntu:18.04" DOCKER_TARGETS=libedgetpu make docker-build |
| 6 | DOCKER_CPUS="aarch64" DOCKER_IMAGE="debian:stretch" DOCKER_TARGETS=libedgetpu make docker-build |
| 7 | # Create the directory for the tarball and move the resulting files into it |
| 8 | mkdir libedgetpu-bazel |
| 9 | mkdir libedgetpu-bazel/arm |
| 10 | mkdir libedgetpu-bazel/k8 |
| 11 | cp out/direct/aarch64/libedgetpu.so.1.0 libedgetpu-bazel/arm |
| 12 | cp out/direct/k8/libedgetpu.so.1.0 libedgetpu-bazel/k8 |
| 13 | |
| 14 | # Copy header files to the include directory |
| 15 | mkdir libedgetpu-bazel/include |
| 16 | cp -r include/* libedgetpu-bazel/include/ |