Comment 8 for bug 1665447

Revision history for this message
satmandu (satadru-umich) wrote :

I know that these mainline builds are unsupported in any way, but there have been some efforts to quickly patch this problem for cross-compiling.

Examples: https://bugs.launchpad.net/ubuntu/+source/linux-ti-omap4/+bug/666267/comments/16

Also, I wrote up a quick hacky post-install script to workaround this issue, which works for arm64 mainline builds, here:

https://gist.github.com/satmandu/b60a804fa2275615c88367bc68e4bad0

As a quick summary of the problem, it appears that these files are needed in the target architecture to build modules, but are in the cross-compile host architecture:

scripts/recordmcount
scripts/mod/modpost
scripts/basic/fixdep

"make scripts" does everything except make modpost, so I use "make modules_prepare" which errors out, but does make everything one needs.

Oh, and unfortunately the packaging scripts seem to leave out these header files which are needed for the aforementioned compile process:

security/selinux/include/classmap.h
security/selinux/include/initial_sid_to_string.h
tools/include/tools/be_byteshift.h
tools/include/tools/le_byteshift.h

So I download those first too.

If any of that process could be eliminated, it would be appreciated. :)