Use the downloaded clang when building for armhf-debian
This makes it work on a barebones Stretch installation.
Also add building for this CPU to the CI script so we know it keeps
working, which means marking everything that's supposed to work
appropriately.
Change-Id: Ic050ce20eae45c6b23e0e42dddb24db3ebc70b84
diff --git a/aos/vision/image/BUILD b/aos/vision/image/BUILD
index e41aabc..8409ea5 100644
--- a/aos/vision/image/BUILD
+++ b/aos/vision/image/BUILD
@@ -1,46 +1,66 @@
-package(default_visibility = ['//visibility:public'])
-load('//tools/build_rules:protobuf.bzl', 'proto_cc_library')
+package(default_visibility = ["//visibility:public"])
+
+load("//tools/build_rules:protobuf.bzl", "proto_cc_library")
cc_library(
- name = 'image_types',
- hdrs = ['image_types.h'],
- deps = [
- '//aos/common/logging:logging',
- ],
+ name = "image_types",
+ hdrs = ["image_types.h"],
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ deps = [
+ "//aos/common/logging",
+ ],
)
proto_cc_library(
- name = 'camera_params',
- src = 'camera_params.proto',
+ name = "camera_params",
+ src = "camera_params.proto",
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
)
cc_library(
- name = 'reader',
- srcs = ['reader.cc'],
- hdrs = ['V4L2.h', 'reader.h'],
- deps = [
- '//aos/common:time',
- '//aos/common/logging:logging',
- ':image_types',
- ':camera_params',
- ],
+ name = "reader",
+ srcs = ["reader.cc"],
+ hdrs = [
+ "V4L2.h",
+ "reader.h",
+ ],
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ deps = [
+ ":camera_params",
+ ":image_types",
+ "//aos/common:time",
+ "//aos/common/logging",
+ ],
)
cc_library(
- name = 'jpeg_routines',
- srcs = ['jpeg_routines.cc'],
- hdrs = ['jpeg_routines.h'],
- deps = [
- '//third_party/libjpeg',
- '//aos/common/logging:logging',
- ':image_types'
- ],
+ name = "jpeg_routines",
+ srcs = ["jpeg_routines.cc"],
+ hdrs = ["jpeg_routines.h"],
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ deps = [
+ ":image_types",
+ "//aos/common/logging",
+ "//third_party/libjpeg",
+ ],
)
-cc_library(name = 'image_stream',
- hdrs = ['image_stream.h'],
- deps = [
- '//aos/vision/events:epoll_events',
- '//aos/vision/image:reader'
- ]
+cc_library(
+ name = "image_stream",
+ hdrs = ["image_stream.h"],
+ compatible_with = [
+ "//tools:armhf-debian",
+ ],
+ deps = [
+ "//aos/vision/events:epoll_events",
+ "//aos/vision/image:reader",
+ ],
)