Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Oct 2017 19:14:40 +0000 (UTC)
From:      Sean Bruno <sbruno@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324500 - head/sys/modules/em
Message-ID:  <201710101914.v9AJEenl040536@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sbruno
Date: Tue Oct 10 19:14:40 2017
New Revision: 324500
URL: https://svnweb.freebsd.org/changeset/base/324500

Log:
  Hard link if_igb.ko to if_em.ko.  Use a LINK directive to ensure that
  this is more friendly to the tree.
  
  Tested this with loader.conf:if_igb_load="YES" and it does the right
  thing.
  
  Submitted by:	Ian Lepore <ian@freebsd.org>

Modified:
  head/sys/modules/em/Makefile

Modified: head/sys/modules/em/Makefile
==============================================================================
--- head/sys/modules/em/Makefile	Tue Oct 10 16:17:03 2017	(r324499)
+++ head/sys/modules/em/Makefile	Tue Oct 10 19:14:40 2017	(r324500)
@@ -22,7 +22,6 @@ CFLAGS += -I${SRCTOP}/sys/dev/e1000
 # DEVICE_POLLING for a non-interrupt-driven method
 #CFLAGS  += -DDEVICE_POLLING
 
-afterinstall:
-	cd ${DESTDIR}${KMODDIR} && ln -sf if_em.ko if_igb.ko
+LINKS=	${KMODDIR}/${KMOD}.ko ${KMODDIR}/if_igb.ko
 
 .include <bsd.kmod.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710101914.v9AJEenl040536>