Workaround for Linux kernel not to compile into modules

Source: Internet
Author: User

When doing the drive, often want to compile into a module, let the post-load to use, so flexibility, no need to recompile the kernel.

Then, when using a vendor-supplied kernel, it is often impossible to compile into a kernel. That is, the macro is set to Y, the kernel is not a problem to compile, but set to m compiled into a module but not. Check a lot of places are not, in fact, the problem is very simple, but on this simple question, made me a day, really hurt Ah, here to do a record to remember.


The workaround is simple to see if the modules parameter is added when executing kernel make, as in the following form:

Make-c $ (Kdir) m=$ (PWD) modules Arch=arm cross_compile=arm-cortex_a9-linux-gnueabi-


If not compile, is not found modules this parameter? Added problem solving.





Workaround for Linux kernel not to compile into modules

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.