To work around this issue where cros_workon_make ends up with a
different magic version number compared to when build_packages builds
kernel-next, I built kernel-next using emerge with the noclean option.
FEATURES=noclean emerge-x86-generic sys-kernel/chromeos-kernel-next
Then I built my kernel modules using the following for the kernel
headers:
/build/x86-generic/tmp/portage/sys-kernel/chromeos-kernel-next-9999/
work/chromeos-kernel-next-9999/
Now my kernel and module use the magic version number '2.6.37 SMP
mod_unload 686'. It seems like a bug that build_packages and emerge
have simply 2.6.37 for the kernel version. I don't know a lot about
emerge, so I wasn't able to figure out how to change things so the
version number would be (what I think is correct)
'2.6.37-23101.gc987f16 SMP mod_unload 686', which is what
cros_workon_make generates while building sys-kernel/chromeos-kernel-
next.