Subject: kern/23396: armeb-netbsdelf systems return "arm" for hw.machine_arch not "armeb"
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mrg@eterna.com.au>
List: netbsd-bugs
Date: 11/09/2003 16:21:49
>Number:         23396
>Category:       kern
>Synopsis:       armeb-netbsdelf systems return "arm" for hw.machine_arch not "armeb"
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 09 05:22:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     matthew green
>Release:        NetBSD 1.6ZE
>Organization:
people's front against (bozotic) www (softwar foundation)
>Environment:
	
	
System: 
Architecture: armeb
Machine: evbarm
>Description:

	when attempting to build native tools on an armeb box i noticed that
	everything was defaulting to "arm" not "armeb".  eventually i tracked
	this down to sysctl hw.machine_arch returning "arm" not "armeb".

>How-To-Repeat:

	try to build gdb-current on an armeb machine.

>Fix:

	make <sys/param.h> for arm ports set MACHINE_ARCH to "armeb" for big
	endian platforms.  the style used in evbmips/include/param.h may be ok.
>Release-Note:
>Audit-Trail:
>Unformatted: