Lx4U-book/docs/build-temp-system/file.md
2021-05-05 16:06:22 +03:00

53 lines
964 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<package-info :package="package" showsbu></package-info>
<script>
new Vue({
el: '#main',
data: { package: {} },
mounted: function () {
this.getPackage('file');
},
methods: {
getPackage: function(name) {
getPackage(name)
.then(response => this.package = response);
},
}
})
</script>
## Подготовка
На хост-системе должна присутствовать утилита {{package.name}}. Вы можете также собрать её следующим образом:
```bash
mkdir build
pushd build
../configure --disable-bzlib \
--disable-libseccomp \
--disable-xzlib \
--disable-zlib
make
popd
```
## Настройка
```bash
./configure --prefix=/usr --host=$LIN_TGT --build=$(./config.guess)
```
## Сборка
```bash
make FILE_COMPILE=$(pwd)/build/src/file
```
## Установка
```bash
make DESTDIR=$LIN install
```