2 Star 2 Fork 0

jiangwei/grub-2.02

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.sh 1.26 KB
一键复制 编辑 原始数据 按行查看 历史
jiangwei 提交于 2020-08-23 17:09 . [CHG]修改编译脚本.
##
# @Package : GRUB
# @FileName : build.sh
# @Date : 20181002
# @Author : Wei Jiang
# @Version : 1.0
# @Description :
# Generate bootx64.efi for UEFI use.
# If there is error about automake, just use "touch *".
#
# @History:
# 20181002: Initialize.
# 20190810: Change the grub-mkimage command.
#
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
# http://opensource.org/licenses/bsd-license.php
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
##
if [ ! -f Makefile ]
then
./configure --target=x86_64 --with-platform=efi
fi
make
if [ $? -eq 0 ]
then
echo "make succeeded."
echo "making bootx64.efi..."
./grub-mkimage -p /EFI/BOOT -d ./grub-core/ -O x86_64-efi -o bootx64.efi boot linux part_msdos part_gpt fat normal serial efi_gop minicmd
if [ $? -eq 0 ]
then
echo "copying bootx64.efi ..."
if [ -f ~/code/vUDK2018/LearnUefiPkg/bootx64.efi ]
then
cp bootx64.efi ~/code/vUDK2018/LearnUefiPkg/bootx64.efi
fi
fi
else
echo "make failed."
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiangwei0512/grub-2.02.git
[email protected]:jiangwei0512/grub-2.02.git
jiangwei0512
grub-2.02
grub-2.02
master

搜索帮助