build: typo in EFI directory

This commit is contained in:
Franco Fichtner 2021-08-20 14:40:54 +02:00
parent 586b60b941
commit 71bc5874a1
1 changed files with 5 additions and 2 deletions

View File

@ -1114,12 +1114,15 @@ EOF
setup_efiboot()
{
local EFIFILE
local EFIDIR
local FATBITS
local FATSIZE
FATSIZE=${3:-"33292"}
FATBITS=${4:-"32"}
EFIDIR="EFI/BOOT"
if [ ${PRODUCT_ARCH} = "amd64" ]; then
EFIFILE=bootx64
elif [ ${PRODUCT_ARCH} = "aarch64" ]; then
@ -1129,8 +1132,8 @@ setup_efiboot()
exit 1
fi
mkdir -p ${1}.d/EFI/LOADER
cp ${2} ${1}.d/EFI/LOADER/${EFIFILE}.efi
mkdir -p ${1}.d/${EFIDIR}
cp ${2} ${1}.d/${EFIDIR}/${EFIFILE}.efi
makefs -t msdos -o fat_type=${FATBITS} -o sectors_per_cluster=1 \
-o volume_label=EFISYS -s ${FATSIZE}k ${1} ${1}.d