mirror of
https://github.com/brain-hackers/wiki.brainux.org
synced 2026-10-28 10:15:02 +09:00
Move all posts into collections and update Liquid templates
This commit is contained in:
1 parent
dd5047c282
commit
9927d52aeb
21 files changed
+156
-99
No files matched your search
@@ -0,0 +1,78 @@
|
||||
---
|
||||
title: Linux のビルド
|
||||
categories:
|
||||
- Linux
|
||||
tags:
|
||||
- Linux
|
||||
- 自力ビルド
|
||||
excerpt: ""
|
||||
---
|
||||
|
||||
|
||||
# 動作環境
|
||||
|
||||
- Debian 10 (Buster)
|
||||
- Ubuntu 20.04 LTS
|
||||
|
||||
本項では上記のいずれかを使用していることを前提で記述します。
|
||||
|
||||
|
||||
# 依存関係のインストール
|
||||
|
||||
以下のコマンドで依存関係をインストールします。
|
||||
|
||||
```sh
|
||||
sudo apt install build-essential bison flex libncurses5-dev gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf libssl-dev bc lzop qemu-user-static debootstrap kpartx
|
||||
```
|
||||
|
||||
|
||||
# Gitリポジトリのクローン
|
||||
|
||||
以下のコマンドでGitリポジトリをクローンして、必要なファイルをダウンロードします。長い時間がかかるので、時間のあるときに行いましょう。
|
||||
|
||||
```sh
|
||||
git clone --recursive https://github.com/brain-hackers/buildbrain.git
|
||||
```
|
||||
|
||||
|
||||
# Linuxのビルド
|
||||
|
||||
1. `cd buildbrain` で `buildbrain` ディレクトリに入ります。
|
||||
|
||||
2. `make ldefconfig` を実行して、 `.config` ファイルを作成します。
|
||||
|
||||
3. `make lbuild` を実行してLinuxをビルドします。
|
||||
|
||||
|
||||
# Brainuxのビルド
|
||||
|
||||
Linuxのカーネルの準備ができたら、カーネルの上で動くアプリケーションを用意して、Linuxディストリビューションを完成させます。
|
||||
|
||||
1. バックグラウンドで `make aptcache` を実行します。
|
||||
|
||||
- 新しいウィンドウでターミナルを開き、 `make aptcache` を実行してそのままにしておきます。
|
||||
|
||||
2. `make brainux` を実行します。長い時間がかかるので、時間のあるときに行いましょう。
|
||||
|
||||
|
||||
## パッケージの追加方法 (任意)
|
||||
|
||||
追加でほしいパッケージを `./tools/setup_debian.sh` の51行目あたりに追記します。
|
||||
|
||||
実際に追記した例を以下に示します。
|
||||
|
||||
```diff
|
||||
42 apt install -y dialog sudo \
|
||||
43 libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev \
|
||||
44 xserver-xorg xserver-xorg-video-fbdev xserver-xorg-dev xorg-dev x11-apps \
|
||||
45 openbox obconf obmenu \
|
||||
46 weston xwayland \
|
||||
47 bash tmux vim htop \
|
||||
48 midori pcmanfm lxterminal xterm gnome-terminal fonts-noto-cjk \
|
||||
49 dbus udev build-essential flex bison pkg-config autotools-dev libtool autoconf automake \
|
||||
50 python3 python3-dev python3-setuptools python3-wheel python3-pip python3-smbus \
|
||||
51 resolvconf net-tools ssh openssh-client avahi-daemon
|
||||
+ 52 apt install -y fbterm uim-fep uim-mozc
|
||||
```
|
||||
|
||||
[SD カードへのコピー](/build/copy-sd-card/)に続く…
|
||||
Reference in new issue
Block a user