diff --git a/core/grub/build b/core/grub/build index 9e80cdb4..5d52ade9 100755 --- a/core/grub/build +++ b/core/grub/build @@ -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 +) diff --git a/core/grub/depends b/core/grub/depends index c86afece..58223007 100644 --- a/core/grub/depends +++ b/core/grub/depends @@ -1,5 +1,3 @@ -autoconf make -automake make binutils make bison make flex make