mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Allow installworld to be skipped as well as installkernel with -W.
Allow -B to mean -K -W. There are times when fixing non-base elementes of the build that you don't want to wait to get a completely clean world install. This allows that at the cost of a little danger. Submitted by: gallatin@ Sponsored by: Netflix, Inc
This commit is contained in:
parent
29481b994e
commit
1ad69dcca9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308736
@ -40,6 +40,7 @@ do_clean=true
|
|||||||
do_kernel=true
|
do_kernel=true
|
||||||
do_installkernel=true
|
do_installkernel=true
|
||||||
do_world=true
|
do_world=true
|
||||||
|
do_installworld=true
|
||||||
do_image=true
|
do_image=true
|
||||||
do_copyout_partition=true
|
do_copyout_partition=true
|
||||||
do_native_xtools=false
|
do_native_xtools=false
|
||||||
@ -48,7 +49,7 @@ do_native_xtools=false
|
|||||||
do_legacy=false
|
do_legacy=false
|
||||||
|
|
||||||
set +e
|
set +e
|
||||||
args=`getopt KXbc:fhiknqvw $*`
|
args=`getopt BKXWbc:fhiknqvw $*`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
usage
|
usage
|
||||||
exit 2
|
exit 2
|
||||||
@ -60,6 +61,11 @@ for i
|
|||||||
do
|
do
|
||||||
case "$i"
|
case "$i"
|
||||||
in
|
in
|
||||||
|
-B)
|
||||||
|
do_installworld=false
|
||||||
|
do_installkernel=false
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-K)
|
-K)
|
||||||
do_installkernel=false
|
do_installkernel=false
|
||||||
shift
|
shift
|
||||||
@ -68,6 +74,10 @@ do
|
|||||||
do_native_xtools=true
|
do_native_xtools=true
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-W)
|
||||||
|
do_installworld=false
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-b)
|
-b)
|
||||||
do_world=false
|
do_world=false
|
||||||
do_kernel=false
|
do_kernel=false
|
||||||
@ -174,10 +184,15 @@ else
|
|||||||
pprint 2 "Skipping buildkernel (as instructed)"
|
pprint 2 "Skipping buildkernel (as instructed)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
clean_world
|
if $do_installworld ; then
|
||||||
make_conf_install
|
clean_world
|
||||||
install_world
|
make_conf_install
|
||||||
install_etc
|
install_world
|
||||||
|
install_etc
|
||||||
|
else
|
||||||
|
pprint 2 "Skipping installworld (as instructed)"
|
||||||
|
fi
|
||||||
|
|
||||||
if $do_native_xtools ; then
|
if $do_native_xtools ; then
|
||||||
native_xtools
|
native_xtools
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user