56 |
# and do you really want that at your bootloader ?? |
# and do you really want that at your bootloader ?? |
57 |
unset CFLAGS |
unset CFLAGS |
58 |
unset CXXFLAGS |
unset CXXFLAGS |
59 |
|
unset CPPFLAGS |
60 |
|
unset LDFLAGS |
61 |
|
unset MAKEFLAGS |
62 |
|
|
63 |
src_prepare() |
src_prepare() |
64 |
{ |
{ |
83 |
{ |
{ |
84 |
cd ${SRCDIR} |
cd ${SRCDIR} |
85 |
|
|
86 |
# unset all compiler flags |
local myarch |
87 |
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MAKEFLAGS |
local myopts |
88 |
|
|
89 |
# bios build |
# no efiemi on x86 |
90 |
mconfigure --disable-efiemu --disable-werror --disable-nls || die |
case ${ARCH} in |
91 |
|
x86_64) myopts+=" --enable-efiemu" ;; |
92 |
|
i*86) myopts+=" --disable-efiemu" ;; |
93 |
|
esac |
94 |
|
|
95 |
|
# disable werror |
96 |
|
myopts+=" --disable-werror" |
97 |
|
|
98 |
|
# enable boot time statistics collection |
99 |
|
myopts+=" --enable-boot-time" |
100 |
|
|
101 |
|
# alx |
102 |
|
myopts+=" --disable-nls" |
103 |
|
|
104 |
|
# bios build, enforce i386 |
105 |
|
myarch="i386" |
106 |
|
../configure --with-platform=pc --target="${myarch}" ${myopts} || die |
107 |
mmake || die |
mmake || die |
108 |
} |
} |
109 |
|
|