Lines Matching +full:qemu +full:- +full:4 +full:- +full:build

3 # The common user-driven targets are (for a complete list, see build(7)):
5 # universe - *Really* build *everything* (buildworld and
7 # MAKE_JUST_KERNELS or WITHOUT_WORLDS to only build kernels,
8 # MAKE_JUST_WORLDS or WITHOUT_KERNELS to only build userland.
9 # tinderbox - Same as universe, but presents a list of failed build
11 # worlds - Same as universe, except just makes the worlds.
12 # kernels - Same as universe, except just makes the kernels.
13 # buildworld - Rebuild *everything*, including glue to help do
15 # installworld - Install everything built by "buildworld".
16 # world - buildworld + installworld, no kernel.
17 # buildkernel - Rebuild the kernel and the kernel-modules.
18 # installkernel - Install the kernel and the kernel-modules.
20 # reinstallkernel - Reinstall the kernel and the kernel-modules.
22 # kernel - buildkernel + installkernel.
23 # kernel-toolchain - Builds the subset of world necessary to build a kernel
24 # kernel-toolchains - Build kernel-toolchain for all universe targets.
25 # doxygen - Build API documentation of the kernel, needs doxygen.
26 # checkworld - Run test suite on installed world.
27 # check-old - List obsolete directories/files/libraries.
28 # check-old-dirs - List obsolete directories.
29 # check-old-files - List obsolete files.
30 # check-old-libs - List obsolete libraries.
31 # delete-old - Delete obsolete directories/files.
32 # delete-old-dirs - Delete obsolete directories.
33 # delete-old-files - Delete obsolete files.
34 # delete-old-libs - Delete obsolete libraries.
35 # list-old-dirs - Raw list of possibly obsolete directories.
36 # list-old-files - Raw list of possibly obsolete files.
37 # list-old-libs - Raw list of possibly obsolete libraries.
38 # targets - Print a list of supported TARGET/TARGET_ARCH pairs
40 # toolchains - Build a toolchain for all world and kernel targets.
41 # makeman - Regenerate src.conf(5)
42 # sysent - (Re)build syscall entries from syscalls.master.
43 # xdev - xdev-build + xdev-install for the architecture
45 # xdev-build - Build cross-development tools.
46 # xdev-install - Install cross-development tools.
47 # xdev-links - Create traditional links in /usr/bin for cc, etc
48 # native-xtools - Create host binaries that produce target objects
49 # for use in qemu user-mode jails. TARGET and
51 # native-xtools-install
52 # - Install the files to the given DESTDIR/NXTP where
53 # NXTP defaults to /nxb-bin.
56 # the /usr/share/mk/sys.mk unless the -m argument is specified on the
62 # Most of the user-driven targets (as listed above) are implemented in
65 # If you want to build your system from source, be sure that /usr/obj has
66 # at least 6 GB of disk space available. A complete 'universe' build of
67 # r340283 (2018-11) required 167 GB of space. ZFS lz4 compression
70 # For individuals wanting to build from the sources currently on their
83 # 4. `make installkernel KERNCONF=YOUR_KERNEL_HERE' (default is GENERIC).
84 # [steps 3. & 4. can be combined by using the "kernel" target]
85 # 5. `reboot' (in single user mode: boot -s from the loader prompt).
86 # 6. `etcupdate -p'
88 # 8. `etcupdate -B'
89 # 9. `make delete-old'
91 # 11. `make delete-old-libs' (in case no 3rd party program uses them anymore)
93 # For individuals wanting to build from source with GCC from ports, first
95 # `pkg install ${TARGET_ARCH}-gccN`
98 # CROSS_TOOLCHAIN=${TARGET_ARCH}-gccN while building with the above steps,
99 # e.g., `make buildworld CROSS_TOOLCHAIN=amd64-gcc13`.
101 # The ${TARGET_ARCH}-gccN packages are provided as flavors of the
102 # devel/freebsd-gccN ports.
107 # cross build world for other machine types using the buildworld target,
108 # and once the world is built you can cross build a kernel using the
111 # Define the user-driven targets. These are listed here in alphabetical
118 # For more information, see the build(7) manual page.
123 # make buildworld-jobs
125 # make -j${JOB_MAX} buildworld > ../buildworld.log 2>&1
127 .if make(*-jobs)
140 # This is included so CC is set to ccache for -V, and COMPILER_TYPE/VERSION can
141 # be cached for sub-makes. The need for CC is done with new make later in the
142 # build, and caching COMPILER_TYPE/VERSION is only an optimization. Also
149 !make(showconfig) && !make(print-dir)
150 # targets/Makefile plays the role of top-level
156 TGTS= all all-man buildenv buildenvvars buildetc buildkernel buildworld \
157 check check-old check-old-dirs check-old-files check-old-libs \
160 delete-old delete-old-dirs delete-old-files delete-old-libs \
162 distributeworld distrib-dirs distribution doxygen \
166 installworld kernel-toolchain libraries maninstall \
167 list-old-dirs list-old-files list-old-libs \
170 _cleanworldtmp _worldtmp _legacy _bootstrap-tools _cleanobj _obj \
171 _build-tools _build-metadata _cross-tools _includes _libraries \
172 builddtb xdev xdev-build xdev-install \
173 xdev-links native-xtools native-xtools-install stageworld stagekernel \
174 stage-packages stage-packages-kernel stage-packages-world stage-packages-source \
175 create-packages-world create-packages-kernel \
176 create-packages-kernel-repo create-packages-world-repo \
177 create-packages-source create-packages \
178 update-packages packages installconfig real-packages real-update-packages \
179 sign-packages package-pkg print-dir test-system-compiler test-system-linker \
180 test-includes
183 TGTS+= build${libcompat} distribute${libcompat} install${libcompat}
187 XTGTS= native-xtools native-xtools-install xdev xdev-build xdev-install \
188 xdev-links
195 BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/}
202 # For other cases, such as delete-old-libs, meta mode may break
207 buildworld everything kernel-toolchain kernel-toolchains kernel \
208 kernels libraries native-xtools showconfig test-includes \
209 test-system-compiler test-system-linker tinderbox toolchain \
210 toolchains universe universe-toolchain world worlds xdev xdev-build
213 META_TGT_WHITELIST+= build${libcompat}
217 .ORDER: buildworld distrib-dirs
222 .ORDER: distrib-dirs distribute
223 .ORDER: distrib-dirs distributeworld
224 .ORDER: distrib-dirs installworld
235 .ORDER: kernel-toolchain buildkernel
238 # PATH may include tools that are required to cross-build
239 # on non-FreeBSD systems.
244 _MAKEOBJDIRPREFIX!= /usr/bin/env -i PATH=${PATH:Q} ${MAKE} MK_AUTO_OBJ=no \
247 -f /dev/null -V MAKEOBJDIRPREFIX dummy
249 .error MAKEOBJDIRPREFIX can only be set in environment or src-env.conf(5),\
250 not as a global (in make.conf(5) or src.conf(5)) or command-line variable.
253 # We often need to use the tree's version of make to build it.
255 # 20160604 - support missing-meta,missing-filemon and performance improvements
258 # 20160220 - support .dinclude for FAST_DEPEND.
271 SUB_MAKE:= ${MYMAKE} -m ${.CURDIR}/share/mk
274 SUB_MAKE= `test -x ${MYMAKE} && echo ${MYMAKE} || echo ${MAKE}` \
275 -m ${.CURDIR}/share/mk
278 SUB_MAKE= ${MAKE} -m ${.CURDIR}/share/mk
281 _MAKE= PATH=${PATH:Q} MAKE_CMD="${MAKE}" ${SUB_MAKE} -f Makefile.inc1 \
303 # Require filemon be loaded to provide a working incremental build
305 ${.newline}ERROR: WITH_META_MODE is enabled but requires filemon for an incremental build. \
306 ${.newline}ERROR: 'kldload filemon' or pass -DNO_FILEMON to suppress this error.
316 # T->TA mapping is usually TARGET with arm64 the odd man out
320 # TA->T mapping is accidentally CPUARCH with aarch64 the odd man out
345 .if make(native-xtools*)
354 .if make(print-dir)
367 # Make sure we have an up-to-date make(1). Only world, buildworld and
368 # kernel-toolchain should do this as those are the initial targets used
376 kernel-toolchain: upgrade_checks
380 # Handle the user-driven targets, using the source relative mk files.
383 tinderbox toolchains kernel-toolchains: .MAKE
388 # or (in the cross build case) unlinkable results. Fail with an error
395 …xplicit target required. Likely \"${SUBDIR_OVERRIDE:Dall:Ubuildworld}\" is wanted. See build(7)."
400 CHECK_TIME!= cmp=`mktemp`; find ${.CURDIR}/sys/sys/param.h -newer "$$cmp" && rm "$$cmp"; echo
411 # not included. One can argue that this target doesn't build everything
415 @echo "--------------------------------------------------------------"
417 @echo "--------------------------------------------------------------"
418 .if target(pre-world)
420 @echo "--------------------------------------------------------------"
421 @echo ">>> Making 'pre-world' target"
422 @echo "--------------------------------------------------------------"
423 ${_+_}@cd ${.CURDIR}; ${_MAKE} pre-world
427 .if target(post-world)
429 @echo "--------------------------------------------------------------"
430 @echo ">>> Making 'post-world' target"
431 @echo "--------------------------------------------------------------"
432 ${_+_}@cd ${.CURDIR}; ${_MAKE} post-world
435 @echo "--------------------------------------------------------------"
438 @echo "--------------------------------------------------------------"
468 rm -r ${MYMAKE:H}
474 # the system bsdmake-like utility to be overridden.
483 MK_MAN=no -DNO_SHARED \
484 -DNO_CPU_CFLAGS MK_WERROR=no \
485 -DNO_SUBDIR \
490 @echo "--------------------------------------------------------------"
491 @echo ">>> Building an up-to-date ${.TARGET}(1)"
492 @echo "--------------------------------------------------------------"
503 tinderbox toolchains kernel-toolchains kernels worlds: upgrade_checks
511 kernel-toolchains: .PHONY
512 @cd ${.CURDIR}; ${SUB_MAKE} UNIVERSE_TARGET=kernel-toolchain universe
515 @cd ${.CURDIR}; ${SUB_MAKE} universe -DWITHOUT_WORLDS
528 make(targets) || make(universe-toolchain)
530 # Don't build rarely used, semi-supported architectures unless requested.
545 TOOLCHAINS_amd64= amd64-${_GCC_VERSION}
546 TOOLCHAINS_arm= armv7-${_GCC_VERSION}
547 TOOLCHAINS_arm64= aarch64-${_GCC_VERSION}
548 TOOLCHAINS_i386= i386-${_GCC_VERSION}
549 TOOLCHAINS_powerpc= powerpc-${_GCC_VERSION} powerpc64-${_GCC_VERSION}
550 TOOLCHAIN_powerpc64= powerpc64-${_GCC_VERSION}
551 TOOLCHAINS_riscv= riscv64-${_GCC_VERSION}
565 @echo ">> ${target} skipped - install ${toolchain} port or package to build"
583 # amd64) on non-FreeBSD. Rather than attempt to sanitise it, arbitrarily use
599 MAKEFAIL=tee -a ${FAILFILE}
607 @echo "--------------------------------------------------------------"
609 @echo "--------------------------------------------------------------"
611 @rm -f ${FAILFILE}
614 universe-toolchain: .PHONY universe_prologue
615 @echo "--------------------------------------------------------------"
617 @echo "--------------------------------------------------------------"
619 env PATH=${PATH:Q} ${SUB_MAKE} ${JFLAG} kernel-toolchain \
626 kernel-toolchain \
632 @if [ ! -e "${HOST_OBJTOP}/tmp/usr/bin/cc" ]; then \
636 @if [ ! -e "${HOST_OBJTOP}/tmp/usr/bin/ld" ]; then \
640 @echo "--------------------------------------------------------------"
642 @echo "--------------------------------------------------------------"
652 .if !make(targets) && !make(universe-toolchain)
657 ${SUB_MAKE} -C ${.CURDIR} -f Makefile.inc1 test-system-compiler \
658 ${MAKE_PARAMS_${target_arch}} -V MK_CLANG_BOOTSTRAP 2>/dev/null || \
665 ${SUB_MAKE} -C ${.CURDIR} -f Makefile.inc1 test-system-linker \
666 ${MAKE_PARAMS_${target_arch}} -V MK_LLD_BOOTSTRAP 2>/dev/null || \
674 # we use the test-system-compiler logic to determine if clang needs to be
678 # bootstrap-tools, and cross-tools. Need to ensure each tool actually
681 # of STRICTTMPPATH to ensure that the target-specific binaries come first.
704 universe_${target}_${target_arch}: universe-toolchain
705 universe_${target}_prologue: universe-toolchain
737 TARGET!= uname -m
748 _THINNER=xargs grep -L "^.NO_UNIVERSE" || true
752 -type f -maxdepth 0 \
753 ! -name DEFAULTS ! -name NOTES | \
759 config -m ${KERNSRCDIR}/${TARGET}/conf/${kernel} 2> /dev/null | \
760 grep -v WARNING: | cut -f 2
785 @echo "--------------------------------------------------------------"
788 @echo "--------------------------------------------------------------"
790 @if [ -e ${FAILFILE} ] ; then \
801 # Using -DWITH_META_MODE
803 # for debugging, but without any of the rest of a meta mode build.