Lines Matching full:target

38 # targets             - Print a list of supported TARGET/TARGET_ARCH pairs
44 # specified with TARGET and TARGET_ARCH.
48 # native-xtools - Create host binaries that produce target objects
49 # for use in qemu user-mode jails. TARGET and
84 # [steps 3. & 4. can be combined by using the "kernel" target]
106 # If TARGET=machine (e.g. powerpc, arm64, ...) is specified you can
107 # cross build world for other machine types using the buildworld target,
109 # buildkernel target.
186 # These targets require a TARGET and TARGET_ARCH be defined.
282 TARGET=${_TARGET} TARGET_ARCH=${_TARGET_ARCH} ${_MAKEARGS}
311 # Guess target architecture from target type, and vice versa, based on
312 # historic FreeBSD practice of tending to have TARGET == TARGET_ARCH
313 # expanding to TARGET == TARGET_CPUARCH in recent times, with known
315 .if !defined(TARGET_ARCH) && defined(TARGET)
316 # T->TA mapping is usually TARGET with arm64 the odd man out
317 _TARGET_ARCH= ${TARGET:S/arm64/aarch64/:S/riscv/riscv64/:S/arm/armv7/}
318 .elif !defined(TARGET) && defined(TARGET_ARCH) && \
323 .if defined(TARGET) && !defined(_TARGET)
324 _TARGET=${TARGET}
336 # Some targets require a set TARGET/TARGET_ARCH, check before the default
361 @echo "*** Error: Both TARGET and TARGET_ARCH must be defined for \"${_tgt}\" target"
385 ${_+_}@cd ${.CURDIR}; ${_MAKE} ${.TARGET}
387 # The historic default "all" target creates files which may cause stale
389 # when no target is given. The users can explicitly specify "all"
395 @echo "Explicit target required. Likely \"${SUBDIR_OVERRIDE:Dall:Ubuildworld}\" is wanted. See build(7)."
409 # Attempt to rebuild and reinstall everything. This target is not to be
411 # not included. One can argue that this target doesn't build everything
418 .if target(pre-world)
421 @echo ">>> Making 'pre-world' target"
427 .if target(post-world)
430 @echo ">>> Making 'post-world' target"
491 @echo ">>> Building an up-to-date ${.TARGET}(1)"
493 ${_+_}@cd ${.CURDIR}/usr.bin/${.TARGET}; \
538 .for target in ${TARGETS}
539 TARGET_ARCHES_${target}= ${MACHINE_ARCH_LIST_${target}}
554 # If a target is using an external toolchain, set MAKE_PARAMS to enable use
555 # of the toolchain. If the external toolchain is missing, exclude the target
557 .for target in ${_UNIVERSE_TARGETS}
558 .if !empty(TOOLCHAINS_${target})
559 .for toolchain in ${TOOLCHAINS_${target}}
561 _UNIVERSE_TARGETS:= ${_UNIVERSE_TARGETS:N${target}}
565 @echo ">> ${target} skipped - install ${toolchain} port or package to build"
568 .for arch in ${TARGET_ARCHES_${target}}
569 TOOLCHAIN_${arch}?= ${TOOLCHAINS_${target}:[1]}
584 # amd64 as the default universe toolchain target.
590 @echo "Supported TARGET/TARGET_ARCH pairs for world and kernel targets"
591 .for target in ${TARGETS}
592 .for target_arch in ${TARGET_ARCHES_${target}}
593 @echo " ${target}/${target_arch}"
620 TARGET=${UNIVERSE_TOOLCHAIN_TARGET} \
628 > _.${.TARGET} 2>&1 || \
629 (echo "${.TARGET} failed," \
630 "check _.${.TARGET} for details" | \
644 .for target in ${_UNIVERSE_TARGETS}
645 universe: universe_${target}
646 universe_epilogue: universe_${target}
647 universe_${target}: universe_${target}_prologue .PHONY
648 universe_${target}_prologue: universe_prologue .PHONY
649 @echo ">> ${target} started on `LC_ALL=C date`"
650 universe_${target}_worlds: .PHONY
653 .for target_arch in ${TARGET_ARCHES_${target}}
654 .if !defined(_need_clang_${target}_${target_arch})
655 _need_clang_${target}_${target_arch} != \
656 env TARGET=${target} TARGET_ARCH=${target_arch} \
660 .export _need_clang_${target}_${target_arch}
662 .if !defined(_need_lld_${target}_${target_arch})
663 _need_lld_${target}_${target_arch} != \
664 env TARGET=${target} TARGET_ARCH=${target_arch} \
668 .export _need_lld_${target}_${target_arch}
671 .if defined(_need_clang_${target}_${target_arch}) && \
672 ${_need_clang_${target}_${target_arch}} == "yes"
681 # of STRICTTMPPATH to ensure that the target-specific binaries come first.
688 .if defined(_need_lld_${target}_${target_arch}) && \
689 ${_need_lld_${target}_${target_arch}} == "yes"
697 universe_${target}_done: universe_${target}_worlds .PHONY
698 .for target_arch in ${TARGET_ARCHES_${target}}
699 universe_${target}_worlds: universe_${target}_${target_arch} .PHONY
700 .if (defined(_need_clang_${target}_${target_arch}) && \
701 ${_need_clang_${target}_${target_arch}} == "yes") || \
702 (defined(_need_lld_${target}_${target_arch}) && \
703 ${_need_lld_${target}_${target_arch}} == "yes")
704 universe_${target}_${target_arch}: universe-toolchain
705 universe_${target}_prologue: universe-toolchain
707 universe_${target}_${target_arch}: universe_${target}_prologue .MAKE .PHONY
708 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} started on `LC_ALL=C date`"
711 TARGET=${target} \
714 > _.${target}.${target_arch}.${UNIVERSE_TARGET} 2>&1 || \
715 (echo "${target}.${target_arch} ${UNIVERSE_TARGET} failed," \
716 "check _.${target}.${target_arch}.${UNIVERSE_TARGET} for details" | \
718 @echo ">> ${target}.${target_arch} ${UNIVERSE_TARGET} completed on `LC_ALL=C date`"
723 universe_${target}_done: universe_${target}_kernels .PHONY
724 universe_${target}_kernels: universe_${target}_worlds .PHONY
725 universe_${target}_kernels: universe_${target}_prologue .MAKE .PHONY
726 @cd ${.CURDIR}; ${SUB_MAKE} ${.MAKEFLAGS} TARGET=${target} \
731 universe_${target}: universe_${target}_done
732 universe_${target}_done:
733 @echo ">> ${target} completed on `LC_ALL=C date`"
736 .if !defined(TARGET)
737 TARGET!= uname -m
740 @echo ">> ${TARGET} kernels started on `LC_ALL=C date`"
742 @echo ">> ${TARGET} kernels completed on `LC_ALL=C date`"
750 KERNCONFS!= cd ${KERNSRCDIR}/${TARGET}/conf && \
757 TARGET_ARCH_${kernel}!= cd ${KERNSRCDIR}/${TARGET}/conf && \
759 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \
762 .error Target architecture for ${TARGET}/conf/${kernel} unknown. config(8) likely too old.
764 universe_kernconfs_${TARGET_ARCH_${kernel}}: universe_kernconf_${TARGET}_${kernel}
765 universe_kernconf_${TARGET}_${kernel}: .MAKE
766 @echo ">> ${TARGET}.${TARGET_ARCH_${kernel}} ${kernel} kernel started on `LC_ALL=C date`"
769 TARGET=${TARGET} \
773 > _.${TARGET}.${kernel} 2>&1 || \
774 (echo "${TARGET} ${kernel} kernel failed," \
775 "check _.${TARGET}.${kernel} for details"| ${MAKEFAIL}))
776 @echo ">> ${TARGET}.${TARGET_ARCH_${kernel}} ${kernel} kernel completed on `LC_ALL=C date`"
778 .for target_arch in ${TARGET_ARCHES_${TARGET}}