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: Sun, 15 Sep 2013 08:41:48 +0900 (JST)
From: Matt Thomas <matt%3am-software.com@localhost>, Date: Sat, 14 Sep 2013
08:12:22 -0700
>
> On Sep 14, 2013, at 4:45 AM, Ryo ONODERA <ryo_on%yk.rim.or.jp@localhost>
> wrote:
>
>> 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:23:11 +0900 (JST)
>>
>> make -V MACHINE_ARCH in pkgsrc/sysutils/checkperms returns earm,
>> in this case it has no *hf* string in it.
>> Anyway /usr/share/mk/bsd.own.mk should be improved.
>
> bsd.own.mk is fine.
> make just never used sysctl to get hw.machine_arch to set MACHINE_ARCH.
> That has been fixed.
>
> ./make -f /usr/share/mk/bsd.own.mk -V MACHINE_ARCH
> earmv7hf
>
> ./readelf -n make
>
> Notes at offset 0x0000012c with length 0x00000018:
> Owner Data size Description
> NetBSD 0x00000004 IDENT 699002300 (6.99.23)
>
> Notes at offset 0x00000144 with length 0x00000014:
> Owner Data size Description
> PaX 0x00000004 Unknown note type: (0x00000003)
>
> Notes at offset 0x00000158 with length 0x00000020:
> Owner Data size Description
> NetBSD 0x00000009 MARCH <earmv7hf>
>
I believe that the following commit is the change for make(1).
I am building evbearmv6hf-el world now.
I will report the result later.
http://mail-index.netbsd.org/source-changes/2013/09/14/msg047577.html
Module Name: src
Committed By: matt
Date: Sat Sep 14 15:09:34 UTC 2013
Modified Files:
src/usr.bin/make: main.c
Log Message:
If MAKE_NATIVE, use sysctl to get MACHINE_ARCH from hw.machine_arch.
To generate a diff of this commit:
cvs rdiff -u -r1.224 -r1.225 src/usr.bin/make/main.c
--
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