1# |
2# $FreeBSD: head/Makefile 219137 2011-03-01 14:54:14Z jhb $ |
3# 4# The user-driven targets are: 5# 6# universe - *Really* build *everything* (buildworld and 7# all kernels on all architectures). 8# tinderbox - Same as universe, but presents a list of failed build 9# targets and exits with an error if there were any. 10# buildworld - Rebuild *everything*, including glue to help do --- 320 unchanged lines hidden (view full) --- 331TARGET_ARCHES_${target}?= ${target} 332.endfor 333 334.if defined(UNIVERSE_TARGET) 335MAKE_JUST_WORLDS= YES 336.else 337UNIVERSE_TARGET?= buildworld 338.endif |
339KERNSRCDIR?= ${.CURDIR}/sys |
340 341targets: 342 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets" 343.for target in ${TARGETS} 344.for target_arch in ${TARGET_ARCHES_${target}} 345 @echo " ${target}/${target_arch}" 346.endfor 347.endfor --- 31 unchanged lines hidden (view full) --- 379 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \ 380 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \ 381 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \ 382 ${MAKEFAIL})) 383 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`" 384.endfor 385.endif 386.if !defined(MAKE_JUST_WORLDS) |
387.if exists(${KERNSRCDIR}/${target}/conf/NOTES) 388 @(cd ${KERNSRCDIR}/${target}/conf && env __MAKE_CONF=/dev/null \ |
389 ${MAKE} LINT > ${.CURDIR}/_.${target}.makeLINT 2>&1 || \ 390 (echo "${target} 'make LINT' failed," \ 391 "check _.${target}.makeLINT for details"| ${MAKEFAIL})) 392.endif 393 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} TARGET=${target} \ 394 universe_kernels 395.endif 396 @echo ">> ${target} completed on `LC_ALL=C date`" 397.endfor 398universe_kernels: universe_kernconfs 399.if !defined(TARGET) 400TARGET!= uname -m 401.endif |
402KERNCONFS!= cd ${KERNSRCDIR}/${TARGET}/conf && \ |
403 find [A-Z0-9]*[A-Z0-9] -type f -maxdepth 0 \ 404 ! -name DEFAULTS ! -name NOTES 405universe_kernconfs: 406.for kernel in ${KERNCONFS} |
407TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \ 408 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \ |
409 grep -v WARNING: | cut -f 2 410.if empty(TARGET_ARCH_${kernel}) 411.error "Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old." 412.endif 413universe_kernconfs: universe_kernconf_${TARGET}_${kernel} 414universe_kernconf_${TARGET}_${kernel}: 415 @(cd ${.CURDIR} && env __MAKE_CONF=/dev/null \ 416 ${MAKE} ${JFLAG} buildkernel \ --- 21 unchanged lines hidden --- |