Skip to content

Commit

Permalink
tests/driver_grove_ledbar: add external pba-d-01-kw2x
Browse files Browse the repository at this point in the history
Add an extension of pba-d-01-kw2x which declares itself as providing
driver_grove_ledbar so at least one board is supported by the
application when calling:
`INCLUDE_FEATURES_REQUIRED_DRIVERS=1 make info-boards-supported`
  • Loading branch information
fjmolinas committed Dec 17, 2019
1 parent 1829669 commit 07ba51b
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/driver_grove_ledbar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,7 @@ CFLAGS += -DGROVE_LEDBAR_CLK=$(TEST_GROVE_LEDBAR_CLK)
CFLAGS += -DGROVE_LEDBAR_DAT=$(TEST_GROVE_LEDBAR_DAT)
CFLAGS += -DGROVE_LEDBAR_DIR=$(TEST_GROVE_LEDBAR_DIR)

# Set without '?=' to also verify the docker integration when set with =
BOARDSDIR = $(CURDIR)/external_boards

include $(RIOTBASE)/Makefile.include
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This must be a different name than 'board' as it is implemented by 'pba-d-01-kw2x'
MODULE = board_external_pba-d-01-kw2x

DIRS += $(RIOTBOARD)/pba-d-01-kw2x

include $(RIOTBASE)/Makefile.base
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# This must be a different name than 'board' as it is implemented by 'pba-d-01-kw2x'
USEMODULE += board_external_pba-d-01-kw2x

include $(RIOTBOARD)/pba-d-01-kw2x/Makefile.dep
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FEATURES_PROVIDED += driver_grove_ledbar

include $(RIOTBOARD)/pba-d-01-kw2x/Makefile.features
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
CFLAGS += -DTHIS_BOARD_IS='"external_pba-d-01-kw2x"'

# We must duplicate the include done by $(RIOTBASE)/Makefile.include
# to also include the main board header
INCLUDES += $(addprefix -I,$(wildcard $(RIOTBOARD)/pba-d-01-kw2x/include))

include $(RIOTBOARD)/pba-d-01-kw2x/Makefile.include

0 comments on commit 07ba51b

Please sign in to comment.