Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Way to build all the kernel modules [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
er76
Tux's lil' helper
Tux's lil' helper


Joined: 13 Mar 2005
Posts: 86
Location: Knoxville, TN USA

PostPosted: Sun May 21, 2006 2:14 am    Post subject: Way to build all the kernel modules [Solved] Reply with quote

Is there a way to build all of the kernel modules or enable all of the options in the kernel?

Last edited by er76 on Sun May 21, 2006 3:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ast0r
Guru
Guru


Joined: 11 Apr 2006
Posts: 404
Location: Dallas, Tx - USA

PostPosted: Sun May 21, 2006 2:27 am    Post subject: Reply with quote

Some options are mutually exclusive, so it's not possible to enable all of them and have a working system.

However, if you don't want a custom kernel, then use genkernel. That should give you all of the kernel modules.
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sun May 21, 2006 8:55 am    Post subject: Reply with quote

make allmodconfig
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Sun May 21, 2006 10:10 am    Post subject: Reply with quote

make help will show you all the useful make targets for your kernel.

Here's mine:

Code:

# uname -r
2.6.16-gentoo-r7-v6
#
#
# make help
Cleaning targets:
  clean           - remove most generated files but keep the config
  mrproper        - remove all generated files + config + various backup files

Configuration targets:
  config          - Update current config utilising a line-oriented program
  menuconfig      - Update current config utilising a menu based program
  xconfig         - Update current config utilising a QT based front-end
  gconfig         - Update current config utilising a GTK based front-end
  oldconfig       - Update current config utilising a provided .config as base
  randconfig      - New config with random answer to all options
  defconfig       - New config with default answer to all options
  allmodconfig    - New config selecting modules when possible
  allyesconfig    - New config where all options are accepted with yes
  allnoconfig     - New minimal config

Other generic targets:
  all             - Build all targets marked with [*]
* vmlinux         - Build the bare kernel
* modules         - Build all modules
  modules_install - Install all modules to INSTALL_MOD_PATH (default: /)
  dir/            - Build all files in dir and below
  dir/file.[ois]  - Build specified target only
  dir/file.ko     - Build module including final link
  rpm             - Build a kernel as an RPM package
  tags/TAGS       - Generate tags file for editors
  cscope          - Generate cscope index
  kernelrelease   - Output the release version string
  kernelversion   - Output the version stored in Makefile

Static analysers
  buildcheck      - List dangling references to vmlinux discarded sections
                    and init sections from non-init sections
  checkstack      - Generate a list of stack hogs
  namespacecheck  - Name space analysis on compiled kernel

Kernel packaging:
  rpm-pkg         - Build the kernel as an RPM package
  binrpm-pkg      - Build an rpm package containing the compiled kernel
                    and modules
  deb-pkg         - Build the kernel as an deb package
  tar-pkg         - Build the kernel as an uncompressed tarball
  targz-pkg       - Build the kernel as a gzip compressed tarball
  tarbz2-pkg      - Build the kernel as a bzip2 compressed tarball

Documentation targets:
  Linux kernel internal documentation in different formats:
  xmldocs (XML DocBook), psdocs (Postscript), pdfdocs (PDF)
  htmldocs (HTML), mandocs (man pages, use installmandocs to install)

Architecture specific targets (x86_64):
* bzImage       - Compressed kernel image (arch/x86_64/boot/bzImage)
  install       - Install kernel using
                  (your) ~/bin/installkernel or
                  (distribution) /sbin/installkernel or
                  install to $(INSTALL_PATH) and run lilo

  make V=0|1 [targets] 0 => quiet build (default), 1 => verbose build
  make O=dir [targets] Locate all output files in "dir", including .config
  make C=1   [targets] Check all c source with $CHECK (sparse)
  make C=2   [targets] Force check of all c source with $CHECK (sparse)

Execute "make" or "make all" to build all targets marked with [*]
For further info see the ./README file



troymc
Back to top
View user's profile Send private message
AaronPPC
Guru
Guru


Joined: 29 May 2005
Posts: 522
Location: Tucson, AZ

PostPosted: Sun May 21, 2006 8:30 pm    Post subject: Reply with quote

This caught my eye:
Code:
randconfig      - New config with random answer to all options

How is that useful?
_________________
--Aaron
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sun May 21, 2006 8:48 pm    Post subject: Reply with quote

AaronPPC wrote:
This caught my eye:
Code:
randconfig      - New config with random answer to all options

How is that useful?


was actually wondering the same thing :roll:
Back to top
View user's profile Send private message
dsd
Developer
Developer


Joined: 30 Mar 2003
Posts: 2162
Location: nr London

PostPosted: Sun May 21, 2006 10:11 pm    Post subject: Reply with quote

for testing that dependencies between kernel components are explicitly stated in the kernel source (otherwise you can produce a compile/link failure just by selecting 'invalid' option combinations in menuconfig)

as an example, every USB driver must depend on USB support, otherwise it will not compile.

(that was an easy one, but there are some quite complicated relationships, and randconfig helps to point them out)
_________________
http://dev.gentoo.org/~dsd
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum