Skip to content

Commit

Permalink
drivers/Makefile.dep: Set CONFIG_MRF24J40_USE_EXT_PA_LNA if not Kconfig
Browse files Browse the repository at this point in the history
For the mrf24j40 check if Kconfig is being used before setting the
configuration CFLAG.
  • Loading branch information
leandrolanzieri committed Feb 7, 2020
1 parent e0f9ce2 commit bb56b50
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions drivers/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,11 @@ endif
ifneq (,$(filter mrf24j40m%,$(USEMODULE)))
USEMODULE += mrf24j40

# all modules but mrf24j40ma have an external PA
ifeq (,$(filter mrf24j40ma,$(USEMODULE)))
CFLAGS += -DCONFIG_MRF24J40_USE_EXT_PA_LNA
ifndef CONFIG_KCONFIG_MODULE_MRF24J40
# all modules but mrf24j40ma have an external PA
ifeq (,$(filter mrf24j40ma,$(USEMODULE)))
CFLAGS += -DCONFIG_MRF24J40_USE_EXT_PA_LNA
endif
endif
endif

Expand Down

0 comments on commit bb56b50

Please sign in to comment.