History

configure automatically detects correct arm configuration on NetBSD

Christian Jullien committed 5 years ago

Commit a2987fe1 parent 53f7d8b1 file · +12 −0Browse files

Unified · Split

configure+12−0
@@ -178,6 +178,16 @@ case "$cpu" in · 177 unmodified lines
178178 x86_64|amd64|x86-64)
179179 cpu="x86_64"
180180 ;;
181+ evbarm)
182+ case "`uname -p`" in
183+ aarch64|arm64)
184+ cpu="aarch64"
185+ ;;
186+ earmv*)
187+ cpu="arm"
188+ ;;
189+ esac
190+ ;;
181191 aarch64|arm64|evbarm)
182192 cpu="aarch64"
183193 ;;
@@ -351,6 +361,8 @@ if test -z "$cross_prefix" ; then · 167 unmodified lines
351361 confvars="$confvars arm_eabihf arm_vfp"
352362 elif test "${triplet%eabi}" != "$triplet" ; then
353363 confvars="$confvars arm_eabi"
364+ elif test "`uname`" = "NetBSD"; then
365+ confvars="$confvars arm_eabihf arm_vfp"
354366 fi
355367 if grep -s -q "^Features.* \(vfp\|iwmmxt\) " /proc/cpuinfo ; then
356368 confvars="$confvars arm_vfp"

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t