summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-26 13:58:31 +0000
committerbde <bde@FreeBSD.org>1995-12-26 13:58:31 +0000
commit49ed6a09d11ec3db6deb7797c3b4b4133b57856a (patch)
treeb2817a4f30b6287ab4c4e346b4f8d4e6b8281eea /sys
parent6a0ace8bd06c07596749965bccd76d8a1f0e4605 (diff)
downloadFreeBSD-src-49ed6a09d11ec3db6deb7797c3b4b4133b57856a.zip
FreeBSD-src-49ed6a09d11ec3db6deb7797c3b4b4133b57856a.tar.gz
Removed almost all traces of libkern.a. The objects that were in
libkern.a are now specified by listing their source files in files.${MACHINE}. The list is machine-dependent to save space. All the necessary object for each machine must be linked into the kernel in case an lkm wants one.
Diffstat (limited to 'sys')
-rw-r--r--sys/Makefile4
-rw-r--r--sys/amd64/amd64/support.S21
-rw-r--r--sys/amd64/amd64/support.s21
-rw-r--r--sys/conf/Makefile.i38630
-rw-r--r--sys/conf/Makefile.powerpc30
-rw-r--r--sys/conf/files.i38619
-rw-r--r--sys/i386/conf/Makefile.i38630
-rw-r--r--sys/i386/conf/files.i38619
-rw-r--r--sys/i386/i386/support.s21
-rw-r--r--sys/libkern/Makefile37
10 files changed, 53 insertions, 179 deletions
diff --git a/sys/Makefile b/sys/Makefile
index 00d8064..d2205c0 100644
--- a/sys/Makefile
+++ b/sys/Makefile
@@ -1,5 +1,5 @@
-# $Id: Makefile,v 1.2 1994/08/02 07:38:17 davidg Exp $
+# $Id: Makefile,v 1.3 1994/08/25 13:54:28 paul Exp $
-SUBDIR= ${MACHINE}/boot libkern
+SUBDIR= ${MACHINE}/boot
.include <bsd.subdir.mk>
diff --git a/sys/amd64/amd64/support.S b/sys/amd64/amd64/support.S
index 3150bbf..85f0a89 100644
--- a/sys/amd64/amd64/support.S
+++ b/sys/amd64/amd64/support.S
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: support.s,v 1.27 1995/12/23 16:46:31 davidg Exp $
+ * $Id: support.s,v 1.28 1995/12/24 08:10:43 davidg Exp $
*/
#include "assym.s" /* system definitions */
@@ -938,22 +938,3 @@ ___bb_init_func:
movl 4(%esp),%eax
movl $1,(%eax)
ret
-
-/*
- * Pull in everything in libkern for LKM's
- */
-
-.globl ___umoddi3
-.globl ___moddi3
-.globl ___udivdi3
-.globl ___divdi3
-.globl _inet_ntoa
-.globl _random
-.globl _scanc
-.globl _skpc
-.globl _strcat
-.globl _strncmp
-.globl _strncpy
-.globl _strcmp
-.globl _strcpy
-.globl ___qdivrem
diff --git a/sys/amd64/amd64/support.s b/sys/amd64/amd64/support.s
index 3150bbf..85f0a89 100644
--- a/sys/amd64/amd64/support.s
+++ b/sys/amd64/amd64/support.s
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: support.s,v 1.27 1995/12/23 16:46:31 davidg Exp $
+ * $Id: support.s,v 1.28 1995/12/24 08:10:43 davidg Exp $
*/
#include "assym.s" /* system definitions */
@@ -938,22 +938,3 @@ ___bb_init_func:
movl 4(%esp),%eax
movl $1,(%eax)
ret
-
-/*
- * Pull in everything in libkern for LKM's
- */
-
-.globl ___umoddi3
-.globl ___moddi3
-.globl ___udivdi3
-.globl ___divdi3
-.globl _inet_ntoa
-.globl _random
-.globl _scanc
-.globl _skpc
-.globl _strcat
-.globl _strncmp
-.globl _strncpy
-.globl _strcmp
-.globl _strcpy
-.globl ___qdivrem
diff --git a/sys/conf/Makefile.i386 b/sys/conf/Makefile.i386
index f948e9b..87ac8e4 100644
--- a/sys/conf/Makefile.i386
+++ b/sys/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
+# $Id: Makefile.i386,v 1.71 1995/12/16 01:57:17 bde Exp $
#
# Makefile for FreeBSD
#
@@ -62,9 +62,9 @@ PROFILE_C= ${CC} -c ${CFLAGS} ${PARAM} $<
SYSTEM_CFILES= ioconf.c param.c vnode_if.c
SYSTEM_SFILES= ${I386}/i386/locore.s
SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o
-SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS} libkern.a
+SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
-SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o libkern.a
+SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o
.if ${CFLAGS:M-g} == ""
SYMORDER_EXCLUDE=-x symbols.exclude
.endif
@@ -84,30 +84,8 @@ SYSTEM_LD_TAIL= @echo rearranging symbols; \
%CLEAN
-# This is slightly different from before in that if you define PROF
-# to anything, it will assume profiling. Don't do "PROF=" to turn
-# profiling off!
-.if exists($S/libkern/obj)
-LIBKERNP=$S/libkern/obj
-.else
-LIBKERNP=$S/libkern
-.endif
-
-.if defined(PROF)
-LIBKERN=${LIBKERNP}/libkern_p.a
-.else
-LIBKERN=${LIBKERNP}/libkern.a
-.endif
-
-libkern.a: ${LIBKERN}
- @rm -f libkern.a
- ln -s ${LIBKERN} libkern.a
-
-${LIBKERN}:
- @(cd $S/libkern; make)
-
clean:
- rm -f *.o *.s eddep errs genassym kernel libkern.a linterrs \
+ rm -f *.o *.s eddep errs genassym kernel linterrs \
makelinks param.c symbols.exclude symbols.sort tags \
vers.c vnode_if.c vnode_if.h ${CLEAN}
diff --git a/sys/conf/Makefile.powerpc b/sys/conf/Makefile.powerpc
index f948e9b..87ac8e4 100644
--- a/sys/conf/Makefile.powerpc
+++ b/sys/conf/Makefile.powerpc
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
+# $Id: Makefile.i386,v 1.71 1995/12/16 01:57:17 bde Exp $
#
# Makefile for FreeBSD
#
@@ -62,9 +62,9 @@ PROFILE_C= ${CC} -c ${CFLAGS} ${PARAM} $<
SYSTEM_CFILES= ioconf.c param.c vnode_if.c
SYSTEM_SFILES= ${I386}/i386/locore.s
SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o
-SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS} libkern.a
+SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
-SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o libkern.a
+SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o
.if ${CFLAGS:M-g} == ""
SYMORDER_EXCLUDE=-x symbols.exclude
.endif
@@ -84,30 +84,8 @@ SYSTEM_LD_TAIL= @echo rearranging symbols; \
%CLEAN
-# This is slightly different from before in that if you define PROF
-# to anything, it will assume profiling. Don't do "PROF=" to turn
-# profiling off!
-.if exists($S/libkern/obj)
-LIBKERNP=$S/libkern/obj
-.else
-LIBKERNP=$S/libkern
-.endif
-
-.if defined(PROF)
-LIBKERN=${LIBKERNP}/libkern_p.a
-.else
-LIBKERN=${LIBKERNP}/libkern.a
-.endif
-
-libkern.a: ${LIBKERN}
- @rm -f libkern.a
- ln -s ${LIBKERN} libkern.a
-
-${LIBKERN}:
- @(cd $S/libkern; make)
-
clean:
- rm -f *.o *.s eddep errs genassym kernel libkern.a linterrs \
+ rm -f *.o *.s eddep errs genassym kernel linterrs \
makelinks param.c symbols.exclude symbols.sort tags \
vers.c vnode_if.c vnode_if.h ${CLEAN}
diff --git a/sys/conf/files.i386 b/sys/conf/files.i386
index 66c7ac1..fda656d 100644
--- a/sys/conf/files.i386
+++ b/sys/conf/files.i386
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $Id: files.i386,v 1.119 1995/12/21 20:09:22 julian Exp $
+# $Id: files.i386,v 1.120 1995/12/26 12:50:01 bde Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/aic7xxx_asm.c" \
@@ -193,6 +193,23 @@ i386/linux/linux_sysent.c optional linux
i386/scsi/aic7xxx.c optional ahc device-driver \
dependency "aic7xxx_seq.h"
i386/scsi/bt.c optional bt device-driver
+libkern/divdi3.c standard
+libkern/inet_ntoa.c standard
+libkern/mcount.c optional profiling-routine
+libkern/moddi3.c standard
+libkern/qdivrem.c standard
+libkern/qsort.c standard
+libkern/random.c standard
+libkern/scanc.c standard
+libkern/skpc.c standard
+libkern/strcat.c standard
+libkern/strcmp.c standard
+libkern/strcpy.c standard
+libkern/strlen.c standard
+libkern/strncmp.c standard
+libkern/strncpy.c standard
+libkern/udivdi3.c standard
+libkern/umoddi3.c standard
gnu/i386/fpemul/div_small.s optional gpl_math_emulate
gnu/i386/fpemul/errors.c optional gpl_math_emulate
gnu/i386/fpemul/fpu_arith.c optional gpl_math_emulate
diff --git a/sys/i386/conf/Makefile.i386 b/sys/i386/conf/Makefile.i386
index f948e9b..87ac8e4 100644
--- a/sys/i386/conf/Makefile.i386
+++ b/sys/i386/conf/Makefile.i386
@@ -1,6 +1,6 @@
# Copyright 1990 W. Jolitz
# from: @(#)Makefile.i386 7.1 5/10/91
-# $Id: Makefile.i386,v 1.70 1995/11/19 19:49:43 davidg Exp $
+# $Id: Makefile.i386,v 1.71 1995/12/16 01:57:17 bde Exp $
#
# Makefile for FreeBSD
#
@@ -62,9 +62,9 @@ PROFILE_C= ${CC} -c ${CFLAGS} ${PARAM} $<
SYSTEM_CFILES= ioconf.c param.c vnode_if.c
SYSTEM_SFILES= ${I386}/i386/locore.s
SYSTEM_OBJS= locore.o vnode_if.o ${OBJS} ioconf.o param.o
-SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS} libkern.a
+SYSTEM_DEP= Makefile symbols.exclude symbols.sort ${SYSTEM_OBJS}
SYSTEM_LD_HEAD= @echo loading $@; rm -f $@
-SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o libkern.a
+SYSTEM_LD= @${LD} -Bstatic -Z -T ${LOAD_ADDRESS} -o $@ -X ${SYSTEM_OBJS} vers.o
.if ${CFLAGS:M-g} == ""
SYMORDER_EXCLUDE=-x symbols.exclude
.endif
@@ -84,30 +84,8 @@ SYSTEM_LD_TAIL= @echo rearranging symbols; \
%CLEAN
-# This is slightly different from before in that if you define PROF
-# to anything, it will assume profiling. Don't do "PROF=" to turn
-# profiling off!
-.if exists($S/libkern/obj)
-LIBKERNP=$S/libkern/obj
-.else
-LIBKERNP=$S/libkern
-.endif
-
-.if defined(PROF)
-LIBKERN=${LIBKERNP}/libkern_p.a
-.else
-LIBKERN=${LIBKERNP}/libkern.a
-.endif
-
-libkern.a: ${LIBKERN}
- @rm -f libkern.a
- ln -s ${LIBKERN} libkern.a
-
-${LIBKERN}:
- @(cd $S/libkern; make)
-
clean:
- rm -f *.o *.s eddep errs genassym kernel libkern.a linterrs \
+ rm -f *.o *.s eddep errs genassym kernel linterrs \
makelinks param.c symbols.exclude symbols.sort tags \
vers.c vnode_if.c vnode_if.h ${CLEAN}
diff --git a/sys/i386/conf/files.i386 b/sys/i386/conf/files.i386
index 66c7ac1..fda656d 100644
--- a/sys/i386/conf/files.i386
+++ b/sys/i386/conf/files.i386
@@ -1,7 +1,7 @@
# This file tells config what files go into building a kernel,
# files marked standard are always included.
#
-# $Id: files.i386,v 1.119 1995/12/21 20:09:22 julian Exp $
+# $Id: files.i386,v 1.120 1995/12/26 12:50:01 bde Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/aic7xxx_asm.c" \
@@ -193,6 +193,23 @@ i386/linux/linux_sysent.c optional linux
i386/scsi/aic7xxx.c optional ahc device-driver \
dependency "aic7xxx_seq.h"
i386/scsi/bt.c optional bt device-driver
+libkern/divdi3.c standard
+libkern/inet_ntoa.c standard
+libkern/mcount.c optional profiling-routine
+libkern/moddi3.c standard
+libkern/qdivrem.c standard
+libkern/qsort.c standard
+libkern/random.c standard
+libkern/scanc.c standard
+libkern/skpc.c standard
+libkern/strcat.c standard
+libkern/strcmp.c standard
+libkern/strcpy.c standard
+libkern/strlen.c standard
+libkern/strncmp.c standard
+libkern/strncpy.c standard
+libkern/udivdi3.c standard
+libkern/umoddi3.c standard
gnu/i386/fpemul/div_small.s optional gpl_math_emulate
gnu/i386/fpemul/errors.c optional gpl_math_emulate
gnu/i386/fpemul/fpu_arith.c optional gpl_math_emulate
diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s
index 3150bbf..85f0a89 100644
--- a/sys/i386/i386/support.s
+++ b/sys/i386/i386/support.s
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: support.s,v 1.27 1995/12/23 16:46:31 davidg Exp $
+ * $Id: support.s,v 1.28 1995/12/24 08:10:43 davidg Exp $
*/
#include "assym.s" /* system definitions */
@@ -938,22 +938,3 @@ ___bb_init_func:
movl 4(%esp),%eax
movl $1,(%eax)
ret
-
-/*
- * Pull in everything in libkern for LKM's
- */
-
-.globl ___umoddi3
-.globl ___moddi3
-.globl ___udivdi3
-.globl ___divdi3
-.globl _inet_ntoa
-.globl _random
-.globl _scanc
-.globl _skpc
-.globl _strcat
-.globl _strncmp
-.globl _strncpy
-.globl _strcmp
-.globl _strcpy
-.globl ___qdivrem
diff --git a/sys/libkern/Makefile b/sys/libkern/Makefile
deleted file mode 100644
index 686f3de..0000000
--- a/sys/libkern/Makefile
+++ /dev/null
@@ -1,37 +0,0 @@
-# @(#)Makefile 7.9 (Berkeley) 6/1/93
-# $Id: Makefile,v 1.11 1995/11/08 08:40:09 phk Exp $
-
-.undef NOPROFILE
-
-LIB= kern
-CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -DKERNEL
-
-# Stuff we call from the kernel
-SRCS+= inet_ntoa.c mcount.c qsort.c
-SRCS+= random.c scanc.c skpc.c
-SRCS+= strcat.c strcmp.c strcpy.c strlen.c strncmp.c strncpy.c
-
-# Stuff GCC generates
-SRCS+= divdi3.c udivdi3.c moddi3.c umoddi3.c
-SRCS+= qdivrem.c
-
-# Stuff which isn't currently used, if at all..
-# SRCS+= bcmp.c ffs.c locc.c rindex.c
-
-# Stuff GCC may need....
-# SRCS+= adddi3.c anddi3.c ashldi3.c ashrdi3.c cmpdi2.c
-# SRCS+= iordi3.c lshldi3.c lshrdi3.c muldi3.c negdi2.c notdi2.c
-# SRCS+= subdi3.c ucmpdi2.c xordi3.c
-
-.if exists(${.CURDIR}/${MACHINE}/Makefile.inc)
-.PATH: ${.CURDIR}/${MACHINE}
-.include "${.CURDIR}/${MACHINE}/Makefile.inc"
-.endif
-
-# mcount cannot be compiled with profiling
-mcount.po: mcount.o
- cp mcount.o mcount.po
-
-install:
-
-.include <bsd.lib.mk>
OpenPOWER on IntegriCloud