Lines Matching +full:cross +full:- +full:toolchain

2 .\" SPDX-License-Identifier: BSD-2-Clause
41 .Bl -tag -width "/usr/ports"
49 third-party software, with a consistent interface for building and
54 These directories may be initially empty or non-existent until updated
74 A source tree is allowed to be read-only.
108 .Bl -tag -width ".Cm cleandepend"
150 Per-object dependencies are generated at build time and stored in
176 .Bl -tag -width ".Cm distributeworld"
180 For cross-building the target architecture needs to be specified with
187 This target is only useful after a complete toolchain (including
190 .Cm toolchain
198 like cross build an application.
229 for cross builds and native builds with variable
258 .It Cm native-xtools
259 This target builds a cross-toolchain for the given
270 .It Cm native-xtools-install
276 .Pa nxb-bin .
283 .Xr freebsd-base 7
304 .Xr freebsd-base 7
324 .It Cm toolchain
325 Create the build toolchain needed to build the rest of the system.
326 For cross-architecture builds, this step creates a cross-toolchain.
361 Create a build toolchain for each architecture supported by the build system.
363 Builds and installs a cross-toolchain and sysroot for the given
369 .Cm xdev-build
371 .Cm xdev-install .
385 .Pa ${TARGET_ARCH}-freebsd .
386 .It Cm update-packages
388 .Xr freebsd-base 7
394 .It Cm xdev-build
398 .It Cm xdev-install
402 .It Cm xdev-links
403 Installs autoconf-style symlinks to
405 pointing into the xdev toolchain in
412 .Bl -tag -width ".Cm distributekernel"
424 renaming any pre-existing directory with this name to
448 .Xr freebsd-base 7
455 .It Cm kernel-toolchain
475 .Bl -tag -width ".Cm delete-old-libs"
476 .It Cm check-old
478 .It Cm check-old-libs
480 .It Cm delete-old
483 .Li -DBATCH_DELETE_OLD_FILES
485 non-interactive.
493 .It Cm delete-old-libs
498 .Li -DBATCH_DELETE_OLD_FILES
500 non-interactive.
511 .Bl -tag -width ".Va MAKEOBJDIRPREFIX"
540 .Pa /etc/src-env.conf
561 .Bl -tag -width ".Va LOCAL_MODULES_DIR"
563 Requests use of an external toolchain to build either the world or kernel.
568 toolchain such as
575 LLVM toolchain packages use the name llvm<major version>.
577 name ${MACHINE_ARCH}-gcc<major version>.
589 Useful for stand-alone modules that depend on
665 .Cm bootstrap-tools
670 .Cm build-tools
675 .Cm cross-tools
684 .Xr freebsd-base 7
694 .Xr pkg-create 8 .
703 .Xr freebsd-base 7
708 .Bd -literal
709 PORTS_MODULES=graphics/gpu-firmware-intel-kmod@kabylake
710 PORTS_MODULES+=graphics/drm-66-kmod
719 Defaults to the list of sub-directories of
739 .Xr src-env.conf 5 .
756 Override the default list of sub-directories and only build the
757 sub-directory named in this variable.
763 .Cm -DNO_LIBS ,
765 .Cm -DWORLDFAST
776 .Bd -literal -offset indent
777 make some-target SUBDIR_OVERRIDE=foo/bar
792 This is necessary to cross-build some target architectures.
793 For example, cross-building for ARM64 machines requires
808 Set this to cross-build for a different architecture.
826 .Bl -tag -width ".Va LOADER_DEFAULT_INTERP"
897 Requests use of the toolchain built as part of the
899 target as an external toolchain.
917 .Bl -tag -width ".Va DOC_LANG"
929 .Bl -tag -width ".Va USE_GCC_TOOLCHAINS"
953 If the required toolchain package for a supported architecture is not installed,
963 In addition to the supported architectures, build the semi-supported
965 A semi-supported architecture has build support in the
971 .Bl -tag -width ".Pa /usr/share/examples/etc/make.conf" -compact
1002 .Bd -literal -offset indent
1005 PORTS_MODULES+=graphics/drm-kmod emulators/virtualbox-ose-kmod
1011 .Bd -literal -offset indent
1016 shutdown -r now
1019 For major version upgrades, boot into single-user mode.
1023 .Bd -literal -offset indent
1025 etcupdate -p
1027 etcupdate -B
1028 make delete-old delete-old-libs
1029 shutdown -r now
1039 .Bd -literal -offset indent
1048 After creating the new kernel configuration, build a fresh toolchain,
1051 .Bd -literal -offset indent
1052 make kernel-toolchain
1053 make -DALWAYS_CHECK_MAKE buildkernel KERNCONF=MYKERNEL
1054 make -DALWAYS_CHECK_MAKE installkernel KERNCONF=MYKERNEL
1055 shutdown -r now
1062 .Bd -literal -offset indent
1064 nextboot -k testkernel
1065 shutdown -r now
1070 .Bd -literal -offset indent
1078 .Bd -literal -offset indent
1086 .Bd -literal -offset indent
1090 .Ss Example 6: Cross-compiling for different architectures
1094 first prepare your source tree by building the cross-toolchain:
1095 .Bd -literal -offset indent
1097 make toolchain TARGET_ARCH=aarch64
1100 The following sequence of commands can be used to cross-build the system
1103 .Bd -literal -offset indent
1110 .Bd -literal -offset indent
1117 .Bd -literal -offset indent
1123 .Bl -diag
1137 .Xr freebsd-base 7 ,
1160 .Ql env -i