My goal is just to be able to build a single driver/module for testing./debugging, without having to go through the entire kernel package build process each time.
I do not care whether I am building the driver on the target on on an x86 host.
I had hope that just installing the kernel headers on the target was sufficient
When that did not work I tried to copy the bb-kernel/KERNEL tree into /usr/src/linux-… on the target.
and do a
make scripts
there.
but when I tried to build a driver on the target I got a file format error when make tried to execute modpost.
I can not seem to figure out how to get an arm version of modpost to build.
I am now trying to get build_debs.sh to run on the target.
But I may grow old and die before that finishes.
Do you have any suggestions as to an easier way to get the environment needed to build a single driver ?
apt install linux-headers-5.1.0-rc3-bone0
Reading package lists… Done
Building dependency tree
Reading state information… Done
linux-headers-5.1.0-rc3-bone0 is already the newest version (1xross).
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
When I do
apt install --reinstall linux-headers-5.1.0-rc3-bone0
Reading package lists… Done
Building dependency tree
Reading state information… Done
Reinstallation of linux-headers-5.1.0-rc3-bone0 is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 27 not upgraded.
And if I use the package in bb-kernel/deploy, Then I am back with my mixed arm/x86 binaries.