Use MACHINE_ARCH instead of ARCH

This commit is contained in:
Thomas Veerman 2012-06-06 11:27:00 +00:00
parent f93afa00e9
commit f09c2e014f
8 changed files with 10 additions and 11 deletions

View file

@ -35,7 +35,7 @@ SUBDIR= add_route arp ash at awk \
xargs yacc yes zdump zmodem pkgin_cd \
mktemp worldstone updateboot update_bootcfg
.if ${ARCH} == "i386"
.if ${MACHINE_ARCH} == "i386"
SUBDIR+= atnormalize dosread fdisk loadfont \
autopart part partition playwave \
recwave repartition screendump

View file

@ -25,7 +25,7 @@ touch-genfiles:
# but bsd.own.mk has to be upgraded for that.
.mfs.o:
${_MKTARGET_CREATE}
${OBJCOPY} -Ibinary -B${ARCH} -Oelf32-${ARCH}-minix $< $@
${OBJCOPY} -Ibinary -B${MACHINE_ARCH} -Oelf32-${MACHINE_ARCH}-minix $< $@
${RAMDISK_PATH}/image: .PHONY
${MAKE} -C ${RAMDISK_PATH} image

View file

@ -3,7 +3,7 @@
PROG= kernel
.include "arch/${ARCH}/Makefile.inc"
.include "arch/${MACHINE_ARCH}/Makefile.inc"
SRCS+= clock.c cpulocals.c interrupt.c main.c proc.c start.c system.c \
table.c utility.c
@ -14,7 +14,7 @@ LDADD+= -ltimers -lsys -lexec
CFLAGS += -D__kernel__
CPPFLAGS+= -fno-stack-protector -D_NETBSD_SOURCE
LDFLAGS+= -T ${.CURDIR}/arch/${ARCH}/kernel.lds
LDFLAGS+= -T ${.CURDIR}/arch/${MACHINE_ARCH}/kernel.lds
LDFLAGS+= -nostdlib -L${DESTDIR}/${LIBDIR}
LDADD+= -lminlib
DPADD+= ${LIBMINLIB}
@ -25,7 +25,7 @@ LDADD+= -L/usr/pkg/compiler-rt/lib -lCompilerRT-Generic -lsys -lCompilerRT-Gener
DPADD+= ${LIBC}
.endif
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}/include -I${NETBSDSRCDIR}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}/include -I${NETBSDSRCDIR}
BINDIR= /usr/sbin
MAN=

View file

@ -2,7 +2,7 @@
# Makefile for arch-dependent kernel code
.include <bsd.own.mk>
HERE=${.CURDIR}/arch/${ARCH}
HERE=${.CURDIR}/arch/${MACHINE_ARCH}
.PATH: ${HERE}
SRCS+= mpx.S arch_clock.c arch_do_vmctl.c arch_system.c \
do_iopenable.c do_readbios.c do_sdevio.c exception.c i8259.c io_inb.S \

View file

@ -1,5 +1,5 @@
# rts sources
.PATH: ${.CURDIR}/arch/${ARCH}/sys-minix
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}/sys-minix
SRCS+= \
__sigreturn.S \

View file

@ -2,7 +2,6 @@
LIB= compat_minix
CPPFLAGS+= -D_MINIX_COMPAT
MACHINE_ARCH= ${ARCH}
USE_SHLIBDIR= yes
.PATH: ${.CURDIR}

View file

@ -13,8 +13,8 @@ MAN=
BINDIR?= /usr/sbin
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${ARCH}
CPPFLAGS+= -I${.CURDIR} -I${.CURDIR}/arch/${MACHINE_ARCH}
CPPFLAGS+= -I${NETBSDSRCDIR}
.include "arch/${ARCH}/Makefile.inc"
.include "arch/${MACHINE_ARCH}/Makefile.inc"
.include <minix.bootprog.mk>

View file

@ -1,5 +1,5 @@
.include <bsd.own.mk>
#Arch-specific sources
.PATH: ${.CURDIR}/arch/${ARCH}
.PATH: ${.CURDIR}/arch/${MACHINE_ARCH}
SRCS+= vm.c pagetable.c #util.S