-
Notifications
You must be signed in to change notification settings - Fork 380
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
1,421 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
[ -e slackwarearm-14.1 ] || { | ||
echo "Run script init-build-env-arm.sh first" | ||
exit 1 | ||
} | ||
|
||
PATH=`pwd`:$PATH | ||
which proot > /dev/null || { | ||
echo "Please compile proot first, and copy it to the current directory" | ||
exit 1 | ||
} | ||
|
||
# Build PRoot/ARM statically: | ||
SRC=`cd ../src ; pwd` | ||
[ -e talloc-arm ] || { | ||
[ -e talloc.tar.gz ] || wget http://www.samba.org/ftp/talloc/talloc-2.1.3.tar.gz -O talloc.tar.gz || exit 1 | ||
rm -rf talloc-arm | ||
tar xvf talloc.tar.gz || exit 1 | ||
mv talloc-2.1.3 talloc-arm || exit 1 | ||
cd talloc-arm || exit 1 | ||
rm -f libtalloc.a | ||
proot -R ../slackwarearm-14.1 -q qemu-arm ./configure build || exit 1 | ||
ar rcs libtalloc.a bin/default/talloc*.o || exit 1 | ||
cd .. | ||
} | ||
|
||
make -C $SRC clean | ||
proot -R slackwarearm-14.1 -q qemu-arm env CPPFLAGS="-I`pwd`/talloc-arm" LDFLAGS="-L`pwd`/talloc-arm -static" make -C $SRC glibc-version=glibc-2.18 -f GNUmakefile -j4 || exit 1 | ||
mv -f $SRC/proot $SRC/proot-arm || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/sh | ||
|
||
[ -e slackwarex86-14.1 ] || { | ||
echo "Run script init-build-env-arm.sh first" | ||
exit 1 | ||
} | ||
|
||
PATH=`pwd`:$PATH | ||
which proot > /dev/null || { | ||
echo "Please compile proot first, and copy it to the current directory" | ||
exit 1 | ||
} | ||
|
||
# Build PRoot/x86 statically: | ||
SRC=`cd ../src ; pwd` | ||
[ -e talloc-x86 ] || { | ||
[ -e talloc.tar.gz ] || wget http://www.samba.org/ftp/talloc/talloc-2.1.3.tar.gz -O talloc.tar.gz || exit 1 | ||
rm -rf talloc-x86 | ||
tar xvf talloc.tar.gz || exit 1 | ||
mv talloc-2.1.3 talloc-x86 || exit 1 | ||
cd talloc-x86 || exit 1 | ||
rm -f libtalloc.a | ||
proot -R ../slackwarex86-14.1 -q qemu-i386 ./configure build || exit 1 | ||
ar rcs libtalloc.a bin/default/talloc*.o || exit 1 | ||
cd .. | ||
} | ||
|
||
make -C $SRC clean | ||
proot -R slackwarex86-14.1 -q qemu-i386 env CPPFLAGS="-I`pwd`/talloc-x86" LDFLAGS="-L`pwd`/talloc-x86 -static" make -C $SRC glibc-version=glibc-2.18 -f GNUmakefile -j4 || exit 1 | ||
mv -f $SRC/proot $SRC/proot-x86 || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/sh | ||
|
||
which qemu-arm > /dev/null || { | ||
echo "You need to install qemu-arm to run this script. On debian, run:" | ||
echo "sudo apt-get install qemu-user" | ||
exit 1 | ||
} | ||
|
||
which wget > /dev/null || { | ||
echo "You need to install wget to run this script. On debian, run:" | ||
echo "sudo apt-get install wget" | ||
exit 1 | ||
} | ||
|
||
PATH=`pwd`:$PATH | ||
which proot > /dev/null || { | ||
echo "Please compile proot first, and copy it to the current directory" | ||
exit 1 | ||
} | ||
|
||
PKGS=`cat slackware-devel.txt | tr '\n' ',' | sed 's@,@*,@g' | sed 's/,[*]$//' | sed 's/,$//'` | ||
echo PKGS "$PKGS" | ||
|
||
# Get Slackware/ARM packages: | ||
for DIR in a ap d e l n tcl; do | ||
wget -r -np -N --accept="$PKGS" http://ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/$DIR/ || exit 1 | ||
done | ||
|
||
rm -rf slackwarearm-14.1 | ||
mkdir slackwarearm-14.1 || exit 1 | ||
|
||
# Extract only a minimal subset (ignore errors): | ||
for DIR in a l; do | ||
ls ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/$DIR/*.t?z | xargs -n 1 tar -C slackwarearm-14.1 -x --exclude="dev/*" --exclude="lib/udev/devices/*" -f || exit 1 | ||
done | ||
|
||
# Do a minimal post-installation setup: | ||
mv slackwarearm-14.1/lib/incoming/* slackwarearm-14.1/lib/ || exit 1 | ||
mv slackwarearm-14.1/bin/bash4.new slackwarearm-14.1/bin/bash || exit 1 | ||
proot -q qemu-arm -S slackwarearm-14.1 /sbin/ldconfig || exit 1 | ||
proot -q qemu-arm -r slackwarearm-14.1 ln -s /bin/bash /bin/sh || exit 1 | ||
|
||
# Install all package correcty (ignore warnings): | ||
ls ftp.arm.slackware.com/slackwarearm/slackwarearm-14.1/slackware/*/*.t?z | xargs -n 1 proot -q qemu-arm -S slackwarearm-14.1 -b ftp.arm.slackware.com /sbin/installpkg || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/sh | ||
|
||
which qemu-i386 > /dev/null || { | ||
echo "You need to install qemu-i386 to run this script. On debian, run:" | ||
echo "sudo apt-get install qemu-user" | ||
exit 1 | ||
} | ||
|
||
which wget > /dev/null || { | ||
echo "You need to install wget to run this script. On debian, run:" | ||
echo "sudo apt-get install wget" | ||
exit 1 | ||
} | ||
|
||
PATH=`pwd`:$PATH | ||
which proot > /dev/null || { | ||
echo "Please compile proot first, and copy it to the current directory" | ||
exit 1 | ||
} | ||
|
||
PKGS=`cat slackware-devel.txt | tr '\n' ',' | sed 's@,@*,@g' | sed 's/,[*]$//' | sed 's/,$//'` | ||
echo PKGS "$PKGS" | ||
|
||
# Get Slackware/ARM packages: | ||
for DIR in a ap d e l n tcl; do | ||
wget -r -np -N --accept="$PKGS" http://ftp.slackware.com/pub/slackware/slackware-14.1/slackware/$DIR/ || exit 1 | ||
done | ||
|
||
rm -rf slackwarex86-14.1 | ||
mkdir slackwarex86-14.1 || exit 1 | ||
|
||
# Extract only a minimal subset (ignore errors): | ||
for DIR in a l; do | ||
ls ftp.slackware.com/pub/slackware/slackware-14.1/slackware/$DIR/*.t?z | xargs -n 1 tar -C slackwarex86-14.1 -x --exclude="dev/*" --exclude="lib/udev/devices/*" -f || exit 1 | ||
done | ||
|
||
# Do a minimal post-installation setup: | ||
mv slackwarex86-14.1/lib/incoming/* slackwarex86-14.1/lib/ || exit 1 | ||
mv slackwarex86-14.1/bin/bash4.new slackwarex86-14.1/bin/bash || exit 1 | ||
proot -q qemu-i386 -S slackwarex86-14.1 /sbin/ldconfig || exit 1 | ||
proot -q qemu-i386 -r slackwarex86-14.1 ln -s /bin/bash /bin/sh || exit 1 | ||
|
||
# Install all package correcty (ignore warnings): | ||
ls ftp.slackware.com/pub/slackware/slackware-14.1/slackware/*/*.t?z | xargs -n 1 proot -q qemu-i386 -S slackwarex86-14.1 -b ftp.arm.slackware.com /sbin/installpkg || exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
aaa_base | ||
aaa_elflibs | ||
aaa_terminfo | ||
bash | ||
bin- | ||
bzip2 | ||
coreutils | ||
dialog | ||
diffutils | ||
elvis | ||
etc- | ||
findutils | ||
gawk | ||
glibc-solibs | ||
gnupg | ||
grep | ||
gzip- | ||
iputils | ||
logrotate | ||
net-tools | ||
network-scripts | ||
pkgtools | ||
procps | ||
sed- | ||
shadow | ||
sharutils | ||
slackpkg | ||
sysklogd | ||
sysvinit | ||
sysvinit-functions | ||
sysvinit-scripts | ||
tar- | ||
util-linux | ||
wget | ||
which | ||
xz- | ||
zip- | ||
binutils | ||
glibc | ||
gcc-g++ | ||
gcc-4 | ||
gcc-5 | ||
gcc-6 | ||
make- | ||
cmake | ||
kernel-headers | ||
libtool | ||
autoconf | ||
automake | ||
flex | ||
bison | ||
git | ||
subversion | ||
libmpc | ||
mpfr | ||
python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.