掌機 - Miyoo Mini Plus - Build Perf



參考資訊:
https://stackoverflow.com/questions/5098360/cmake-specifying-build-toolchain

步驟如下:

$ cd
$ wget https://github.com/steward-fu/website/releases/download/miyoo-mini/toolchain.tar.gz
$ tar xvf toolchain.tar.gz
$ sudo mv mmiyoo /opt
$ sudo mv prebuilt /opt
$ export PATH=/opt/mmiyoo/bin/:$PATH

$ wget https://github.com/steward-fu/website/releases/download/miyoo-mini-plus/src_kernel-4.9.84.tar.gz
$ tar xvf src_kernel-4.9.84.tar.gz
$ cd kernel
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make mmp_defconfig
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make EXTRA_CFLAGS=-w clean
$ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make EXTRA_CFLAGS=-w -C tools/perf

Perf依賴很多Libraries,因此,必須確保Buildroot都有編譯需要的元件庫

Auto-detecting system features:
...                         dwarf: [ on  ]
...            dwarf_getlocations: [ on  ]
...                         glibc: [ on  ]
...                          gtk2: [ OFF ]
...                      libaudit: [ on  ]
...                        libbfd: [ OFF ]
...                        libelf: [ on  ]
...                       libnuma: [ on  ]
...        numa_num_possible_cpus: [ on  ]
...                       libperl: [ OFF ]
...                     libpython: [ OFF ]
...                      libslang: [ on  ]
...                     libcrypto: [ on  ]
...                     libunwind: [ on  ]
...            libdw-dwarf-unwind: [ on  ]
...                          zlib: [ on  ]
...                          lzma: [ on  ]
...                     get_cpuid: [ OFF ]
...                           bpf: [ on  ]