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. :)
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/ b60a804fa227561 5c88367bc68e4ba d0
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 basic/fixdep
scripts/mod/modpost
scripts/
"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 selinux/ include/ initial_ sid_to_ string. h tools/be_ byteshift. h tools/le_ byteshift. h
security/
tools/include/
tools/include/
So I download those first too.
If any of that process could be eliminated, it would be appreciated. :)