aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2016-08-06 10:47:12 +0200
committerJerome Forissier <jerome.forissier@linaro.org>2016-08-08 17:08:34 +0200
commit5ef74e7339b61e299e63db44708a7fbfd9595de7 (patch)
tree6bac876bc7eaf6e86df70c9460da4ca2cce6effe /Makefile
parenta4bb3f48a2de880e989f8d4dbdc94cc2058d984c (diff)
Simplify platform testing macros
Update the main Makefile so that PLATFORM_$(PLATFORM) and PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) are set to 'y', and add these variables to the export list for the generation of conf.h. As a result, the definition of numerical flavor identifiers in the multiple platform_config.h files is not needed anymore, and we can also get rid of the PLATFORM_FLAVOR_IS() test macro. Instead, replace all occurrences of '#if PLATFORM_FLAVOR_IS(foo)' with '#if defined(PLATFORM_FLAVOR_foo)'. This makes it possible to test the platform and not only the flavor in any source file, so drop the manual definition of PLATFORM_hikey. Finally, remove the definitions of platform_$(PLATFORM) and platform_flavor_$(PLATFORM_FLAVOR) from core/core.mk since they are not used. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: David Brown <david.brown@linaro.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 79119894..fb96c68d 100644
--- a/Makefile
+++ b/Makefile
@@ -26,6 +26,8 @@ PLATFORM ?= vexpress
PLATFORM_FLAVOR ?= qemu_virt
O ?= out/$(ARCH)-plat-$(PLATFORM)
+PLATFORM_$(PLATFORM) := y
+PLATFORM_FLAVOR_$(PLATFORM_FLAVOR) := y
arch_$(ARCH) := y
ifneq ($O,)