一、编译环境
PC 机用的是 Ubuntu 18.04,执行以下命令安装必要工具:
sudo apt-get install repo git ssh make gcc libssl-dev liblz4-tool \
expect g++ patchelf chrpath gawk texinfo chrpath diffstat binfmt-support \
qemu-user-static live-build bison flex fakeroot cmake gcc-multilib g++-multilib \
unzip device-tree-compiler python-pip ncurses-dev python-pyelftools
二、交叉工具链
从 Firefly 仓库克隆交叉工具链并添加到环境变量,这里的 GCC 版本为 6.3.1
ÿ