Skip to content

Commit

Permalink
Restrict which parts of the rpi firmware pi3hat_tool uses
Browse files Browse the repository at this point in the history
  • Loading branch information
jpieper committed Jun 20, 2020
1 parent a8da181 commit 49cde34
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mjbots/pi3hat/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cc_library(
name = "libpi3hat",
hdrs = ["pi3hat.h"],
srcs = ["pi3hat.cc"],
deps = ["@raspberrypi-firmware"],
deps = ["@raspberrypi-firmware//:bcm_host"],
features = ["dbg"],
)

Expand Down
14 changes: 14 additions & 0 deletions tools/workspace/raspberrypi-firmware/package.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,20 @@

package(default_visibility = ["//visibility:public"])

cc_library(
name = "bcm_host",
hdrs = [
"hardfp/opt/vc/include/bcm_host.h",
] + glob([
"hardfp/opt/vc/include/interface/**/*.h",
"hardfp/opt/vc/include/vcinclude/**/*.h",
]),
srcs = ["hardfp/opt/vc/lib/libbcm_host.so"],
includes = [
"hardfp/opt/vc/include",
],
)

cc_library(
name = "raspberrypi-firmware",
hdrs = glob(["hardfp/opt/vc/include/**/*.h"]),
Expand Down

0 comments on commit 49cde34

Please sign in to comment.