diff options
author | Alan Somers <asomers@FreeBSD.org> | 2019-04-20 12:51:05 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2019-04-20 12:51:05 +0000 |
commit | 43d1e6ee299ad4e143d90d3ad374d1c24bd3306f (patch) | |
tree | e5ec15c198f16e2f6720d3835dfad74bbc7837b7 /sys | |
parent | 0356220eba392d636e1f9ad5f59b35e21e0f7b5a (diff) |
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
Notes
Notes:
svn path=/head/; revision=346441
Diffstat (limited to 'sys')
-rw-r--r-- | sys/modules/em/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/fusefs/Makefile | 2 | ||||
-rw-r--r-- | sys/modules/iavf/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/em/Makefile b/sys/modules/em/Makefile index b9caaa2d3cc1..0d3942dc7f0e 100644 --- a/sys/modules/em/Makefile +++ b/sys/modules/em/Makefile @@ -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> diff --git a/sys/modules/fusefs/Makefile b/sys/modules/fusefs/Makefile index c4950077c06a..1e7ca3a1e2be 100644 --- a/sys/modules/fusefs/Makefile +++ b/sys/modules/fusefs/Makefile @@ -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> diff --git a/sys/modules/iavf/Makefile b/sys/modules/iavf/Makefile index c3a1c3f5400f..4d61691b7621 100644 --- a/sys/modules/iavf/Makefile +++ b/sys/modules/iavf/Makefile @@ -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> |