Project

General

Profile

« Previous | Next » 

Revision 6ebd280c

Added by Renato Botelho almost 9 years ago

Stop removing FreeBSD src, new clone script can detect if it's necessary

View differences:

build.conf.sample
30 30
# Do not clean FreeBSD obj dirs
31 31
#export NO_CLEAN_FREEBSD_OBJ=YES
32 32

  
33
# Do not clean FreeBSD src dir
34
#export NO_CLEAN_FREEBSD_SRC=YES
35

  
36 33
# rsync data to upload snapshots
37 34
#export RSYNCIP="your.snapshot.server"
38 35
#export RSYNCUSER="username"
build.sh
26 26
	echo "	[ options ]: "
27 27
	echo "		--flash-size|-f size(s) - a list of flash sizes to build with nanobsd i.e. '2g 4g'. Default: 2g"
28 28
	echo "		--no-buildworld|-c - Will set NO_BUILDWORLD NO_BUILDKERNEL to not build kernel and world"
29
	echo "		--no-cleanobjdir|--no-cleanrepos|-d - Will not clean FreeBSD object built dir to allow restarting a build with NO_CLEAN"
29
	echo "		--no-cleanobjdir|-d - Will not clean FreeBSD object built dir to allow restarting a build with NO_CLEAN"
30 30
	echo "		--resume-image-build|-r - Includes -c -d and also will just move directly to image creation using pre-staged data"
31 31
	echo "		--setup - Install required repo and ports builder require to work"
32 32
	echo "		--update-sources - Refetch FreeBSD sources"
......
67 67
			export NO_BUILDWORLD=YES
68 68
			export NO_BUILDKERNEL=YES
69 69
			;;
70
		--no-cleanobjdir|--no-cleanrepos|-d)
70
		--no-cleanobjdir|-d)
71 71
			export NO_CLEAN_FREEBSD_OBJ=YES
72
			export NO_CLEAN_FREEBSD_SRC=YES
73 72
			;;
74 73
		--flash-size|-f)
75 74
			shift
......
84 83
			export NO_BUILDWORLD=YES
85 84
			export NO_BUILDKERNEL=YES
86 85
			export NO_CLEAN_FREEBSD_OBJ=YES
87
			export NO_CLEAN_FREEBSD_SRC=YES
88 86
			_SKIP_REBUILD_PRESTAGE=YES
89 87
			_USE_OLD_DATESTRING=YES
90 88
			;;
tools/builder_common.sh
825 825
	rm -rf $IMAGES_FINAL_DIR/*
826 826
	echo "Done!"
827 827

  
828
	if [ -z "${NO_CLEAN_FREEBSD_SRC}" ]; then
829
		if [ -d "$FREEBSD_SRC_DIR" ]; then
830
			echo -n ">>> Ensuring $FREEBSD_SRC_DIR is clean..."
831
			rm -rf ${FREEBSD_SRC_DIR}
832
			echo "Done!"
833
		fi
834
	fi
835

  
836 828
	echo -n ">>> Cleaning previous builder logs..."
837 829
	if [ -d "$BUILDER_LOGS" ]; then
838 830
		rm -rf ${BUILDER_LOGS}

Also available in: Unified diff