Thread (14 messages) 14 messages, 3 authors, 2018-03-30

Re: [PATCH] mk: fix kernel modules build dependency

From: Thomas Monjalon <hidden>
Date: 2018-03-29 16:43:39

29/03/2018 18:38, Ferruh Yigit:
On 3/29/2018 5:32 PM, Thomas Monjalon wrote:
quoted
29/03/2018 17:48, Ferruh Yigit:
quoted
On 3/29/2018 4:39 PM, Thomas Monjalon wrote:
quoted
Some kernel modules may need some header files to be "installed"
in the build directory.

When running multiple threads of make, kernel modules can try to
be compiled before the lib headers are ready:
	make -j3
	kernel/linux/kni/kni_misc.c:19:37: fatal error:
		exec-env/rte_kni_common.h: No such file or directory
Is there a reason to keep header in eal when module itself moved into kernel?
It seems you missed my comment below:

On a related note, this header file
        lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
could be moved to lib/librte_kni/
Opinion?
Ahh, yes we are saying same thing.
But not sure if it should go under lib/librte_kni/ or kernel/linux/kni/?
I lean to kernel/linux/kni/.
Why in kernel/?

Logically, kernel/ depends on lib/ but not the reverse.

And regarding the licensing, we avoid BSD files in Linux modules.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help