diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-09-28 10:28:22 +0800 |
---|---|---|
committer | Simon Horman <horms@kernel.org> | 2022-10-10 13:33:33 +0200 |
commit | dceb1d8926e609ccf8f00e92001226888529283b (patch) | |
tree | bb7cea8422b83f523610621f300cb8f9e42a4bb9 /config | |
parent | 6b6187f546f0ddad8ea84d22c3f7ad72133dcfe3 (diff) |
config: Add LoongArch architecture support in config.guess and config.sub files
Add configuration files required by LoongArch architecture, including
config.guess and config.sub files.
The source file comes from:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Simon Horman <horms@kernel.org>
Diffstat (limited to 'config')
-rwxr-xr-x | config/config.guess | 3 | ||||
-rwxr-xr-x | config/config.sub | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/config/config.guess b/config/config.guess index 8d70ec2..c626f7a 100755 --- a/config/config.guess +++ b/config/config.guess @@ -983,6 +983,9 @@ EOF k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; diff --git a/config/config.sub b/config/config.sub index 9bc49a7..dae00e6 100755 --- a/config/config.sub +++ b/config/config.sub @@ -1185,6 +1185,7 @@ case $cpu-$vendor in | k1om \ | le32 | le64 \ | lm32 \ + | loongarch32 | loongarch64 | loongarchx32 \ | m32c | m32r | m32rle \ | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \ | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \ |