Check-in [c7c8cee859]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:If host is recent current and building stable/9 or stable/8 then use fmake to build
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: c7c8cee8595acac6f6570afc03a6aabf0f2962c0
User & Date: bapt 2013-06-25 20:53:34
Context
2013-06-25
21:07
Add preliminary support for cross building mips64 and armv6 This consider you have qemu-mips64 or qemu-arm installed in static version on your system This is also considering you have Stacey Son patches and binmisctl on your system: see: http://people.freebsd.org/~sson/imgact_binmisc/ and https://wiki.freebsd.org/QemuUserModeHowTo This patch consider you condigure binmisc expecting qemu-mips64 or qemu-arm being launch from the following path: /usr/bin/qemu-* check-in: f781dc0560 user: bapt tags: trunk
20:53
If host is recent current and building stable/9 or stable/8 then use fmake to build check-in: c7c8cee859 user: bapt tags: trunk
2013-06-24
19:56
jail -s now start the jail with network check-in: f719091f8d user: bapt tags: trunk
Changes

Changes to src/share/poudriere/jail.sh.

195
196
197
198
199
200
201







202
203
204
205
206
207
208
209
210
211
212
213
214
	if [ -n "${CCACHE_DIR}" -a -d ${CCACHE_PATH}/world ]; then
		export CCACHE_DIR
		export CC="${CCACHE_PATH}/world/cc"
		export CXX="${CCACHE_PATH}/world/c++"
		unset CCACHE_TEMPDIR
	fi








	msg "Starting make buildworld with ${PARALLEL_JOBS} jobs"
	make -C ${JAILMNT}/usr/src buildworld ${MAKE_JOBS} ${MAKEWORLDARGS} || err 1 "Fail to build world"
	msg "Starting make installworld"
	make -C ${JAILMNT}/usr/src installworld DESTDIR=${JAILMNT} DB_FROM_SRC=1 || err 1 "Fail to install world"
	make -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distrib-dirs &&
	make -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distribution
}

install_from_svn() {
	local UPDATE=0
	local proto
	[ -d ${JAILMNT}/usr/src ] && UPDATE=1
	mkdir -p ${JAILMNT}/usr/src







>
>
>
>
>
>
>

|

|
|
|







195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
	if [ -n "${CCACHE_DIR}" -a -d ${CCACHE_PATH}/world ]; then
		export CCACHE_DIR
		export CC="${CCACHE_PATH}/world/cc"
		export CXX="${CCACHE_PATH}/world/c++"
		unset CCACHE_TEMPDIR
	fi

	fbsdver=$(awk '/^\#define[[:blank:]]__FreeBSD_version/ {print $$3}' ${JAILMNT}/usr/src/sys/sys/param.h)
	hostver=$(sysctl -n kern.osreldate)
	make_cmd=make
	if [ ${hostver} -gt 1000000 -a ${fbsdver} -lt 1000000 ]; then
		[ -x `which fmake 2>/dev/null` ] || err 1 "You need fmake installed on the host: devel/fmake"
		make_cmd=fmake
	fi
	msg "Starting make buildworld with ${PARALLEL_JOBS} jobs"
	${make_cmd} -C ${JAILMNT}/usr/src buildworld ${MAKE_JOBS} ${MAKEWORLDARGS} || err 1 "Fail to build world"
	msg "Starting make installworld"
	${make_cmd} -C ${JAILMNT}/usr/src installworld DESTDIR=${JAILMNT} DB_FROM_SRC=1 || err 1 "Fail to install world"
	${make_cmd} -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distrib-dirs &&
	${make_cmd} -C ${JAILMNT}/usr/src DESTDIR=${JAILMNT} distribution
}

install_from_svn() {
	local UPDATE=0
	local proto
	[ -d ${JAILMNT}/usr/src ] && UPDATE=1
	mkdir -p ${JAILMNT}/usr/src