mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Don't generate major.c anymore.
This commit is contained in:
parent
b3d82c03fc
commit
92daf6f9ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144293
@ -110,7 +110,7 @@ ${mfile:T:S/.m$/.h/}: ${mfile}
|
||||
kernel-clean:
|
||||
rm -f *.o *.so *.So *.ko *.s eddep errs \
|
||||
${FULLKERNEL} ${KERNEL_KO} linterrs makelinks tags \
|
||||
vers.c vnode_if.c vnode_if.h majors.c \
|
||||
vers.c vnode_if.c vnode_if.h \
|
||||
${MFILES:T:S/.m$/.c/} ${MFILES:T:S/.m$/.h/} \
|
||||
${CLEAN}
|
||||
|
||||
@ -227,15 +227,12 @@ kernel-reinstall:
|
||||
${INSTALL} -p -m 555 -o root -g wheel ${KERNEL_KO} ${DESTDIR}${KODIR}
|
||||
.endif
|
||||
|
||||
config.o env.o hints.o majors.o vers.o vnode_if.o:
|
||||
config.o env.o hints.o vers.o vnode_if.o:
|
||||
${NORMAL_C}
|
||||
|
||||
config.ln env.ln hints.ln majors.ln vers.ln vnode_if.ln:
|
||||
config.ln env.ln hints.ln vers.ln vnode_if.ln:
|
||||
${NORMAL_LINT}
|
||||
|
||||
majors.c: $S/conf/majors $S/conf/majors.awk
|
||||
${AWK} -f $S/conf/majors.awk $S/conf/majors > ${.TARGET}
|
||||
|
||||
vers.c: $S/conf/newvers.sh $S/sys/param.h ${SYSTEM_DEP}
|
||||
MAKE=${MAKE} sh $S/conf/newvers.sh ${KERN_IDENT}
|
||||
|
||||
|
@ -121,7 +121,7 @@ NORMAL_M= ${AWK} -f $S/tools/makeobjops.awk ${.IMPSRC} -c ; \
|
||||
NORMAL_LINT= ${LINT} ${LINTFLAGS} ${CFLAGS:M-[DIU]*} ${.IMPSRC}
|
||||
|
||||
GEN_CFILES= $S/$M/$M/genassym.c ${MFILES:T:S/.m$/.c/}
|
||||
SYSTEM_CFILES= config.c env.c hints.c majors.c vnode_if.c
|
||||
SYSTEM_CFILES= config.c env.c hints.c vnode_if.c
|
||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJS}
|
||||
SYSTEM_OBJS= locore.o ${MDOBJS} ${OBJS}
|
||||
SYSTEM_OBJS+= ${SYSTEM_CFILES:.c=.o}
|
||||
|
@ -1,21 +0,0 @@
|
||||
# $FreeBSD$
|
||||
/^#/ { next }
|
||||
NF == 1 { next }
|
||||
$2 == "??" { next }
|
||||
$2 == "lkm" { next }
|
||||
{
|
||||
a[$1] = $1;
|
||||
}
|
||||
END {
|
||||
print "unsigned char reserved_majors[256] = {"
|
||||
for (i = 0; i < 256; i += 16) {
|
||||
for (j = 0; j < 16; j++) {
|
||||
printf("%3d", a[i + j]);
|
||||
if (i + j != 255)
|
||||
printf(",");
|
||||
}
|
||||
print ""
|
||||
}
|
||||
print "};"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user