mrsas module: Use MACHINE_ARCH exlcusively

TARGET_ARCH is always wrong when not used at the toplevel Makefile*, or
in something that has to be included from there. Switch to using
MACHINE_ARCH exclusively here since there's no benefit from assigning
TARGET_ARCH the value of MACHINE_ARCH and then using TARGET_ARCH (and
make TARGET_ARCH=xxx won't work).

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2022-08-13 11:53:22 -06:00
parent b4cea17bf6
commit 4e2a0135a0

View File

@ -15,8 +15,7 @@ SRCS+= device_if.h bus_if.h pci_if.h opt_cam.h opt_scsi.h
.include <bsd.kmod.mk> .include <bsd.kmod.mk>
CFLAGS+= -fgnu89-inline CFLAGS+= -fgnu89-inline
TARGET_ARCH = ${MACHINE_ARCH} .if ${MACHINE_ARCH} == "amd64"
.if ${TARGET_ARCH} == "amd64"
CFLAGS+= -DCOMPAT_FREEBSD32 CFLAGS+= -DCOMPAT_FREEBSD32
.endif .endif