51e7ff401b
Port identifycpu() to userspace. The kernel lies and reports on cpuN while actually using the values from cpu0, but this attempts to bind itself to the requested CPU if running as root. That doesn't work properly yet due to kern/38588, but will do once that's fixed.
19 lines
343 B
Makefile
19 lines
343 B
Makefile
# $NetBSD: Makefile,v 1.2 2008/05/05 17:54:14 ad Exp $
|
|
|
|
.PATH: ${.CURDIR}/arch
|
|
|
|
PROG= cpuctl
|
|
MAN= cpuctl.8
|
|
SRCS= cpuctl.c bitmask.c
|
|
|
|
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}.c)
|
|
SRCS+= ${MACHINE_ARCH}.c
|
|
.if exists(${.CURDIR}/arch/${MACHINE_ARCH}-asm.S)
|
|
SRCS+= ${MACHINE_ARCH}-asm.S
|
|
.endif
|
|
.else
|
|
SRCS+= noarch.c
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|