It doesn't add any info and just makes the variable names longer.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
BASEDIR: absolute path of the raisin directory
PREFIX: installation PREFIX
INST_DIR: absolute path of the installation directory
-COMPONENT_UPSTREAM_URL: git url to clone, set by config
-COMPONENT_UPSTREAM_REVISION: branch or tag to checkout, set by config
+COMPONENT_URL: git url to clone, set by config
+COMPONENT_REVISION: branch or tag to checkout, set by config
You can also rely on any utility functions in common-functions.sh, in
particular:
cd "$BASEDIR"
rm -f memdisk.tar
tar cf memdisk.tar -C data grub.cfg
- git-checkout $GRUB_UPSTREAM_URL $GRUB_UPSTREAM_REVISION grub-dir
+ git-checkout $GRUB_URL $GRUB_REVISION grub-dir
cd grub-dir
./autogen.sh
## GRUB32
function libvirt_build() {
cd "$BASEDIR"
- git-checkout $LIBVIRT_UPSTREAM_URL $LIBVIRT_UPSTREAM_REVISION libvirt-dir
+ git-checkout $LIBVIRT_URL $LIBVIRT_REVISION libvirt-dir
cd libvirt-dir
CFLAGS="-I$INST_DIR/$PREFIX/include" \
LDFLAGS="-L$INST_DIR/$PREFIX/lib -Wl,-rpath-link=$INST_DIR/$PREFIX/lib" \
function qemu_build() {
cd "$BASEDIR"
- git-checkout $QEMU_UPSTREAM_URL $QEMU_UPSTREAM_REVISION qemu-dir
+ git-checkout $QEMU_URL $QEMU_REVISION qemu-dir
cd qemu-dir
./configure --enable-xen --target-list=i386-softmmu,x86_64-softmmu --prefix=$PREFIX \
--extra-cflags="-I$INST_DIR/$PREFIX/include" \
function xen_build() {
cd "$BASEDIR"
- git-checkout $XEN_UPSTREAM_URL $XEN_UPSTREAM_REVISION xen-dir
+ git-checkout $XEN_URL $XEN_REVISION xen-dir
cd xen-dir
./configure --prefix=$PREFIX --with-system-qemu=/usr/bin/qemu-system-i386
$MAKE
DESTDIR=dist
# Git urls. Use the http urls if you are behind a firewall.
-#XEN_UPSTREAM_URL="http://xenbits.xen.org/git-http/xen.git"
-#GRUB_UPSTREAM_URL="http://git.savannah.gnu.org/r/grub.git"
-#LIBVIRT_UPSTREAM_URL="https://gitorious.org/libvirt/libvirt.git"
-XEN_UPSTREAM_URL="git://xenbits.xen.org/xen.git"
-QEMU_UPSTREAM_URL="git://git.qemu.org/qemu.git"
-GRUB_UPSTREAM_URL="git://git.savannah.gnu.org/grub.git"
-LIBVIRT_UPSTREAM_URL="git://libvirt.org/libvirt.git"
+#XEN_URL="http://xenbits.xen.org/git-http/xen.git"
+#GRUB_URL="http://git.savannah.gnu.org/r/grub.git"
+#LIBVIRT_URL="https://gitorious.org/libvirt/libvirt.git"
+XEN_URL="git://xenbits.xen.org/xen.git"
+QEMU_URL="git://git.qemu.org/qemu.git"
+GRUB_URL="git://git.savannah.gnu.org/grub.git"
+LIBVIRT_URL="git://libvirt.org/libvirt.git"
# Software versions. Leave blank if you want to avoid the build, like
-# this: GRUB_UPSTREAM_REVISION=
+# this: GRUB_REVISION=
# Grub and Libvirt needs Xen to build and run.
-XEN_UPSTREAM_REVISION="master"
-QEMU_UPSTREAM_REVISION="master"
-GRUB_UPSTREAM_REVISION="master"
-LIBVIRT_UPSTREAM_REVISION="master"
+XEN_REVISION="master"
+QEMU_REVISION="master"
+GRUB_REVISION="master"
+LIBVIRT_REVISION="master"
for component in `cat "$BASEDIR"/components/series`
do
capital=`echo $component | tr '[:lower:]' '[:upper:]'`
- if eval [[ ! -z \$"$capital"_UPSTREAM_REVISION ]]
+ if eval [[ ! -z \$"$capital"_REVISION ]]
then
"$component"_"$1"
fi