#目的
「BareMetalで遊ぶRaspberryPi」の環境構築で詰まったため備忘録
#環境
・WSL2 (Ubuntu-20.04)
・windows10 (ver2004)
#手順
$sudo git clone https://github.com/crosstool-ng/crosstool-ng
$./bootstrap
$sudo ./configure --prefix=(任意のPATH)
$sudo make
$sudo make install
#注意点
・case-sensitive
・WSL上ではcase-sensitive関係でct-ng buildできないことがある
・解決策はコマンドプロンプト上で以下のコマンドでcase-sensitiveを有効化
$fsutil set fsutil file setCaseSensitiveInfo (パス) enable
・build中にYou must NOT be root to run crosstool-NGとなる問題
・以下、参考資料②「You must NOT be root to run crosstool-NG」を参照
#参考
①「BareMetalで遊ぶRaspberryPi」
https://tatsu-zine.com/books/raspi-bm
②How to solve “You must NOT be root to run crosstool-NG” when using ct-ng?
https://stackoverflow.com/questions/17466017/how-to-solve-you-must-not-be-root-to-run-crosstool-ng-when-using-ct-ng