Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1595 - (show annotations)
Wed Jan 13 22:27:20 2010 UTC (3 years, 4 months ago) by acrux
File size: 1517 byte(s)
yaboot: reverted to 1.3.14-2
1 # Description: Yaboot is a Power Architecture bootloader for Open Firmware based machines
2 # URL: http://yaboot.ozlabs.org/
3 # Maintainer: CRUX PPC team
4 # Depends on: hfsutils, e2fsprogs, reiserfsprogs, xfsprogs, nvsetenv
5 # PPC!=
6
7 name=yaboot
8 version=1.3.14
9 release=2
10 source=(http://yaboot.ozlabs.org/releases/$name-$version.tar.gz \
11 http://dl.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-1.41.5.tar.gz \
12 chrpfix.patch)
13
14 build() {
15 # yaboot-1.3.14 needs the support for debugfs compiled in libext2fs but I
16 # think we wouldn't like to have debugfs enabled in our e2fsprogs and than
17 # this little hack is needed to have a working yaboot-1.3.14
18
19 export CFLAGS="-Os -m32 -pipe -fsigned-char"
20
21 cd e2fsprogs-1.41.5
22 mkdir build
23 cd build
24 ../configure \
25 --prefix=/usr \
26 --with-root-prefix= \
27 --enable-elf-shlibs \
28 --enable-debugfs \
29 --disable-imager \
30 --disable-e2initrd-helper \
31 --disable-evms \
32 --disable-nls \
33 --disable-resizer \
34 --disable-dynamic-e2fsck \
35 --disable-fsck \
36 --disable-blkid-devmapper
37 make -j1 libs
38
39 cd $SRC/$name-$version
40 patch -p0 -i $SRC/chrpfix.patch
41
42 patch -p0 < man.patch
43 sed -i "s|LLIBS\ \=\ \-lext2fs|LLIBS\ \=\ \.\.\/e2fsprogs-1.41.5\/build\/lib\/ext2fs\/libext2fs\.a|" Makefile
44 (cd etc;
45 sed -i "s|/usr/local/lib/yaboot/yaboot|/usr/lib/yaboot/yaboot|" yaboot.conf;
46 sed -i "s|/usr/local/lib/yaboot/ofboot|/usr/lib/yaboot/ofboot|" yaboot.conf)
47 make ROOT=/ PREFIX=usr
48 make ROOT=$PKG/ PREFIX=usr install
49 }