File tree Expand file tree Collapse file tree 6 files changed +11
-19
lines changed Expand file tree Collapse file tree 6 files changed +11
-19
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ Build scripts for building Spice-enabled QEMU for SmartOS
6
6
Full documentation is kept on the wiki Page:
7
7
http://wiki.smartos.org/display/DOC/Spice+on+SmartOS
8
8
9
- 1 . Create a multiarch-12.4.1 zone with a delegated dataset and log in to it as root.
9
+ 1 . Create a base64-13.1.0 zone with a delegated dataset and log in to it as root.
10
10
1 . curl -k https://raw.github.com/nshalman/qemu-smartos-build/master/full-build | bash
Original file line number Diff line number Diff line change 1
1
export MAKEFLAGS=" -j$( psrinfo | wc -l) "
2
2
export LC_ALL=C
3
3
export MY_PREFIX=/opt/local
4
- export MY_LIBS=${MY_PREFIX} /lib/amd64
4
+ export MY_LIBS=${MY_PREFIX} /lib
5
5
export MY_INCS=${MY_PREFIX} /include
6
6
export LDFLAGS=" -m64 -L${MY_LIBS} "
7
7
export CFLAGS=" -m64 -I${MY_INCS} "
8
8
export CXXLAGS=${CFLAGS}
9
9
export CPPFLAGS=" -I${MY_INCS} "
10
- export SMARTDC=/smartdc2
10
+ export SMARTDC=/opt/local
11
11
12
12
export QEMU_VERSION=qemu-kvm-1.1.2
13
13
export VERSION=1.0.1
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -x
2
- redo-ifchange config.sh qemu-built
2
+ redo-ifchange config.sh qemu-built || exit 1
3
3
exec >&2
4
4
set -o xtrace
5
5
. ./config.sh
@@ -24,8 +24,6 @@ mkdir ${ZONEDIR}/root
24
24
25
25
( cd qemu.source && gmake DESTDIR=" ${ZONEDIR} /root" install ; ) || exit 1
26
26
27
- mkdir -p ${ZONEDIR} /root/${SMARTDC} /lib
28
-
29
27
#
30
28
# Now figure out the libs we need to copy...
31
29
#
@@ -35,7 +33,7 @@ for LIB in $LIBS; do
35
33
ISOPT=$( echo " ${LIB} " | egrep -e " ^/opt/" )
36
34
if test -n " $ISOPT " ; then
37
35
echo " Copying ${LIB} "
38
- cp ${LIB} ${ZONEDIR} /root/${SMARTDC} /lib || exit 1
36
+ rsync -LR ${LIB} ${ZONEDIR} /root/ || exit 1
39
37
fi
40
38
done
41
39
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
+ sm-summary | grep -q " base64 13.1.0" || { echo " Only the base64 13.1.0 is currently supported for building" ; exit 1 ; }
4
+
3
5
# need git to get code
4
6
pkgin up && pkgin -y in scmgit
5
7
cd /root
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -x
2
2
exec 1>&2
3
3
4
- cat > /opt/local/etc/pkgin/repositories.conf << EOF
5
- http://pkgsrc.smartos.org/packages/SmartOS/2012Q4-multiarch/All
6
- http://www.shalman.org/spice/2012Q4-multiarch-spice
7
- http://www.shalman.org/spice/2012Q4-multiarch-onbld
8
- EOF
9
-
10
- rm -rf /var/db/pkgin/
11
4
pkgin -y up
12
5
13
6
# need git to get code
@@ -16,8 +9,8 @@ pkgin -y in scmgit bsdtar
16
9
# build tools
17
10
pkgin -y in gcc47 gmake libtool-base automake pkg-config
18
11
19
- # build tools I provide
20
- pkgin -y in onbld
12
+ # onbld tools from illumos
13
+ curl http://www.shalman.org/spice/2012Q4-multiarch-onbld/onbld-0.0.1.tgz | tar xzv -C /opt/local bin lib
21
14
22
15
# dependencies
23
16
pkgin -y in png spice-protocol libspice usbredir
Original file line number Diff line number Diff line change 3
3
# This is a vm start script that processes the standard arguments from vmadmd
4
4
# and translates them to work with the new qemu.
5
5
#
6
- export LD_LIBRARY_PATH=/lib/64:/usr/lib/64:/smartdc2/lib
7
6
8
7
#
9
8
# We need to build the list of arguments... we need to inject
@@ -13,7 +12,7 @@ export LD_LIBRARY_PATH=/lib/64:/usr/lib/64:/smartdc2/lib
13
12
ARGV[0]=" -machine"
14
13
ARGV[1]=" pc,accel=kvm,kernel_irqchip=on"
15
14
ARGV[2]=" -readconfig"
16
- ARGV[3]=" /smartdc2 /etc/qemu/usbredir.cfg"
15
+ ARGV[3]=" /opt/local /etc/qemu/usbredir.cfg"
17
16
argc=4
18
17
for ARG in " $@ " ; do
19
18
echo " ARG=$ARG "
25
24
26
25
echo " FINAL ARGS: " ${ARGV[@]}
27
26
28
- exec /smartdc2 /bin/qemu-system-x86_64 " ${ARGV[@]} "
27
+ exec /opt/local /bin/qemu-system-x86_64 " ${ARGV[@]} "
You can’t perform that action at this time.
0 commit comments