/*********************************************************************
* Author : lile
* Modified : 2019年12月28日星期六 10:16:13
* Email : [email protected]
* HomePage : lile777.blog.csdn.net
* CopyRight : 該文章版權由lile所有。
* 保留原文出處連結和本聲明的前提下,可在非商業目的下任意傳播和複制。
* 對于商業目的下對本文的任何行為需經作者同意。
*********************************************************************/
現象
在TX1闆卡上移植開源庫出現如下錯誤
checking build system type... Invalid configuration `aarch64-linux': machine `aarch64' not recognized
系統環境
[email protected]:/$ file /bin/busybox
/bin/busybox: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, for GNU/Linux 3.7.0, BuildID[sha1]=e31196f09f5c22fbc94e653b40d7b0f07309cf5c, stripped
[email protected]:/$ cat /proc/version
Linux version 3.10.96+ ([email protected]) (gcc version 5.4.1 20170404 (Linaro GCC 5.4-2017.05) ) #1 SMP PREEMPT Tue Jul 24 20:52:13 PDT 2018
[email protected]:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04 LTS
Release: 16.04
Codename: xenial
[email protected]:/$
搜尋了一圈發現這個方法是靠譜的
https://blog.csdn.net/amds123/article/details/53258495
思路:
1, 下載下傳最新的配置檔案
wget -O config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
2, 查找目前庫檔案的位置
find . -name "config.guess"
find . -name "config.sub"
3,删除舊檔案,更新 最新檔案