c6e071ef3a
Use MACHINE_CPUARCH in preference to MACHINE_ARCH. The former is the source code location of the machine, the latter the binary output. In general, we want to use MACHINE_CPUARCH instead of MACHINE_ARCH unless we're tesitng for a specific target. The isn't even moot for i386/amd64 where there's momemntum towards a MACHINE_CPUARCH == x86, although a specific cleanup for that likely would be needed...
30 lines
438 B
Makefile
30 lines
438 B
Makefile
# $FreeBSD$
|
|
|
|
IGNORE_PRAGMA= 1
|
|
|
|
load :
|
|
-kldload cyclic
|
|
-kldload dtrace
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
-kldload sdt
|
|
-kldload lockstat
|
|
-kldload fbt
|
|
-kldload prototype
|
|
.endif
|
|
-kldload profile
|
|
-kldload systrace
|
|
kldstat
|
|
|
|
unload :
|
|
-kldunload systrace
|
|
-kldunload profile
|
|
.if ${MACHINE_CPUARCH} == "i386"
|
|
-kldunload prototype
|
|
-kldunload fbt
|
|
-kldunload lockstat
|
|
-kldunload sdt
|
|
.endif
|
|
-kldunload dtrace
|
|
-kldunload cyclic
|
|
kldstat
|