Subversion Repository

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (hide annotations)
Sun Oct 4 15:04:54 2009 UTC (3 years, 7 months ago) by cjg
File size: 1517 byte(s)
yaboot: fixed with -m32
1 cjg 606 # Description: Yaboot is a Power Architecture bootloader for Open Firmware based machines
2 cjg 201 # URL: http://yaboot.ozlabs.org/
3 cjg 606 # Maintainer: CRUX PPC team
4     # Depends on: hfsutils, e2fsprogs, reiserfsprogs, xfsprogs, nvsetenv
5 cjg 201 # PPC!=
6    
7     name=yaboot
8     version=1.3.14
9 cjg 606 release=2
10 cjg 201 source=(http://yaboot.ozlabs.org/releases/$name-$version.tar.gz \
11 cjg 606 http://dl.sourceforge.net/sourceforge/e2fsprogs/e2fsprogs-1.41.5.tar.gz \
12     chrpfix.patch)
13 cjg 201
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 cjg 606
19     export CFLAGS="-Os -m32 -pipe -fsigned-char"
20    
21     cd e2fsprogs-1.41.5
22 cjg 201 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 cjg 606 make -j1 libs
38 cjg 201
39     cd $SRC/$name-$version
40 cjg 606 patch -p0 -i $SRC/chrpfix.patch
41    
42 cjg 201 patch -p0 < man.patch
43 cjg 606 sed -i "s|LLIBS\ \=\ \-lext2fs|LLIBS\ \=\ \.\.\/e2fsprogs-1.41.5\/build\/lib\/ext2fs\/libext2fs\.a|" Makefile
44 cjg 201 (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     }