|
本帖最后由 wintoflash 于 2021-6-7 10:37 编辑
grub2的readme文档里面有下面这句话:
See the file INSTALL for instructions on how to build and install the GRUB 2 data and program files.
所以具体怎么编译,看install文件就行了。
- * GCC 5.1.0 or later
- Experimental support for clang 3.8.0 or later (results in much bigger binaries)
- for i386, x86_64, arm (including thumb), arm64, mips(el), powerpc, sparc64
复制代码
当然,也可以看github持续集成服务的配置:
https://github.com/a1ive/grub/bl ... workflows/build.yml
我用的是gcc11。
另外,不要先在windows/ntfs/fat下先解压再复制到ext等分区,也不要用7-zip/p7zip等解压。要用tar等命令直接解压。
p7zip/7-zip等软件在解压的时候不能正确处理权限和符号链接。
我建议用git直接同步代码。
- git clone --depth=1 https://github.com/a1ive/grub
复制代码 |
|