I want to print out all #define macros when compiling u-boot using ARM cross compiler.
According to GCC dump preprocessor defines link I can add -dM -E flags to achieve this. However using
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CFLAGS=-dM
does not print out any #define macros.
Is there way to achieve this and print out all #define macros to a txt file?