3
if [ "$#" != "2" ]; then
4
echo "Usage: $0 <release> <revision>" 1>&2
10
abi=$(echo $revision | awk -F. '{print $1}')
13
verfull=$ver-$revision
15
repo="http://archive.ubuntu.com/ubuntu/pool/main/l"
16
repo_ports="http://ports.ubuntu.com/ubuntu-ports/pool/main/l"
17
repo_uni="http://archive.ubuntu.com/ubuntu/pool/universe/l"
18
repo_ports_uni="http://ports.ubuntu.com/ubuntu-ports/pool/universe/l"
20
WGET="wget --quiet -c"
22
abidir="`pwd`/debian/abi/$verfull"
23
tmpdir="`pwd`/abi-tmp-$verfull"
26
test -d $tmpdir || mkdir $tmpdir
32
mkdir -p $abidir/$arch
35
if [ -f $abidir/$arch/$sub ]; then
39
echo -n "Fetching $sub..."
40
filename=linux-image-${verabi}-${sub}_${verfull}_${arch}.deb
42
for r in $repo $repo_ports $repo_uni $repo_ports_uni
44
if ! [ -f $filename ]; then
45
$WGET $r/linux/$filename
48
if [ "$?" = "0" ]; then
49
echo -n "extracting..."
50
dpkg-deb --extract $filename tmp
51
if [ -f tmp/boot/abi-* ]; then
52
mv tmp/boot/abi-* $abidir/$arch/$sub
54
echo -n "NO ABI FILE..."
56
(cd tmp; find lib/modules/$verabi-$sub/kernel -name '*.ko') | \
57
sed -e 's/.*\/\([^\/]*\)\.ko/\1/' | sort > \
58
$abidir/$arch/$sub.modules
72
echo $abi > $abidir/abiname
74
# NOTE: The flavours are hardcoded, because they may have changed from the
78
getall amd64 generic server
79
getall i386 generic generic-pae 386
81
# Ports arches and flavours.
82
getall powerpc powerpc powerpc-smp powerpc64-smp
84
getall sparc sparc64 sparc64-smp