|
binutils-2.25 †ホスト Debian 8.x (jessie) amd64 # は rootユーザでの操作 $ は 一般ユーザ(kaihatsu)での操作 を示す
export WITHOUT_CHECK=yes export DEB_BUILD_OPTIONS='nocheck parallel=4' export LANG=C # dpkg --add-architecture armhf
deb [arch=all,amd64,armhf] http://ftp.riken.jp/Linux/debian/debian/ jessie main deb-src http://ftp.riken.jp/Linux/debian/debian/ jessie main # apt-get update パッケージ一覧の更新 # apt-get upgrade インストール済みパッケージを最新にする # apt-get install build-essential gccなど開発ツールの一気インストール # apt-get install vim tree お気にいりのツール # apt-get build-dep binutils build-dep は(binutilsを)ビルドに依存(depend)されたパッケージのインストール 作業ディレクトリを作り、移動する ( ~記号は home directory を示す. -p はサブディレクトリも一気に作る) # mkdir -p ~/build/binutils # cd ~/build/binutils ソースの入手 # apt-get install binutils-source # apt-get source cross-binutils # cd cross-binutils-0.23 # TARGET_LIST="armhf" HOST_LIST="amd64" debian/rules control ビルド実行 # time TARGET_LIST="armhf" HOST_LIST="amd64" dpkg-buildpackage ビルド実行時間 real 5m24.107s user 8m38.044s sys 0m21.624s インストール # cd .. # ls *.deb binutils-arm-linux-gnueabihf_2.25-5+deb8u1_amd64.deb # dpkg -i binutils-arm-linux-gnueabihf_2.25-5+deb8u1_amd64.deb 関連 † |