Skip to content

Commit

Permalink
[BAZEL] fixed board configs
Browse files Browse the repository at this point in the history
  • Loading branch information
hexdae committed Jun 13, 2020
1 parent 7edfdc1 commit c24593c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 27 deletions.
21 changes: 21 additions & 0 deletions boards/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,24 @@ constraint_value(
name = "pca10100",
constraint_setting = ":board",
)

config_setting(
name = "is_pca10040",
constraint_values = [
":pca10040",
],
)

config_setting(
name = "is_pca10056",
constraint_values = [
":pca10056",
],
)

config_setting(
name = "is_pca10100",
constraint_values = [
":pca10100",
],
)
24 changes: 0 additions & 24 deletions config/BUILD

This file was deleted.

6 changes: 3 additions & 3 deletions examples/nfc/wake_on_nfc/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ load("@nRF5//rules:nrf.bzl", "nrf_binary")
package(default_visibility = ["//visibility:public"])

board_sources = select({
"@nRF5//config:pca10040": [
"@nRF5//boards:is_pca10040": [
"@nrf_sdk//:modules/nrfx/mdk/gcc_startup_nrf52.S",
"@nrf_sdk//:modules/nrfx/mdk/system_nrf52.c",
],
"@nRF5//config:pca10056": [
"@nRF5//boards:is_pca10056": [
"@nrf_sdk//:modules/nrfx/mdk/gcc_startup_nrf52840.S",
"@nrf_sdk//:modules/nrfx/mdk/system_nrf52840.c",
],
"@nRF5//config:pca10100": [
"@nRF5//boards:is_pca10100": [
"@nrf_sdk//:modules/nrfx/mdk/gcc_startup_nrf52833.S",
"@nrf_sdk//:modules/nrfx/mdk/system_nrf52833.c",
],
Expand Down

0 comments on commit c24593c

Please sign in to comment.