mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
2.3 KiB

# --- ROCK-COPYRIGHT-NOTE-BEGIN ---
#
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
# Please add additional copyright information _after_ the line containing
# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
# the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
#
# ROCK Linux: rock-src/package/x86/grub/grub.conf
# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version. A copy of the GNU General Public
# License can be found at Documentation/COPYING.
#
# Many people helped and are helping developing ROCK Linux. Please
# have a look at http://www.rocklinux.org/ and the Documentation/TEAM
# file for details.
#
# --- ROCK-COPYRIGHT-NOTE-END ---
grub_postmake() {
mkdir -p $root/boot/grub
trg=${arch_target/-linux-gnu}
trg=i386-${trg/i*-/}
cp -v $libdir/grub/$trg/* $root/boot/grub/
cp $confdir/stone_mod_grub.sh $root/etc/stone.d/mod_grub.sh
echo '$STONE grub grub_setup' > $root/etc/stone.d/setup_grub.sh
if [ ! -f $root/boot/grub/menu.lst ] ; then
cp docs/menu.lst $root/boot/grub/
fi
cp docs/menu.lst $root/boot/grub/menu.lst.example
counter=1
confopt="$confopt --enable-diskless"
{ echo
echo "Driver-map for PXE and Etherboot 2nd stage GRUB images:"
echo "======================================================="
echo
} > $root/boot/grub/README.pxe_nb
while read drivers
do
eval "./configure $confopt --enable-${drivers// / --enable-}"
make -C netboot clean; make
{ echo "pxegrub.$counter and nbgrub.$counter:"
echo " $drivers"; echo
} >> $root/boot/grub/README.pxe_nb
cp stage2/pxegrub $root/boot/grub/pxegrub.$counter
cp stage2/nbgrub $root/boot/grub/nbgrub.$counter
(( counter++ ))
done < <(
./configure --help | grep ' driver$' |
cut -f4- -d- | cut -f1 -d' ' | sort -u |
paste -d' ' - - - - - - -
)
}
postmake="grub_postmake"
# Every other optimization would cause build errors like
#
# pre_stage2_exec-builtins.o: In function `terminfo_func':
# pre_stage2_exec-builtins.o(.text+0x3b0e): undefined reference to `memcpy'
#
var_append GCC_WRAPPER_APPEND " " "-Os"