Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick kernel rebuild after changing .config file #34

Open
giuliomoro opened this issue Nov 29, 2016 · 4 comments
Open

Quick kernel rebuild after changing .config file #34

giuliomoro opened this issue Nov 29, 2016 · 4 comments

Comments

@giuliomoro
Copy link

I am experimenting with some modules being built into the kernel or as loadable modules. The only way I manage to avoid linking errors after changing the config file is to run the build_kernel.sh command again, which cleans all the existing object files and therefore the build takes long.

Is there a quicker way to rebuild the kernel when changing the config file?

@RobertCNelson
Copy link
Owner

There is: ;)

./tools/rebuild.sh

Regards,

@giuliomoro
Copy link
Author

Thanks, that's what I usually use, but I see that if, e.g.: I change a module from "y" to "m", I get a linker error when using ./tools/rebuild.sh

@RobertCNelson
Copy link
Owner

RobertCNelson commented Nov 29, 2016

Oh, that just sounds like bad luck as you triggered a bug in the specific module. Kernel developers run random_defconfig from time to time, but they don't catch every possibility..

Regards,

@giuliomoro
Copy link
Author

alas, is there any quick fix for these cases?
For instance, when I disable SND_SOC I then get

drivers/built-in.o: In function `nxp_hdmi_codec_remove':
:(.text+0x5aa2c): undefined reference to `snd_soc_unregister_codec'
drivers/built-in.o: In function `nxp_hdmi_codec_probe':
:(.text+0x5aa42): undefined reference to `snd_soc_register_codec'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants