QEMU_LD_PREFIX support is upstream in qemu git

This commit is contained in:
josch 2011-10-18 16:34:59 +02:00
parent 9b490a5e33
commit 7c2ef15588
2 changed files with 15 additions and 7 deletions

20
README
View file

@ -43,10 +43,10 @@ omitdebsrc=true
-%<---------------------------- -%<----------------------------
You can also avoid all this trouble by either waiting for #632192 to be fixed You can also avoid all this trouble by either waiting for #632192 to be fixed
or by applying the patch from there to qemu and using the newly introduced or by applying the patch from there to qemu.
environment variable QEMU_LD_PREFIX like so:
QEMU_LD_PREFIX=/tmp/debian-sid/ ./polystrap.sh -d /tmp/debian-sid/ om-gta02 Since support for QEMU_LD_PREFIX has now been added upstream it is now already
part of polystrap.sh
FAKEROOT/FAKECHROOT FAKEROOT/FAKECHROOT
@ -56,13 +56,19 @@ Additionally you will need to have copies of libfakechroot.so and
libfakeroot-sysv.so for your target architecture in /usr/lib/<arch-triplet>/. libfakeroot-sysv.so for your target architecture in /usr/lib/<arch-triplet>/.
Get the debian packages of fakeroot and fakechroot for your target architecture Get the debian packages of fakeroot and fakechroot for your target architecture
and copy the shared libraries into /usr/lib/<arch-triplet>/. For example for and copy the shared libraries into /usr/lib/<arch-triplet>/. For example for
arm do: armel do:
wget http://ftp.debian.org/debian/pool/main/f/fakechroot/fakechroot_2.14-1_armel.deb
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.14.5-1_armel.deb
sudo mkdir -p /usr/lib/arm-linux-gnueabi/ sudo mkdir -p /usr/lib/arm-linux-gnueabi/
wget http://ftp.debian.org/debian/pool/main/f/fakeroot/fakeroot_1.18.1-1_armel.deb
dpkg-deb --fsys-tarfile fakeroot_1.14.5-1_armel.deb | sudo tar -xf - --strip-components=4 -C /usr/lib/arm-linux-gnueabi/ ./usr/lib/libfakeroot/libfakeroot-sysv.so dpkg-deb --fsys-tarfile fakeroot_1.14.5-1_armel.deb | sudo tar -xf - --strip-components=4 -C /usr/lib/arm-linux-gnueabi/ ./usr/lib/libfakeroot/libfakeroot-sysv.so
dpkg-deb --fsys-tarfile fakechroot_2.14-1_armel.deb | sudo tar -xf - --strip-components=4 -C /usr/lib/arm-linux-gnueabi/ ./usr/lib/fakechroot/libfakechroot.so wget http://ftp.debian.org/debian/pool/main/f/fakechroot/libfakechroot_2.15-1_armel.deb
dpkg -x libfakechroot_2.15-1_armel.deb /
Alternatively, since libfakechroot is multiarch you can also do:
apt-get install libfakechroot:armel
if your system supports it instead of the last two lines.
INNER WORKINGS INNER WORKINGS

View file

@ -84,6 +84,8 @@ fi
# binutils must always be installed for objdump for fake ldd # binutils must always be installed for objdump for fake ldd
PACKAGES="$PACKAGES binutils" PACKAGES="$PACKAGES binutils"
export QEMU_LD_PREFIX="`readlink -m "$ROOTDIR"`"
echo "I: --------------------------" echo "I: --------------------------"
echo "I: suite: $SUITE" echo "I: suite: $SUITE"
echo "I: arch: $ARCH" echo "I: arch: $ARCH"