This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Include app_config definitions in Makefile

I'm developing firmware for the nRF52832 in eclipse, and since I'm using the NFC pins as GPIOs I need to include the "CONFIG_NFCT_PINS_AS_GPIOS" cflag in my Makefile. However, I don't want to make this change on the nRF52 DK which I want the firmware to be backwards compatible with.

How should I include the -DCONFIG_NFCT_PINS_AS_GPIOS (or any other define) based on the board type I define in app_config.h?

Another example of this is that I see "ASMFLAGS += -DBOARD_PCA10040" defined in the makefile which I don't think I want to have defined when building for the custom board.

Related