mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-24 23:32:18 +08:00
Merge pull request #389 from Linux4Yourself/efivar
Add efivar and efibootmgr
This commit is contained in:
commit
c90daa2bab
@ -151,6 +151,8 @@
|
||||
- [E2fsprogs](build-system/e2fsprogs.md)
|
||||
- [Grub](build-system/about-grub.md)
|
||||
- **EFI**
|
||||
- [Efivar](build-system/efivar.md)
|
||||
- [Efibootmgr](build-system/efibootmgr.md)
|
||||
- **Legacy boot**
|
||||
|
||||
- [**Вспомогательные материалы**](additional/additional)
|
||||
|
38
docs/build-system/efibootmgr.md
Normal file
38
docs/build-system/efibootmgr.md
Normal file
@ -0,0 +1,38 @@
|
||||
<package-info :package="package" showsbu2></package-info>
|
||||
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#main',
|
||||
data: { package: {} },
|
||||
mounted: function () {
|
||||
this.getPackage('efibootmgr');
|
||||
},
|
||||
methods: {
|
||||
getPackage: function(name) {
|
||||
getPackage(name)
|
||||
.then(response => this.package = response);
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
## Подготовка
|
||||
|
||||
Исправьте ошибку сборки:
|
||||
|
||||
```bash
|
||||
sed -e '/extern int efi_set_verbose/d' -i src/efibootmgr.c
|
||||
```
|
||||
|
||||
## Сборка
|
||||
|
||||
```bash
|
||||
make EFIDIR=LIN EFI_LOADER=grubx64.efi
|
||||
```
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
make install sbindir=/usr/bin EFIDIR=LFS
|
||||
```
|
||||
|
47
docs/build-system/efivar.md
Normal file
47
docs/build-system/efivar.md
Normal file
@ -0,0 +1,47 @@
|
||||
<package-info :package="package" showsbu2 ></package-info>
|
||||
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#main',
|
||||
data: { package: {}, patch: {} },
|
||||
mounted: function () {
|
||||
this.getPackage('efivar');
|
||||
this.getBzipPatch();
|
||||
},
|
||||
methods: {
|
||||
getPackage: function(name) {
|
||||
getPackage(name)
|
||||
.then(response => this.package = response);
|
||||
},
|
||||
getBzipPatch: function() {
|
||||
getPackage('efivar-patch')
|
||||
.then(response => this.patch = response);
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
## Дополнительные необходимые файлы
|
||||
|
||||
<a :href="patch.url">{{ patch.url}}</a>
|
||||
|
||||
## Подготовка
|
||||
|
||||
Примените патч, исправляющий ошибку сборки новыми версиями GCC:
|
||||
|
||||
<pre class="pre">
|
||||
patch -Np1 -i ../{{patch.fileName}}
|
||||
</pre>
|
||||
|
||||
|
||||
## Сборка
|
||||
|
||||
```bash
|
||||
make CFLAGS="-O2 -Wno-stringop-truncation"
|
||||
```
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
make install LIBDIR=/usr/lib BINDIR=/usr/bin
|
||||
```
|
79
docs/misc/_template-multilib.md
Normal file
79
docs/misc/_template-multilib.md
Normal file
@ -0,0 +1,79 @@
|
||||
<!-- Этот шаблон можно использовавть для инструкции по сборке пакета. Каркас. -->
|
||||
|
||||
<package-info :package="package" showsbu2></package-info>
|
||||
|
||||
<script>
|
||||
new Vue({
|
||||
el: '#main',
|
||||
data: { package: {} },
|
||||
mounted: function () {
|
||||
// заменить на название пакета, которые необходим.
|
||||
// см. файл.https://github.com/Linux4Yourself/Linux4Yourself.Book.Packages/blob/develop/src/core-packages.json
|
||||
this.getPackage('m4');
|
||||
},
|
||||
methods: {
|
||||
getPackage: function(name) {
|
||||
getPackage(name)
|
||||
.then(response => this.package = response);
|
||||
},
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
## Настройка
|
||||
|
||||
|
||||
```bash
|
||||
./configure --prefix=/usr \
|
||||
--disable-static
|
||||
```
|
||||
|
||||
## Сборка
|
||||
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
## Тестирование
|
||||
|
||||
```bash
|
||||
make check
|
||||
```
|
||||
|
||||
## Установка
|
||||
|
||||
```bash
|
||||
make install
|
||||
```
|
||||
|
||||
## Для multilib
|
||||
|
||||
### Очистка
|
||||
|
||||
```bash
|
||||
make distclean
|
||||
```
|
||||
|
||||
### Настройка
|
||||
|
||||
```bash
|
||||
CC="gcc -m32" CXX="g++ -m32" ./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--libdir=/usr/lib32 \
|
||||
--host=i686-pc-linux-gnu
|
||||
```
|
||||
|
||||
### Сборка
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
### Установка
|
||||
|
||||
```bash
|
||||
make DESTDIR=$PWD/DESTDIR install
|
||||
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
||||
rm -rf DESTDIR
|
||||
```
|
@ -46,34 +46,3 @@ make check
|
||||
make install
|
||||
```
|
||||
|
||||
## Для multilib
|
||||
|
||||
### Очистка
|
||||
|
||||
```bash
|
||||
make distclean
|
||||
```
|
||||
|
||||
### Настройка
|
||||
|
||||
```bash
|
||||
CC="gcc -m32" CXX="g++ -m32" ./configure \
|
||||
--prefix=/usr \
|
||||
--disable-static \
|
||||
--libdir=/usr/lib32 \
|
||||
--host=i686-pc-linux-gnu
|
||||
```
|
||||
|
||||
### Сборка
|
||||
|
||||
```bash
|
||||
make
|
||||
```
|
||||
|
||||
### Установка
|
||||
|
||||
```bash
|
||||
make DESTDIR=$PWD/DESTDIR install
|
||||
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
||||
rm -rf DESTDIR
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user