Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/common Remove sys/compat/common/Makefile.*.



details:   https://anonhg.NetBSD.org/src/rev/ac97452a4744
branches:  trunk
changeset: 372679:ac97452a4744
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Dec 20 00:11:14 2022 +0000

description:
Remove sys/compat/common/Makefile.*.

 These files are not used anymore. Files for compat code are listed in
sys/comapt/common/files.common and sys/modules/compat_xxx/Makefile.
OK'd by riastradh@ and pgoyette@.

diffstat:

 sys/compat/common/Makefile       |  35 --------------
 sys/compat/common/Makefile.inc   |  94 ----------------------------------------
 sys/compat/common/Makefile.sysio |  68 ----------------------------
 sys/compat/common/Makefile.sysv  |  15 ------
 4 files changed, 0 insertions(+), 212 deletions(-)

diffs (228 lines):

diff -r 28f1660f5327 -r ac97452a4744 sys/compat/common/Makefile
--- a/sys/compat/common/Makefile        Mon Dec 19 23:19:51 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-#      $NetBSD: Makefile,v 1.66 2021/05/25 16:50:49 pgoyette Exp $
-
-LIB=           compat
-NOPIC=         # defined
-LLIBS=         # defined
-
-CPPFLAGS=      ${COMPATCPPFLAGS} ${SKIP_AUTODEP::=}
-
-.PATH.c: ${COMPATDIR}
-
-# Common compatibility code, used by all emulations
-SRCS=  compat_exec.c
-
-# Include compatibility code common to libcompat and the compat module
-
-.include "Makefile.sysio"
-.include "Makefile.sysv"
-
-# only needed during build
-libinstall::
-
-.include <bsd.own.mk>
-.undef DESTDIR
-.include <bsd.lib.mk>
-
-lib${LIB}.o:: ${OBJS:O} __buildstdlib
-
-lib${LIB}.po:: ${POBJS:O} __buildproflib
-
-.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
-CPPFLAGS+=     -DCPU_UCODE
-.endif
-
-showsources: ${SRCS}
-       @echo ${.ALLSRC}
diff -r 28f1660f5327 -r ac97452a4744 sys/compat/common/Makefile.inc
--- a/sys/compat/common/Makefile.inc    Mon Dec 19 23:19:51 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,94 +0,0 @@
-#      $NetBSD: Makefile.inc,v 1.26 2019/01/27 02:08:39 pgoyette Exp $
-#
-#      Configuration variables (default values are below):
-#
-#      S       must be set to the top of the 'sys' tree.
-#      COMPATDST
-#              may be set to the location of the directory where library
-#              objects are to be built.  Defaults to ${.OBJDIR}/lib/compat.
-#      COMPAT_AS
-#              may be set to 'obj' to build a object from the library's
-#              object files.  (Otherwise, a library will be built.)
-#              Defaults to 'library'.
-#      COMPATMISCMAKEFLAGS
-#              Miscellaneous flags to be passed to the library's Makefile when
-#              building.  See library's Makefile for more details about
-#              supported flags and their default values.
-
-# Default values:
-COMPATDST?=            ${.OBJDIR}/lib/compat
-.if !empty(OPT_MODULAR)
-COMPAT_AS?=            library
-.else
-COMPAT_AS?=            obj
-.endif
-COMPATDOTDIR?= ../../.
-
-COMPATDIR=             ${S:S@^.@${COMPATDOTDIR}@:Q}/compat/common
-.if (${COMPAT_AS} == "library")
-COMPATLIB=             ${COMPATDST}/libcompat.o
-COMPATLIB_PROF=        ${COMPATDST}/libcompat.po
-.else
-COMPATLIB=             ${COMPATDST}/libcompat.a
-COMPATLIB_PROF=        ${COMPATDST}/libcompat_p.a
-.endif
-
-LIBCOMPATLNBN= llib-lcompat.ln
-COMPATLIBLN=   ${COMPATDST}/${LIBCOMPATLNBN}
-
-COMPATMAKE= \
-       cd ${COMPATDST} && ${MAKE} -f ${COMPATDIR:q}/Makefile \
-           COMPATDIR=${COMPATDIR:q} \
-           CC=${CC:q} CFLAGS=${CFLAGS:q} \
-           AS=${AS:q} AFLAGS=${AFLAGS:q} \
-           AR=${AR:q} NM=${NM:q} \
-           LORDER=${LORDER:q} \
-           TSORT=${TSORT:q} \
-           RANLIB=${RANLIB:q} \
-           LD=${LD:q} LDFLAGS=${LDFLAGS:q} \
-           STRIP=${STRIP:q} \
-           MACHINE=${MACHINE} MACHINE_ARCH=${MACHINE_ARCH:q} \
-           COMPATCPPFLAGS=${CPPFLAGS:S@^-I.@-I${COMPATDOTDIR}@g:q} \
-           LINTFLAGS=${KERNLINTFLAGS:q} \
-           ${COMPATMISCMAKEFLAGS}
-
-${COMPATLIB}:          .NOTMAIN .MAKE __always_make_compatlib
-       @echo making sure the compat library is up to date...
-.if (${COMPAT_AS} == "library")
-       @${COMPATMAKE} libcompat.a
-.else
-       @${COMPATMAKE} libcompat.o
-.endif
-
-${COMPATLIB_PROF}:     .NOTMAIN .MAKE __always_make_compatlib
-       @echo making sure the profiled compat library is up to date...
-.if (${COMPAT_AS} == "library")
-       @${COMPATMAKE} libcompat_p.a
-.else
-       @${COMPATMAKE} libcompat.po
-.endif
-
-${COMPATLIBLN}:                .NOTMAIN .MAKE __always_make_compatlib
-       @echo making sure the compat lint library is up to date...
-       @${COMPATMAKE} ${LIBCOMPATLNBN}
-
-clean:                 .NOTMAIN cleancompatlib
-cleancompatlib:                .NOTMAIN .MAKE __always_make_compatlib
-       @echo cleaning the compat library objects
-       @${COMPATMAKE} clean
-
-cleandir distclean:    .NOTMAIN cleandircompatlib
-cleandircompatlib:     .NOTMAIN .MAKE  __always_make_compatlib
-       @echo cleandiring the compat library objects
-       @${COMPATMAKE} cleandir
-
-depend:                        .NOTMAIN dependcompatlib
-dependcompatlib:       .NOTMAIN .MAKE __always_make_compatlib
-       @echo depending the compat library objects
-       @${COMPATMAKE} depend
-
-__always_make_compatlib: .NOTMAIN
-       @mkdir -p ${COMPATDST}
-
-.PHONY: __always_make_compatlib
-.PHONY: cleancompatlib cleandircompatlib dependcompatlib
diff -r 28f1660f5327 -r ac97452a4744 sys/compat/common/Makefile.sysio
--- a/sys/compat/common/Makefile.sysio  Mon Dec 19 23:19:51 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,68 +0,0 @@
-#      $NetBSD: Makefile.sysio,v 1.15 2021/11/10 15:33:26 msaitoh Exp $
-
-# Sources for syscall and ioctl compatibility across the versions.
-
-# Compatibility code for 4.3BSD
-SRCS+= kern_exit_43.c kern_info_43.c kern_resource_43.c kern_sig_43.c \
-       tty_43.c uipc_syscalls_43.c vfs_syscalls_43.c vm_43.c if_43.c
-
-# Compatibility code for NetBSD 0.9
-SRCS+= kern_info_09.c
-SRCS+= compat_sysctl_09_43.c           # for compat_43 or compat_09
-
-# Compatibility code for NetBSD 1.0
-SRCS+= vfs_syscalls_10.c
-
-# Compatibility code for NetBSD 1.2
-SRCS+= kern_xxx_12.c vfs_syscalls_12.c vm_12.c
-
-# Compatibility code for NetBSD 1.3
-SRCS+= kern_sig_13.c uvm_13.c
-
-# Compatibility code for NetBSD 1.6
-SRCS+= kern_sig_16.c
-
-# Compatibility code for NetBSD 1.4
-SRCS+= rtsock_14.c
-
-# Compatibility code for NetBSD 2.0
-SRCS+= vfs_syscalls_20.c ieee80211_20.c if43_20.c
-
-# Compatibility code for NetBSD 3.0
-SRCS+= kern_time_30.c vfs_syscalls_30.c uipc_syscalls_30.c bio_30.c vnd_30.c
-SRCS+= usb_subr_30.c
-
-# Compatibility code for NetBSD 4.0
-SRCS+= vfs_syscalls_40.c uipc_syscalls_40.c
-
-# Compatibility code for NetBSD 5.0
-SRCS+= kern_50.c kern_time_50.c kern_select_50.c rndpseudo_50.c rtsock_50.c \
-       vfs_syscalls_50.c uipc_syscalls_50.c uvm_50.c clockctl_50.c \
-       if_spppsubr50.c vnd_50.c
-
-# Compatibility code for NetBSD 6.0
-SRCS+= kern_sa_60.c tty_60.c kern_time_60.c kern_cpu_60.c ccd_60.c
-
-# Compatibility code for NetBSD 7.0
-SRCS+= rtsock_70.c uipc_usrreq_70.c
-
-# Compatibility code for NetBSD 8.0
-SRCS+= kern_mod_80.c if_media_80.c
-
-# More compatibility code for NetBSD 5.0
-.PATH: ${S}/opencrypto
-SRCS+= ocryptodev.c  compat_crypto_50.c
-
-# Raidframe compatibility code for NetBSD 5.0 and 8.0
-.PATH: ${S}/dev/raidframe
-SRCS+= rf_compat50.c
-SRCS+= rf_compat80.c
-
-# Puffs compatibility code for NetBSD 5.0
-.PATH: ${S}/fs/puffs
-SRCS+= puffs_compat.c
-
-# wsevent compatibility code for NetBSD 5.0
-.PATH: ${S}/dev/wscons
-SRCS+= wsevent_50.c
-
diff -r 28f1660f5327 -r ac97452a4744 sys/compat/common/Makefile.sysv
--- a/sys/compat/common/Makefile.sysv   Mon Dec 19 23:19:51 2022 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#      $NetBSD: Makefile.sysv,v 1.1 2016/11/03 04:26:58 riastradh Exp $
-
-# Sources for sysv ipc compatibility across the versions.
-
-# Compatibility code for NetBSD 1.4
-SRCS+= sysv_msg_14.c sysv_shm_14.c sysv_sem_14.c
-
-# Compatibility code for NetBSD 5.0
-SRCS+= sysv_ipc_50.c sysv_msg_50.c sysv_sem_50.c sysv_shm_50.c
-
-# really, all machines where sizeof(int) != sizeof(long) (LP64)
-.if (${MACHINE_ARCH} != "alpha" && ${MACHINE_ARCH} != "sparc64" \
-  && ${MACHINE_ARCH} != "x86_64")
-SRCS+= kern_ipc_10.c
-.endif



Home | Main Index | Thread Index | Old Index