1 # *****************************************************************************
2 # * Copyright (c) 2004, 2008 IBM Corporation
3 # * All rights reserved.
4 # * This program and the accompanying materials
5 # * are made available under the terms of the BSD License
6 # * which accompanies this distribution, and is available at
7 # * http://www.opensource.org/licenses/bsd-license.php
10 # * IBM Corporation - initial implementation
11 # ****************************************************************************/
19 DIFF_FILE=./x86emu_changes.diff
21 # check wether svn, patch, ... is available...
23 if [ ! -x $SVN ]; then
24 echo "subversion executable not found!"
27 if [ ! -x $PATCH ]; then
28 echo "patch executable not found!"
31 if [ ! -r $DIFF_FILE ]; then
32 echo "diff file $DIFF_FILE not found!"
36 # download the x86emu sources from LinuxBIOS subversion
38 #revision known to work...
41 echo "Checking out x86emu from coreboot-v3 repository revision $REV"
42 $SVN co svn://coreboot.org/repository/coreboot-v3/util/x86emu -r $REV
44 echo "Copying files..."
46 mkdir -p include/x86emu
47 cp -v x86emu/x86emu/*.c .
48 cp -v x86emu/x86emu/*.h include/x86emu
49 cp -v x86emu/include/x86emu/*.h include/x86emu
51 echo "Removing checkedout subversion director..."
55 echo "Patching files..."
57 $PATCH -p0 < x86emu_changes.diff