make install and RTE_KERNELDIR in dpdk 2.2
A new 'make install' wrongly assumes that the output module name is always 'uname -r' even if RTE_KERNELDIR is passed.
# make install T=... DESTDIR=/tmp/dpdk RTE_KERNELDIR=/lib/modules/3.16.0-4-amd64/build ... # ls /tmp/dpdk/lib/modules/ 4.2.0-18-generic
Signature · 2 lines
Regards Piotr Bartosiewicz
2015-12-16 15:14, Piotr Bartosiewicz:
Quoted 2 lines
A new 'make install' wrongly assumes that the output module name is always 'uname -r' even if
RTE_KERNELDIRis passed.
No it does not assume anything, it is just a default value. How can you find the directory based on RTE_KERNELDIR?
You can set kerneldir=something-else on the "make install" command line.
W dniu 17.12.2015 o 00:26, Thomas Monjalon pisze:
Quoted 7 lines
2015-12-16 15:14, Piotr Bartosiewicz:
Quoted 2 lines
A new 'make install' wrongly assumes that the output module name is always 'uname -r' even if
RTE_KERNELDIRis passed.No it does not assume anything, it is just a default value. How can you find the directory based on
RTE_KERNELDIR?You can set kerneldir=something-else on the "make install" command line.
OK, I understand kerneldir in general can't be guessed from RTE_KERNELDIR, but maybe there should be some hint in docs to pass kerneldir when RTE_KERNELDIR is used.
In my case the working command is:
make install T=... DESTDIR=... RTE_KERNELDIR=/lib/modules/3.16.0-4-amd64/build kerneldir=/lib/modules/3.16.0-4-amd64/extra/dpdk
Thanks
2015-12-17 12:11, Piotr Bartosiewicz:
Quoted 4 lines
W dniu 17.12.2015 o 00:26, Thomas Monjalon pisze:
Quoted 3 lines
2015-12-16 15:14, Piotr Bartosiewicz:
Quoted 2 lines
A new 'make install' wrongly assumes that the output module name is always 'uname -r' even if
RTE_KERNELDIRis passed.
Quoted 8 lines
Quoted 4 lines
No it does not assume anything, it is just a default value. How can you find the directory based on
RTE_KERNELDIR?You can set kerneldir=something-else on the "make install" command line.
OK, I understand kerneldir in general can't be guessed from
RTE_KERNELDIR, but maybe there should be some hint in docs to pass kerneldir whenRTE_KERNELDIRis used.
Yes you are right, it can be better documented.
Quoted 4 lines
In my case the working command is:
make install T=... DESTDIR=...
RTE_KERNELDIR=/lib/modules/3.16.0-4-amd64/build
kerneldir=/lib/modules/3.16.0-4-amd64/extra/dpdk
Please, feel free to update the doc.
Thanks