Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Raspberry Pi cross compiler on Amazon
sudo yum -y install git tmux
sudo yum install -y redhat-rpm-config rpm-build wget
mkdir ~/src
cd ~/src
git clone
cd make
export MAKE_VERSION=$(grep Version make.spec | cut -d ' ' -f 2)
export MAKE_SOURCE=$(grep %{version} make.spec | cut -d ' ' -f2 | sed s/%{version}/$MAKE_VERSION/g)
mkdir -p ~/rpmbuild/SOURCES
cp *.patch *.spec ~/rpmbuild/SOURCES
cd ~/rpmbuild
sudo amazon-linux-extras install -y epel
#sudo yum install -y epel-release
sudo yum install -y perl-interpreter guile-devel autoconf automake gcc
rpmbuild -bb make.spec
sudo yum -y install libtool patch ncurses-devel autoconf automake flex bison gcc git texinfo help2man bzip2 unzip gcc gcc-c++ python python-devel #make
sudo yum -y install tmux sudo nano #for super minimal installs
git clone
cd crosstool-ng
./configure && make -j2
sudo make install
mkdir -p ~/src/pi
cd ~/src/pi
ct-ng armv8-rpi3-linux-gnueabihf
ct-ng build CT_ONLY_DOWNLOAD=y
time ct-ng build -j`nproc`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment