mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 15:20:06 -07:00
grub: remove autotools dependency
This commit is contained in:
parent
3b9103e6a7
commit
51b13c72e8
@ -3,15 +3,10 @@
|
||||
# Grub is built in a function so the script argument needs to be stored.
|
||||
pkg_dir=$1
|
||||
|
||||
# Change naming from GNU/Linux to Linux.
|
||||
sed 's|GNU/Linux|Linux|' -i grub/util/grub.d/10_linux.in
|
||||
|
||||
build_grub() (
|
||||
cp -R grub "grub-${1##*=}"
|
||||
cp -a grub "grub-${1##*=}"
|
||||
cd "grub-${1##*=}"
|
||||
|
||||
autoreconf
|
||||
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--sbindir=/usr/bin \
|
||||
@ -34,14 +29,12 @@ install -Dm0644 grub.default "$1/etc/default/grub"
|
||||
|
||||
# Remove gdb debugging files.
|
||||
(
|
||||
cd "$pkg_dir"
|
||||
rm -f usr/lib/grub/*/*.module
|
||||
rm -f usr/lib/grub/*/*.image
|
||||
rm -f usr/lib/grub/*/kernel.exec
|
||||
rm -f usr/lib/grub/*/gdb_grub
|
||||
rm -f usr/lib/grub/*/gmodule.pl
|
||||
rm -f usr/lib/charset.alias
|
||||
) ||:
|
||||
cd "$pkg_dir/usr/lib"
|
||||
|
||||
# Remove unneedded file by musl
|
||||
rm -f "$1/usr/lib/charset.alias"
|
||||
rm -f grub/*/*.module
|
||||
rm -f grub/*/*.image
|
||||
rm -f grub/*/kernel.exec
|
||||
rm -f grub/*/gdb_grub
|
||||
rm -f grub/*/gmodule.pl
|
||||
rm -f charset.alias
|
||||
)
|
||||
|
@ -1,5 +1,3 @@
|
||||
autoconf make
|
||||
automake make
|
||||
binutils make
|
||||
bison make
|
||||
flex make
|
||||
|
Loading…
Reference in New Issue
Block a user