Skip to content

Commit df30029

Browse files
committed
boards: adapt boards with ada-nrf52-bl to common makefiles
1 parent de2f310 commit df30029

File tree

13 files changed

+12
-33
lines changed

13 files changed

+12
-33
lines changed

boards/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@ DIRS += $(RIOTBOARD)/common/init
33

44

55
# SORT THIS ALPHABETICALLY BY BOARD NAME!
6+
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
7+
DIRS += $(RIOTBOARD)/common/adafruit-nrf52-bootloader
8+
endif
69

710
include $(RIOTBASE)/Makefile.base

boards/Makefile.dep

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# SORT THIS ALPHABETICALLY BY BOARD NAME!
2+
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
3+
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.dep
4+
endif

boards/Makefile.include

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
# SORT THIS ALPHABETICALLY BY BOARD NAME!
2+
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
3+
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.include
4+
endif
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
include $(RIOTBOARD)/common/nrf52/bootloader_nrfutil.dep.mk
2-
3-
# make sure the bootloader module is used for reset to work
4-
USEMODULE += boards_common_adafruit-nrf52-bootloader
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
MODULE = board
22

3-
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
4-
# add the adafruit-nrf52-bootloader directory to the build
5-
DIRS += $(RIOTBOARD)/common/adafruit-nrf52-bootloader
6-
endif
7-
83
include $(RIOTBASE)/Makefile.base

boards/feather-nrf52840-sense/Makefile.dep

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
99
USEMODULE += ws281x
1010
endif
1111

12-
# include common Adafruit nRF52 Bootloader dependencies
13-
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.dep
12+
USEMODULE += boards_common_adafruit-nrf52-bootloader
1413

1514
# include common nrf52 dependencies
1615
include $(RIOTBOARD)/common/nrf52/Makefile.dep
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
UF2_SOFTDEV ?= SD611
2-
3-
# Include the common definitions for the Adafruit nRF52 Bootloader
4-
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.include

boards/feather-nrf52840/Makefile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
MODULE = board
22

3-
ifneq (,$(filter boards_common_adafruit-nrf52-bootloader,$(USEMODULE)))
4-
# add the adafruit-nrf52-bootloader directory to the build
5-
DIRS += $(RIOTBOARD)/common/adafruit-nrf52-bootloader
6-
endif
7-
83
include $(RIOTBASE)/Makefile.base

boards/feather-nrf52840/Makefile.dep

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ ifneq (,$(filter saul_default,$(USEMODULE)))
44
USEMODULE += ws281x
55
endif
66

7-
# include common Adafruit nRF52 Bootloader dependencies
8-
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.dep
7+
USEMODULE += boards_common_adafruit-nrf52-bootloader
98

109
# include common nrf52 dependencies
1110
include $(RIOTBOARD)/common/nrf52/Makefile.dep
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
UF2_SOFTDEV ?= SD611
2-
3-
# Include the common definitions for the Adafruit nRF52 Bootloader
4-
include $(RIOTBOARD)/common/adafruit-nrf52-bootloader/Makefile.include

0 commit comments

Comments
 (0)