I am trying to create a deb package for this module. I can successfully create the package, but I get this compilation error when trying to install it:
Based on -I/include/uapi in the gcc command, I believe that the failure is because PROJECT_DIR is unset in net/can/Makefile. Presumably this is because the kernel's Makefile does not propagate PROJECT_DIR during the second-pass invocation of can-isotp's top-level Makefile...?
The package installs correctly if I change net/can/Makefile to use this instead:
ccflags-y += -I$(M)/include/uapi
However, I am unfamiliar with best practices so I'm not sure whether this is the best fix. Suggestions?
I am trying to create a
deb
package for this module. I can successfully create the package, but I get this compilation error when trying to install it:Based on
-I/include/uapi
in thegcc
command, I believe that the failure is becausePROJECT_DIR
is unset innet/can/Makefile
. Presumably this is because the kernel'sMakefile
does not propagatePROJECT_DIR
during the second-pass invocation ofcan-isotp
's top-levelMakefile
...?The package installs correctly if I change
net/can/Makefile
to use this instead:However, I am unfamiliar with best practices so I'm not sure whether this is the best fix. Suggestions?