Skip to contentSkip to conversation

librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel

PATCH Applied Aaron Conole 3 participants 3 messages Sep 23, 2015 – Sep 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 librte_vhost: eventfd_link: Update the makefile to build against an arbitrary kernel

The vHost eventlink driver is a kernel module that requires a kernel source/build directory to build the ko. Convert the fixed kernel build directory specifier to one which may be user specified on the command-line.

---
 lib/librte_vhost/eventfd_link/Makefile | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
lib/librte_vhost/eventfd_link/Makefile +4 -2
index fc3927b..3140e8b 100644
@@ -29,11 +29,13 @@
 #   (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 #   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+RTE_KERNELDIR ?= /lib/modules/$(shell uname -r)/build
+
 obj-m += eventfd_link.o
 
 
 all:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
+	make -C $(RTE_KERNELDIR) M=$(PWD) modules
 
 clean:
-	make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
+	make -C $(RTE_KERNELDIR) M=$(PWD) clean
Signature · 1 line
1.8.3.1
#1 lore raw

2015-09-23 16:03, Aaron Conole:

Quoted 5 lines

The vHost eventlink driver is a kernel module that requires a kernel source/build directory to build the ko. Convert the fixed kernel build directory specifier to one which may be user specified on the command-line.

Applied, thanks

#2 lore raw

Thomas,

Can I please have your attention there as well:
http://dpdk.org/dev/patchwork/project/dpdk/list/?submitter=194

Pavel

On Thu, Sep 24, 2015 at 11:05 PM, Thomas Monjalon <[email protected]

Quoted 12 lines

wrote:

2015-09-23 16:03, Aaron Conole:

Quoted 3 lines

The vHost eventlink driver is a kernel module that requires a kernel source/build directory to build the ko. Convert the fixed kernel build directory specifier to one which may be user specified on the

command-line.

Quoted 2 lines

Applied, thanks