summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-04 03:12:28 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-11-07 00:35:21 +0900
commit8012cc5c2f2a96fdea66359e8c559a3804cebdd4 (patch)
tree42a0c58e4bf5689ed8a2ad7ff30a9ce6e692ac5d /Makefile
parentf9a6db0f4804834930c4d4facfade0d850491eab (diff)
Build: introduce ${BUILD_PLAT} target to create the top build directory
Some platforms (for ex. UniPhier) want to create files in the very top of the build directory. Add ${BUILD_PLAT} so such files can depend on it. Make existing directory targets depend on ${BUILD_PLAT} because they are sub-directories of ${BUILD_PLAT}. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b32b417b..a648d8c0 100644
--- a/Makefile
+++ b/Makefile
@@ -260,6 +260,8 @@ include lib/stack_protector/stack_protector.mk
include ${PLAT_MAKEFILE_FULL}
+$(eval $(call MAKE_PREREQ_DIR,${BUILD_PLAT}))
+
# Platform compatibility is not supported in AArch32
ifneq (${ARCH},aarch32)
# If the platform has not defined ENABLE_PLAT_COMPAT, then enable it by default