NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-arm/48193: On NetBSD/evbearmv6hf-el for Raspberry Pi, MACHINE_ARCH returns earm, but *hf* is expected in /usr/share/mk/bsd.own.mk .



The following reply was made to PR port-arm/48193; it has been noted by GNATS.

From: Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-arm/48193: On NetBSD/evbearmv6hf-el for Raspberry Pi,
 MACHINE_ARCH returns earm, but *hf* is expected in
 /usr/share/mk/bsd.own.mk .
Date: Sat, 14 Sep 2013 19:21:27 +0900 (JST)

 From: Matt Thomas <matt%3am-software.com@localhost>, Date: Fri, 13 Sep 2013 
17:39:17 -0700
 > That doesn't really work since the kernel is always softfloat.
 > 
 > I fixed it differently by embedding the MACHINE_ARCH in a note
 > in the executable.  The kernel records the supplied MACHINE_ARCH
 > in and returns when a sysctl for hw.machine_arch is done.
 
 Original problem (build failure of pkgsrc/checkperms) is fixed.
 Thank you.
 
 By the way, the following code from /usr/share/mk/bsd.own.mk is
 irrelevant for current situation, because sysctl hw.machine_arch
 returns earmv6, and it has no *hf* string. 
 Please fit to current situation.
 
 .if ${MACHINE_ARCH} == "mips64eb" || ${MACHINE_ARCH} == "mips64el" || \
     (${MACHINE_CPU} == "arm" && ${MACHINE_ARCH:M*hf*} == "") || \
     ${MACHINE_ARCH} == "coldfire" || \
     ${MACHINE} == "emips"
 MKSOFTFLOAT?=   yes
 .endif
 
 Thank you.
 
 --
 Ryo ONODERA // ryo_on%yk.rim.or.jp@localhost
 PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3
 


Home | Main Index | Thread Index | Old Index