Pavel Roskin
2008-07-29 02:04:44 UTC
Hello!
Just to preempt possible questions, my fix for the Configure script was
wrong. I assumed that scripts/make.opts was missing from the
repository, but it turns out that it should be generated by the kernel
build system. It works for kernels configured in the source tree, but
but fails for kernels configured in a separate directory:
/home/proski/src/lwlan/scripts/Makefile.get_options:7: warning:
overriding commands for target `get_version_target'
Makefile:24: warning: ignoring old commands for target
`get_version_target'
make[3]: *** No rule to make target `get_version_target'. Stop.
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [get_options] Error 2
./Configure: line 246: scripts/make.opts: No such file or directory
So I guess a better fix would be to fix the existing code if it's
fixable. But I cannot think of anything that would not be very
intrusive and likely to break. Unfortunately, the build system tries to
extract several variables from the kernel, such as CROSS_COMPILE, so
changing the build system could break some existing setups that depend
on it.
Just to preempt possible questions, my fix for the Configure script was
wrong. I assumed that scripts/make.opts was missing from the
repository, but it turns out that it should be generated by the kernel
build system. It works for kernels configured in the source tree, but
but fails for kernels configured in a separate directory:
/home/proski/src/lwlan/scripts/Makefile.get_options:7: warning:
overriding commands for target `get_version_target'
Makefile:24: warning: ignoring old commands for target
`get_version_target'
make[3]: *** No rule to make target `get_version_target'. Stop.
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make: *** [get_options] Error 2
./Configure: line 246: scripts/make.opts: No such file or directory
So I guess a better fix would be to fix the existing code if it's
fixable. But I cannot think of anything that would not be very
intrusive and likely to break. Unfortunately, the build system tries to
extract several variables from the kernel, such as CROSS_COMPILE, so
changing the build system could break some existing setups that depend
on it.
--
Regards,
Pavel Roskin
Regards,
Pavel Roskin