.. | .. |
---|
1 | 1 | // SPDX-License-Identifier: GPL-2.0 |
---|
| 2 | +#include <limits.h> |
---|
2 | 3 | #include <stdio.h> |
---|
| 4 | +#include <stdlib.h> |
---|
| 5 | +#include <string.h> |
---|
| 6 | +#include <unistd.h> |
---|
3 | 7 | #include "common.h" |
---|
4 | 8 | #include "../util/env.h" |
---|
5 | | -#include "../util/util.h" |
---|
6 | 9 | #include "../util/debug.h" |
---|
| 10 | +#include <linux/zalloc.h> |
---|
| 11 | + |
---|
| 12 | +const char *const arc_triplets[] = { |
---|
| 13 | + "arc-linux-", |
---|
| 14 | + "arc-snps-linux-uclibc-", |
---|
| 15 | + "arc-snps-linux-gnu-", |
---|
| 16 | + NULL |
---|
| 17 | +}; |
---|
7 | 18 | |
---|
8 | 19 | const char *const arm_triplets[] = { |
---|
9 | 20 | "arm-eabi-", |
---|
.. | .. |
---|
147 | 158 | zfree(&buf); |
---|
148 | 159 | } |
---|
149 | 160 | |
---|
150 | | - if (!strcmp(arch, "arm")) |
---|
| 161 | + if (!strcmp(arch, "arc")) |
---|
| 162 | + path_list = arc_triplets; |
---|
| 163 | + else if (!strcmp(arch, "arm")) |
---|
151 | 164 | path_list = arm_triplets; |
---|
152 | 165 | else if (!strcmp(arch, "arm64")) |
---|
153 | 166 | path_list = arm64_triplets; |
---|