Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8236293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T19:05:34+00:00 2026-06-07T19:05:34+00:00

I have written a Linux kernel module, which I included in a kernel downloaded

  • 0

I have written a Linux kernel module, which I included in a kernel downloaded from kernel.org. I modified the Kconfig file of the directory where my module will be to include it in the configuration menu.

But when I run make menuconfig, I can only select it as built-in, I can’t make it run as a module. What determines if a program is intended to be only built-in or only module or both?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T19:05:35+00:00Added an answer on June 7, 2026 at 7:05 pm

    I already figured out how to do it.

    For a kernel program to be compiled “module only” it must be depending on “m”. By example:

    config FOO
        depends on m
    

    This will limit FOO to be module (=m) or disabled (=n).

    For more information:
    http://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have written a Linux kernel-module to act as an FPGA driver for a
I have written an application which collects windows logs from linux, via the Zenoss
I have written a sample hello.ko kernel module: #include <linux/module.h> /* Needed by all
I have written a server daemon (Linux, Ubuntu) which communicates with PHP as frontend
I have written some code which compiles fine under linux but on Solaris I
I'm writing my first Linux kernel module, which actually is a RAM disk driver
I have written a linux daemon that will be (and must be) running as
I have a small linux vps. I have written a Java client application, which
I have written this Kernel Module and everytime I load it, it crashes the
Ok so I have written a .sh file in Linux Ubuntu and it works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.