Date: Tue, 19 Aug 2014 03:51:11 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r270162 - head/tools/tools/nanobsd Message-ID: <201408190351.s7J3pBFF076214@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Tue Aug 19 03:51:10 2014 New Revision: 270162 URL: http://svnweb.freebsd.org/changeset/base/270162 Log: Add support for -X, which installs the native cross tools for qemu operations. Doesn't install qemu nor setup the jail, yet. Modified: head/tools/tools/nanobsd/nanobsd.sh Modified: head/tools/tools/nanobsd/nanobsd.sh ============================================================================== --- head/tools/tools/nanobsd/nanobsd.sh Tue Aug 19 03:51:05 2014 (r270161) +++ head/tools/tools/nanobsd/nanobsd.sh Tue Aug 19 03:51:10 2014 (r270162) @@ -347,6 +347,18 @@ install_kernel ( ) ( ) > ${NANO_OBJ}/_.ik 2>&1 ) +native_xtools ( ) ( + print 2 "Installing the optimized native build tools for cross env" + pprint 3 "log: ${NANO_OBJ}/_.native_xtools" + + cd ${NANO_SRC} + env TARGET_ARCH=${NANO_ARCH} \ + ${NANO_MAKE} SRCCONF=${SRCCONF} \ + __MAKE_CONF=${NANO_MAKE_CONF_INSTALL} native-xtools \ + DESTDIR=${NANO_WORLDDIR} \ + > ${NANO_OBJ}/_.native_xtools 2>&1 +) + run_customize() ( pprint 2 "run customize scripts" @@ -920,9 +932,10 @@ do_installkernel=true do_world=true do_image=true do_copyout_partition=true +do_native_xtools=false set +e -args=`getopt Kbc:fhiknqvw $*` +args=`getopt KXbc:fhiknqvw $*` if [ $? -ne 0 ] ; then usage exit 2 @@ -938,6 +951,10 @@ do do_installkernel=false shift ;; + -X) + do_native_xtools=true + shift + ;; -b) do_world=false do_kernel=false @@ -1089,6 +1106,9 @@ clean_world make_conf_install install_world install_etc +if $do_native_xtools ; then + native_xtools +fi setup_nanobsd_etc if $do_installkernel ; then install_kernel
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408190351.s7J3pBFF076214>