Quantcast
Channel: Mellanox Interconnect Community: Message List
Viewing all articles
Browse latest Browse all 6275

Compiling with mellanox headers

$
0
0

I have been trying to compile my code with mlnx-ofed-kernel-3.3/ headers but it is picking the kernel headers. The function definition in the kernel headers and mlnx-headers is different.

The make file I am using is:

 

ccflags-y=-I/usr/src/mlnx-ofed-kernel-3.3/include/

 

obj-m += mymodule.o myothermodule.o

 

.PHONY: copy_symvers load unload

 

ifndef PATH_KERNEL

PATH_KERNEL = /lib/modules/$(shell uname -r)/build

endif

 

all:

  make -C ${PATH_KERNEL} M=$(PWD) modules

 

 

copy_symvers:

  cp /usr/src/ofa_kernel/default/Module.symvers .

 

load:

  sudo insmod mymodule.ko

 

unload:

  sudo rmmod -f mymodule.ko

 

 

clean:

  make -C ${PATH_KERNEL} M=$(PWD) clean

  rm *~ -f

 

Can somebody point out the mistake?


Viewing all articles
Browse latest Browse all 6275

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>