head	1.5;
access;
symbols
	netbsd-11-0-RC6:1.5
	netbsd-11-0-RC5:1.5
	netbsd-11-0-RC4:1.5
	netbsd-11-0-RC3:1.5
	netbsd-11-0-RC2:1.5
	netbsd-11-0-RC1:1.5
	perseant-exfatfs-base-20250801:1.5
	netbsd-11:1.5.0.4
	netbsd-11-base:1.5
	netbsd-10-1-RELEASE:1.2.32.1
	perseant-exfatfs-base-20240630:1.5
	perseant-exfatfs:1.5.0.2
	perseant-exfatfs-base:1.5
	netbsd-9-4-RELEASE:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	thorpej-ifq:1.2.0.36
	thorpej-ifq-base:1.2
	thorpej-altq-separation:1.2.0.34
	thorpej-altq-separation-base:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.32
	netbsd-10-base:1.2
	bouyer-sunxi-drm:1.2.0.30
	bouyer-sunxi-drm-base:1.2
	netbsd-9-3-RELEASE:1.2
	thorpej-i2c-spi-conf2:1.2.0.28
	thorpej-i2c-spi-conf2-base:1.2
	thorpej-futex2:1.2.0.26
	thorpej-futex2-base:1.2
	thorpej-cfargs2:1.2.0.24
	thorpej-cfargs2-base:1.2
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.22
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.2
	cjep_staticlib_x:1.2.0.20
	cjep_staticlib_x-base:1.2
	thorpej-i2c-spi-conf:1.2.0.18
	thorpej-i2c-spi-conf-base:1.2
	thorpej-cfargs:1.2.0.16
	thorpej-cfargs-base:1.2
	thorpej-futex:1.2.0.14
	thorpej-futex-base:1.2
	netbsd-9-1-RELEASE:1.2
	bouyer-xenpvh-base2:1.2
	phil-wifi-20200421:1.2
	bouyer-xenpvh-base1:1.2
	phil-wifi-20200411:1.2
	bouyer-xenpvh:1.2.0.12
	bouyer-xenpvh-base:1.2
	is-mlppp:1.2.0.10
	is-mlppp-base:1.2
	phil-wifi-20200406:1.2
	ad-namecache-base3:1.2
	netbsd-9-0-RELEASE:1.2
	netbsd-9-0-RC2:1.2
	ad-namecache-base2:1.2
	ad-namecache-base1:1.2
	ad-namecache:1.2.0.8
	ad-namecache-base:1.2
	netbsd-9-0-RC1:1.2
	phil-wifi-20191119:1.2
	netbsd-9:1.2.0.6
	netbsd-9-base:1.2
	phil-wifi:1.2.0.4
	phil-wifi-20190609:1.2
	isaki-audio2:1.2.0.2
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.1.2.2
	pgoyette-compat-20190127:1.1
	pgoyette-compat-20190118:1.1
	pgoyette-compat-1226:1.1
	pgoyette-compat-1126:1.1
	pgoyette-compat-1020:1.1
	pgoyette-compat-0930:1.1
	pgoyette-compat-0906:1.1
	pgoyette-compat-0728:1.1
	pgoyette-compat-0625:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat:1.1.0.2;
locks; strict;
comment	@# @;


1.5
date	2024.06.17.22.39.36;	author mrg;	state Exp;
branches;
next	1.4;
commitid	Oz31jB5D46cp9oeF;

1.4
date	2024.06.17.10.16.00;	author pgoyette;	state Exp;
branches;
next	1.3;
commitid	GwQKtCPpjVTe2keF;

1.3
date	2024.06.16.21.52.01;	author pgoyette;	state Exp;
branches;
next	1.2;
commitid	rHTUow2gQyRcVfeF;

1.2
date	2019.01.27.02.08.44;	author pgoyette;	state Exp;
branches
	1.2.4.1
	1.2.32.1;
next	1.1;
commitid	ipPva1Pj3xTcBm9B;

1.1
date	2018.03.30.11.18.34;	author pgoyette;	state dead;
branches
	1.1.2.1;
next	;
commitid	4LOhD1EZzhuKntwA;

1.2.4.1
date	2019.01.27.02.08.44;	author christos;	state dead;
branches;
next	1.2.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.2.4.2
date	2019.06.10.22.09.13;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.2.32.1
date	2024.06.22.11.11.53;	author martin;	state Exp;
branches;
next	;
commitid	5nCHYj3kXq6LbYeF;

1.1.2.1
date	2018.03.30.11.18.34;	author pgoyette;	state Exp;
branches;
next	1.1.2.2;
commitid	4LOhD1EZzhuKntwA;

1.1.2.2
date	2018.09.13.22.09.20;	author pgoyette;	state Exp;
branches;
next	;
commitid	SSOnWcg4gqQdCZRA;


desc
@@


1.5
log
@fix the m68k compat_13 build.

include Makefile.assym to generate assym.h.
use -I. and -x assembler-with-cpp to actually use cpp and find assym.h.
@
text
@#	$NetBSD: Makefile,v 1.4 2024/06/17 10:16:00 pgoyette Exp $

.include <bsd.init.mk>

.PATH:	${S}/compat/common

KMOD=	compat_13

CPPFLAGS+=	-DCOMPAT_13 -DCOMPAT_14 -DCOMPAT_16 -DCOMPAT_20 -DCOMPAT_30
CPPFLAGS+=	-DCOMPAT_40 -DCOMPAT_50 -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80

SRCS+=	compat_13_mod.c
SRCS+=	uvm_13.c kern_sig_13.c

COMPAT_MACHDEP_SRCS=	compat_13_machdep.c

.if ${MACHINE_CPU} == "m68k"
.include "../Makefile.assym"

COMPAT_MACHDEP_SRCS+=	compat_13_sigreturn13.s
COPTS.compat_13_sigreturn13.s+=	-I. -x assembler-with-cpp
.endif

.include "../Makefile.compat"
.include <bsd.kmodule.mk>
@


1.4
log
@Ooops missed a source file!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2024/06/16 21:52:01 pgoyette Exp $
d18 2
d21 1
@


1.3
log
@Introduce sys/modules/Makefile.compat and hook some compat_1[36]
machdep code into the modules.  kern/58346
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2019/01/27 02:08:44 pgoyette Exp $
d15 2
@


1.2
log
@Merge the [pgoyette-compat] branch
@
text
@d1 1
a1 1
#	$NetBSD$
d3 1
a3 1
.include "../Makefile.inc"
d15 2
a16 4
.if ${MACHINE_ARCH} == "x86_64"
.PATH:	${S}/arch/amd64/amd64

SRCS+=	compat_13_machdep.c
d19 1
@


1.2.32.1
log
@Pull up following revision(s) (requested by pgoyette in ticket #724):

	sys/modules/compat_netbsd32_16/Makefile: revision 1.5
	sys/arch/powerpc/powerpc/compat_16_machdep.c: revision 1.25
	sys/arch/powerpc/powerpc/compat_16_machdep.c: revision 1.26
	sys/modules/compat_16/Makefile: revision 1.3
	sys/modules/compat_netbsd32_13/Makefile: revision 1.5
	sys/modules/compat_16/Makefile: revision 1.4
	sys/arch/sun2/sun2/genassym.cf: revision 1.17
	sys/arch/sun2/sun2/enable.h: revision 1.5
	sys/modules/compat_13/Makefile: revision 1.3
	sys/modules/compat_13/Makefile: revision 1.4
	sys/modules/compat_13/Makefile: revision 1.5
	sys/arch/mips/mips/netbsd32_machdep_16.c: revision 1.8
	sys/modules/Makefile.compat: revision 1.1
	sys/arch/mips/mips/netbsd32_machdep_13.c: revision 1.4
	share/mk/bsd.kmodule.mk: revision 1.86
	sys/arch/aarch64/aarch64/netbsd32_machdep_16.c: revision 1.4
	sys/arch/powerpc/powerpc/compat_13_machdep.c: revision 1.23
	sys/arch/aarch64/aarch64/netbsd32_machdep_13.c: revision 1.4

Import AFLAGS to allow processing of assembler files in modules.
Prerequisite for kern/583346.

Introduce sys/modules/Makefile.compat and hook some compat_1[36]
machdep code into the modules.  kern/58346

Ooops missed a source file!

Proteect #include of kernel options files with #ifdef _KERNEL_OPT

XXX Add to existing 10.0 and 9.0 tickets for kern/583346

Include required headers

Add required include for compat_16 machdep code

fix the m68k compat_13 build.

include Makefile.assym to generate assym.h.
use -I. and -x assembler-with-cpp to actually use cpp and find assym.h.
also apply m68k assym.h fix here as well as compat_13.

powerpc64: Provide dummy stubs for compat1[36]
as done for amd64. We haven't had working userland for powerpc64,
and therefore compatible to 1.[36] is only useful for netbsd32.

Fix build failure for evbppc64 for PR kern/58346 (my bug!).
sun2/genassym.cf: Skip KERNBASE for _MODULE
as it is not a compile-time constant; see sun2/vmparam.h.

It should not be, and is not actually, used for modules.

PR kern/58346

sun2/enable.h: Fix -Wold-style-definition for WARNS=5 build as modules
Finally fix sun2 build for PR kern/58346
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2019/01/27 02:08:44 pgoyette Exp $
d3 1
a3 1
.include <bsd.init.mk>
d15 2
a16 1
COMPAT_MACHDEP_SRCS=	compat_13_machdep.c
d18 1
a18 5
.if ${MACHINE_CPU} == "m68k"
.include "../Makefile.assym"

COMPAT_MACHDEP_SRCS+=	compat_13_sigreturn13.s
COPTS.compat_13_sigreturn13.s+=	-I. -x assembler-with-cpp
a20 1
.include "../Makefile.compat"
@


1.2.4.1
log
@file Makefile was added on branch phil-wifi on 2019-06-10 22:09:13 +0000
@
text
@d1 21
@


1.2.4.2
log
@Sync with HEAD
@
text
@a0 21
#	$NetBSD: Makefile,v 1.2 2019/01/27 02:08:44 pgoyette Exp $

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat_13

CPPFLAGS+=	-DCOMPAT_13 -DCOMPAT_14 -DCOMPAT_16 -DCOMPAT_20 -DCOMPAT_30
CPPFLAGS+=	-DCOMPAT_40 -DCOMPAT_50 -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80

SRCS+=	compat_13_mod.c
SRCS+=	uvm_13.c kern_sig_13.c

.if ${MACHINE_ARCH} == "x86_64"
.PATH:	${S}/arch/amd64/amd64

SRCS+=	compat_13_machdep.c
.endif

.include <bsd.kmodule.mk>
@


1.1
log
@file Makefile was initially added on branch pgoyette-compat.
@
text
@d1 21
@


1.1.2.1
log
@Add compat_13 module
@
text
@a0 16
#	$NetBSD: Makefile,v 1.1.2.1 2018/03/30 10:09:08 pgoyette Exp $

.include "../Makefile.inc"

.PATH:	${S}/compat/common

KMOD=	compat_13

CPPFLAGS+=	-DCOMPAT_13 -DCOMPAT_14 -DCOMPAT_16 -DCOMPAT_20 -DCOMPAT_30
CPPFLAGS+=	-DCOMPAT_40 -DCOMPAT_50 -DCOMPAT_60 -DCOMPAT_70 -DCOMPAT_80

SRCS+=	compat_13_mod.c
SRCS+=	uvm_13.c kern_sig_13.c


.include <bsd.kmodule.mk>
@


1.1.2.2
log
@Include required MD code for amd64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.1 2018/03/30 11:18:34 pgoyette Exp $
a14 5
.if ${MACHINE_ARCH} == "x86_64"
.PATH:	${S}/arch/amd64/amd64

SRCS+=	compat_13_machdep.c
.endif
@


