Ubuntu 20 TLS

  • VMware 4核17G 100G磁盘
  • 编译好后共用42G

install

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
git clone https://github.com/crosstool-ng/crosstool-ng

sudo apt-get install build-essential autoconf  ncurses-dev  # solved:  [[https://github.com/c9/core/issues/19][error: curses library not found]]

sudo apt install flex texinfo  help2man gawk libtool-bin autoconf autopoint bison

sudo ./bootstrap

./configure

sudo make

sudo make install

ct-ng -v

获取工具类型

1
2
3
4
5
mkdir crosstool

cd crosstool/

ct-ng arm-unknown-linux-gnueabi

配置文件

参考链接

ct-ng menuconfig

目录什么的自己设定位置,路径要自己记住

关键配置

goto link to find

  • Architecture level = -march armv7
  • Emit assembly for CPU = -mcpu arm920t
  • Tune for CPU = -mtune 不搞, 因为新版的会自动推导

编译: ct-ng build

测试: 到 prefix 代表的目录下

运行

参考

flow