diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-14 08:35:01 -0700 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-08-14 08:35:01 -0700 |
commit | 01d354effc9f49ce7b0d1ec082f207c8d4793789 (patch) | |
tree | b12ee5fd519056eb19d8488e9923e4d256a1bf56 /makefiles/toolchain_gnu-arm-eabi.mk | |
parent | 33e71c37a6312398ec9016f6f95969e8f7b3f50c (diff) | |
parent | de749a3602423f5ee6ca56f3cf2dfff04e31ec6d (diff) | |
download | px4-firmware-01d354effc9f49ce7b0d1ec082f207c8d4793789.tar.gz px4-firmware-01d354effc9f49ce7b0d1ec082f207c8d4793789.tar.bz2 px4-firmware-01d354effc9f49ce7b0d1ec082f207c8d4793789.zip |
Merge pull request #355 from PX4/kconfig-cleanup
Kconfig cleanup
Diffstat (limited to 'makefiles/toolchain_gnu-arm-eabi.mk')
-rw-r--r-- | makefiles/toolchain_gnu-arm-eabi.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index 3f4d3371a..9fd2dd516 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -85,6 +85,13 @@ ifeq ($(ARCHCPUFLAGS),) $(error Must set CONFIG_ARCH to one of CORTEXM4F, CORTEXM4 or CORTEXM3) endif +# Set the board flags +# +ifeq ($(CONFIG_BOARD),) +$(error Board config does not define CONFIG_BOARD) +endif +ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) + # optimisation flags # ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \ |