head 1.1; access; symbols netbsd-11-0-RC5:1.1 netbsd-11-0-RC4:1.1 netbsd-11-0-RC3:1.1 netbsd-11-0-RC2:1.1 netbsd-11-0-RC1:1.1 perseant-exfatfs-base-20250801:1.1 netbsd-11:1.1.0.6 netbsd-11-base:1.1 netbsd-10-1-RELEASE:1.1.2.2 perseant-exfatfs-base-20240630:1.1 perseant-exfatfs:1.1.0.4 perseant-exfatfs-base:1.1 netbsd-10:1.1.0.2; locks; strict; comment @# @; 1.1 date 2024.06.16.21.52.01; author pgoyette; state Exp; branches 1.1.2.1; next ; commitid rHTUow2gQyRcVfeF; 1.1.2.1 date 2024.06.16.21.52.01; author martin; state dead; branches; next 1.1.2.2; commitid 5nCHYj3kXq6LbYeF; 1.1.2.2 date 2024.06.22.11.11.53; author martin; state Exp; branches; next ; commitid 5nCHYj3kXq6LbYeF; desc @@ 1.1 log @Introduce sys/modules/Makefile.compat and hook some compat_1[36] machdep code into the modules. kern/58346 @ text @# $NetBSD$ COMPAT_ARCH= ${MACHINE_CPU:C/x86_64/amd64/} .if empty(KMOD:Mnetbsd32) COMPAT_SUBDIR= ${COMPAT_ARCH} .else COMPAT_SUBDIR= ${COMPAT_ARCH:C/arm/arm32/} .endif COMPAT_PATH= ${S}/arch/${COMPAT_ARCH}/${COMPAT_SUBDIR} .for _s in ${COMPAT_MACHDEP_SRCS} .if exists(${COMPAT_PATH}/${_s}) .PATH: ${COMPAT_PATH} SRCS+= ${_s} .endif .endfor @ 1.1.2.1 log @file Makefile.compat was added on branch netbsd-10 on 2024-06-22 11:11:53 +0000 @ text @d1 18 @ 1.1.2.2 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 @a0 18 # $NetBSD: Makefile.compat,v 1.1 2024/06/16 21:52:01 pgoyette Exp $ COMPAT_ARCH= ${MACHINE_CPU:C/x86_64/amd64/} .if empty(KMOD:Mnetbsd32) COMPAT_SUBDIR= ${COMPAT_ARCH} .else COMPAT_SUBDIR= ${COMPAT_ARCH:C/arm/arm32/} .endif COMPAT_PATH= ${S}/arch/${COMPAT_ARCH}/${COMPAT_SUBDIR} .for _s in ${COMPAT_MACHDEP_SRCS} .if exists(${COMPAT_PATH}/${_s}) .PATH: ${COMPAT_PATH} SRCS+= ${_s} .endif .endfor @