changeset 509:70bd01e1b81b

Check for required things before start to build FreeBSD's toolchains.
author Aleksandr Rybalko <ray@ddteam.net>
date Thu, 02 Oct 2014 15:44:25 +0300
parents 6652c18b00de
children d6809f73abeb
files Makefile
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Oct 02 15:42:10 2014 +0300
+++ b/Makefile	Thu Oct 02 15:44:25 2014 +0300
@@ -254,8 +254,10 @@
 	${CLANG_VARS} \
 	-DNO_CLEAN
 
+upgrade_checks:
+	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_TC_BUILD_ENV} -C ${FREEBSD_SRC_TREE} upgrade_checks
 
-kernel-toolchain:
+kernel-toolchain:	upgrade_checks
 .if !defined(SKIP_TOOLCHAIN)
 	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_KERNEL_TC_BUILD_ENV} -C ${FREEBSD_SRC_TREE} kernel-toolchain
 .endif
@@ -429,7 +431,7 @@
 #
 # World
 #
-world-toolchain:
+world-toolchain:	upgrade_checks
 .if !defined(SKIP_WORLD_INSTALL)
 	MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_WORLD_TCBUILD_ENV} \
 	    -C ${FREEBSD_SRC_TREE} toolchain