mirror of
https://github.com/dslm4515/BMLFS.git
synced 2025-08-03 16:40:25 +00:00
77 lines
2.8 KiB
Bash
77 lines
2.8 KiB
Bash
#! /bin/bash
|
|
|
|
# efibootmngr
|
|
# Source: https://github.com/rhboot/efibootmgr/archive/18/efibootmgr-18.tar.gz
|
|
#
|
|
# $BUILD = Directory to temporarily install
|
|
# $PKGS = Directory to store built packages
|
|
#
|
|
# DEPS
|
|
# Required: efivar, popt
|
|
# Recommended: NONE
|
|
# Optional: NONE
|
|
|
|
# Apply patches from Chimera Linux for CMLFS-based systems
|
|
patch -Np1 -i ../patches/efibootmgr-chimera/build.patch
|
|
patch -Np1 -i ../patches/efibootmgr-chimera/ub.patch
|
|
|
|
case $(uname -m) in
|
|
x86_64) export EFI_LOADER="grubx64.efi" ;;
|
|
i686) export EFI_LOADER="grub.efi" ;;
|
|
aarch64*) export EFI_LOADER="grubaa64.efi" ;;
|
|
arm*) export EFI_LOADER="grubarm.efi" ;;
|
|
esac
|
|
|
|
read -p "Compile?" && \
|
|
make EFIDIR="MLFS" EFI_LOADER="${EFI_LOADER}"
|
|
|
|
sudo -S make EFIDIR="MLFS" EFI_LOADER="${EFI_LOADER}" DESTDIR=$BUILD install
|
|
unset EFI_LOADER
|
|
|
|
sudo -S mkdir -pv /BMAN/install
|
|
sudo -S mkdir -pv /BMAN/usr
|
|
sudo -S mv $BUILD/usr/share /BMAN/usr/
|
|
|
|
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
|
|
cat > /tmp/slack-desc << "EOF"
|
|
# HOW TO EDIT THIS FILE:
|
|
# The "handy ruler" below makes it easier to edit a package description. Line
|
|
# up the first '|' above the ':' following the base package name, and the '|'
|
|
# on the right side marks the last column you can put a character in. You must
|
|
# make exactly 11 lines for the formatting to be correct. It's also
|
|
# customary to leave one space after the ':' except on otherwise blank lines.
|
|
|
|
|-----handy-ruler------------------------------------------------------|
|
|
efibootmgr: efibootmgr (tool to modify UEFI boot entries)
|
|
efibootmgr:
|
|
efibootmgr: efibootmgr is a Linux userspace application to modify the Intel
|
|
efibootmgr: Extensible Firmware Interface (EFI) Boot Manager. This application
|
|
efibootmgr: can create and destroy boot entries, change the boot order, change
|
|
efibootmgr: the next running boot option, and more.
|
|
efibootmgr:
|
|
efibootmgr: Homepage: http://linux.dell.com/efibootmgr
|
|
efibootmgr:
|
|
efibootmgr:
|
|
efibootmgr:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/efibootmgr-18-$PSUFFIX &&
|
|
|
|
cd /BMAN
|
|
cat > /tmp/slack-desc << "EOF"
|
|
efibootmgr-doc: Manuals for efibootmgr (tool to modify UEFI boot entries)
|
|
efibootmgr-doc:
|
|
efibootmgr-doc: efibootmgr is a Linux userspace application to modify the Intel
|
|
efibootmgr-doc: Extensible Firmware Interface (EFI) Boot Manager. This application
|
|
efibootmgr-doc: can create and destroy boot entries, change the boot order, change
|
|
efibootmgr-doc: the next running boot option, and more.
|
|
efibootmgr-doc:
|
|
efibootmgr-doc: Homepage: http://linux.dell.com/efibootmgr
|
|
efibootmgr-doc:
|
|
efibootmgr-doc:
|
|
EOF
|
|
sudo -S mv -v /tmp/slack-desc install/ &&
|
|
sudo -S makepkg -l y -c n $PKGS/efibootmgr-doc-18-$NOPSUFFIX
|
|
sudo -S rm -rf /BMAN/*
|
|
sudo -S rm -rf ${BUILD}/*
|