mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
Use symlinks for kernel modules rather than hardlinks
When aliasing a kernel module to a different name (ie if_igb for if_em), it's better to use symlinks than hard links. kldxref will omit entries for the links, ensuring that the loaded module has the correct name. Reviewed by: imp MFC after: 2 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D19979
This commit is contained in:
parent
0356220eba
commit
43d1e6ee29
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346441
@ -22,6 +22,6 @@ CFLAGS += -I${SRCTOP}/sys/dev/e1000
|
||||
# DEVICE_POLLING for a non-interrupt-driven method
|
||||
#CFLAGS += -DDEVICE_POLLING
|
||||
|
||||
LINKS= ${KMODDIR}/${KMOD}.ko ${KMODDIR}/if_igb.ko
|
||||
SYMLINKS= ${KMOD}.ko ${KMODDIR}/if_igb.ko
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -8,6 +8,6 @@ SRCS= vnode_if.h \
|
||||
fuse_vfsops.c fuse_vnops.c fuse_internal.c fuse_main.c
|
||||
|
||||
# Symlink for backwards compatibility with systems installed at 12.0 or older
|
||||
LINKS= ${KMODDIR}/${KMOD}.ko ${KMODDIR}/fuse.ko
|
||||
SYMLINKS= ${KMOD}.ko ${KMODDIR}/fuse.ko
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
@ -15,6 +15,6 @@ SRCS += i40e_common.c i40e_nvm.c i40e_adminq.c
|
||||
# Enable asserts and other debugging facilities
|
||||
# CFLAGS += -DINVARIANTS -DINVARIANTS_SUPPORT -DWITNESS
|
||||
|
||||
LINKS= ${KMODDIR}/${KMOD}.ko ${KMODDIR}/if_ixlv.ko
|
||||
SYMLINKS= ${KMOD}.ko ${KMODDIR}/if_ixlv.ko
|
||||
|
||||
.include <bsd.kmod.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user