Re: [rock-user] Compilation of a static kernel
"Alan J.Wylie" <ebpxyvahk-gCrXjPrFnW/[email protected]> Sun, 30 Oct 2005 12:31:50 +0000
| Newsgroups | gmane.linux.distributions.rock.user |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 30 Oct 2005 10:37:16 +0100, Blacky <[email protected]> said: > I would like to create a static kernel. Are you trying to build a "kitchen sink" kernel, or a custom kernel for your particular hardware? I would strongly advise building a kernel containing just those selections that you need, especially if your are building it static. First, you need a working linux .config. If you want a static kernel, make sure that everything is "=y", and there are no "=m"s. To build a kernel with a custom .config, the best thing to do is to create a new target. 1) create a new directory in <rock root>/targets 2) create the following files in that directory build.sh this can simply contain the line . target/generic/build.sh config.in See <http://doc.rocklinux.org/wiki/CreatingTargets> make sure there it contains the line export ROCKCFGSET_PKG_LINUX_CUSTCONFIG='1' linux.cfg copy your linux .config here preconfig.in this contains a comment line describing the target - underscores in the comment are replaced with spaces when the line is displayed. Then run ./scripts/Config -cfg <name> and select your target in the "Target Distribution" section. then ./scripts/Build-Pkg -cfg <name> linux26 -- Alan J. Wylie http://www.wylie.me.uk/ "Perfection [in design] is achieved not when there is nothing left to add, but rather when there is nothing left to take away." -- Antoine de Saint-Exupery