Sponsored Content
Full Discussion: develop a new kernel
Top Forums Shell Programming and Scripting develop a new kernel Post 35072 by LivinFree on Thursday 27th of March 2003 12:36:56 AM
Old 03-27-2003
Please thoroughly read the README file in the /usr/src/linux* directory the source is in. It outlines the steps very clearly. Notably, you forgot to make and install modules, which you'll most likely want to do if you want a usable kernel (assuming it's not for an embedded kernel). Make sure to look at the output of make to make sure you don't get an error building the kernel. A common one I used to get when building the compressed image was that the kernel was too big to be bootable.
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix develop environment

hi! i am Carlos i study @ UABC (Autonomy University of Baja California)... i have a final project.... i need to make a presentation of the new... unix develop environment... but... i have some problems with that.... could you tell me something to help me? (0 Replies)
Discussion started by: Nx GT-R
0 Replies

2. Programming

How to Develop a 2 IPC system calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

3. Shell Programming and Scripting

Develop 2 IPC System Calls

I need to develop 2 IPC system calls. 1) The first one allows sender to send a message to set of receivers in a single call. 2) The second one allows receiver to receives all message that have been sent to it in a single call Please help me in developing this system calls ....atleast how... (1 Reply)
Discussion started by: Anki
1 Replies

4. UNIX for Dummies Questions & Answers

How to develop C program using UNIX command

hai friend, I am new to linux... I have to develop C program using unix command and i know the SYSTEM command.. But i need other then SYSTEM comand, plz send me the sample code.... Thank you.. sundar (1 Reply)
Discussion started by: sundar.lsr
1 Replies

5. Shell Programming and Scripting

Develop Program with 'None Interactive Flag'

Hi I have created a program but am currently wondering how to develop it further. I wanted to know how i would go about developing the program further so that it is able to run with a "none interactive flag" enabling execution to be automated with the resultant file e-mailed to a user once a week.... (1 Reply)
Discussion started by: warlock129
1 Replies

6. UNIX for Dummies Questions & Answers

Help to develop a new application

Hi all, I am a beginner in advanced unix and just i finished my course in that so now I want to develop an application using advanced unix concepts and middleware technology, so that i can gain an initial working knowledge. Kindly give me a suggestion of what i can develop. (5 Replies)
Discussion started by: jimmyuk
5 Replies

7. Programming

Please help me to develop algorithm

Hi guys , in my study book from which I re-learn C is task to generate all possible characters combination from numbers entered by the user. I know this algorithm must use combinatorics to calculate all permutations. Problem is how to implement algortihm. // This program reads the four numbers... (0 Replies)
Discussion started by: solaris_user
0 Replies

8. Shell Programming and Scripting

Help to Develop a LINUX macro?

Hi Experts, i would like to get your help to do some development to the below linux commands which i run under .cmd file in windows @echo off call f:\linuxutils\grep.exe "T11" f:\blocked_ranges\dump3.txt|f:\linuxutils\grep.exe ",9647800"|f:\linuxutils\grep.exe... (3 Replies)
Discussion started by: mustafa.abdulsa
3 Replies

9. Shell Programming and Scripting

I would like to have some exercises to develop my skills

Hi , I would like to do some exercises/scripts in order to develop my skills in shell scripts, can someone pass me some links/suggestions where i can find this? Thanks a lot :) (3 Replies)
Discussion started by: prpkrk
3 Replies
KERNEL-PKG.CONF(5)					      Debian GNU/Linux manual						KERNEL-PKG.CONF(5)

NAME
kernel-pkg.conf - configuration file for make-kpkg SYNOPSIS
/etc/kernel-pkg.conf or ~/.kernel-pkg.conf DESCRIPTION
The file /etc/kernel-pkg.conf or ~/.kernel-pkg.conf is actually a Makefile snippet included during the kernel packages build process, and hence you may put any legal Makefile directive in that file (just make very sure you know what you are doing). If the per user configura- tion file ~/.kernel-pkg.conf exists, it is loaded in favor of the system wide configuration file /etc/kernel-pkg.conf. All the variables have reasonable default values, and maybe overridden on a per run or a per individual basis by using environment vari- ables. Some of the variables can further be overridden by options to make-kpkg. At the moment, the user modifiable variables supported are: maintainer Local kernel (image, header, doc, etc.) package maintainer. Set up at package installation by the postinst. Can be overridden by the environment variable KPKG_MAINTAINER. Please note that any apostrophes "'" shall have to be quoted like so: maintainer = John O'''Brien. Yes, this is ugly, but this works. email The email address of that person. Set up at package installation by the postinst. Can be overridden by the environment variable KPKG_EMAIL. pgp A key-ID to use when signing packages. Usually passed along to dpkg-buildpackage using the -k option, and also third party modules in the KMAINT environment variable, if separate modules (like pcmcia, etc.) are being built in $MODULE_PATH. Can be overridden by the environment variable PGP_SIGNATURE, and is overridden (again) by the --pgpsign option of make-kpkg. Defaults to maintainer. (Optional) debian The version of the kernel packages, includes both the upstream version and the Debian revision. Can be overridden by the environment variable DEBIAN_REVISION, and is overridden (again) by the --revision option of make-kpkg. Defaults to <VERSION>-10.0.0.Custom (Optional) debian_revision_mandatory Normally unset. If this, or the environment variable DEBIAN_REVISION_MANDATORY are set, then not providing a Debian revision results in an error (and make-kpkg shall not provide a default value of 10.0.0.Custom) kimage The kernel image type (i.e. zImage or bzImage). Can be overridden from the environment variable IMAGE_TYPE, and is overridden (again) by the options --zimage or --bzimage of make-kpkg. Defaults to bzImage. (Optional) config_target What type of configure step to do. Defaults to oldconfig, which is good for non-interactive (or minimally interactive) runs. (ENV variable CONFIG_TARGET overrides this setting.) If the value of config_target is not recognized, then it is reset to oldconfig. use_saved_config This is an experts only variable. If set to NO (ENV variable USE_SAVED_CONFIG overrides this), the file .config.save in the top level directory is ignored. root_cmd This is a variable meant to be passed on to dpkg-buildpackage in the buildpackage target. This should be set to a means of gaining superuser access (for example, `sudo' or `fakeroot') as needed by dpkg-buildpackages' -r option. The environment variable ROOT_CMD overrides this. Use the environment variable UNSIGN_SOURCE to pass an option to dpkg-buildpackage to not sign the source; similarly, use the environment variable UNSIGN_CHANGELOG to pass an option to dpkg-buildpackage to not sign the changelog. Again, this variable is only useful for the buildpackage target. Set the environment variable ROOT_CMD if you just wish to build the kernel image, for instance. delete_build_link If set to YES, the symbolic link /lib/modules/$VERSION/build shall be removed from the resulting .deb package. The environment variable DELETE_BUILD_LINK overrides this. The default is unset. Note that this is case sensitive, yes shall not work. do_clean Set to YES, this causes a make clean to be run in the kernel source tree after building the kernel image package. The environment variable CLEAN_SOURCE overrides this. The default is unset. Note that this is case sensitive, yes shall not work. install_vmlinux Set to YES to install the uncompressed kernel ELF image along with the bootable compressed kernel image (vmlinuz). The default is unset. Note that this is case sensitive, yes shall not work. image_clean_hook Set to point to an executable, this shall cause that executable to run from the top level of the (temporary) kernel image tree before the kernel image is packaged. This has no effect on anything other than the image that is being packaged -- if the script operates on the current directory and its children, the original source tree should remain intact. This is to facilitate messaging of the kernel image that is packaged. source_clean_hook Set to point to an executable, this shall cause that executable to run from the top level of the (temporary) kernel source tree before the sources are packaged, ./debian/tmp-source/usr/src/kernel-source-X.X.XX. This has no effect on anything other than the sources that are being packaged -- if the script operates on the current directory and its children, the original source tree should remain intact. This is to facilitate messaging of the kernel sources that are packaged (for example, to remove version control directories, or to prune away unwanted architectures). header_clean_hook Set to point to an executable, this shall cause that executable to run from the top level of the kernel headers before the headers are packaged. This has no effect on anything other than the sources that are being packaged -- if the script operates on the current directory and its children, the original source tree should remain intact. This is to facilitate messaging of the kernel headers that are packaged (for example, to remove version control directories, or to prune away unwanted architectures). doc_clean_hook Set to point to an executable, this shall cause that executable to run from the top of the documentation tree before kernel documen- tation is packaged. This has no effect on anything other than the documentation that is being packaged -- if the script operates on the current directory and its children, the original source tree should remain intact. This is to facilitate messaging of the kernel documentation that is packaged (for example, to remove version control directories, or to prune away unwanted architectures). extra_docs This variable should be set to the path of any extra documentation that should be installed in /usr/share/doc/kernel-image-X.X.XX/ directory. There is no checking for name conflicts, and the files are not compressed. Hence, if you want the files to be compressed, please precompress it and provide the path of the compressed file. The environment variable EXTRA_DOCS overrides this, and would most likely be how extra documentation is specified. kpkg_follow_symlinks_in_src This option is especially useful for people who use symlink farms to compile kernels. With this option, kernel-source and ker- nel-header packages shall not be just full of dangling symlinks, instead, the symbolic links shall be followed. Please note that any symbolic links in the kernel sources would be flattened as well. The environment variable KPKG_FOLLOW_SYMLINKS_IN_SRC overrides this. The default is unset. make_libc_headers This is meant to be used by the libc6 maintainer, when he compiles libc6, to also package up the corresponding headers. DO NOT SET THIS unless you know what you are doing, since a mismatch between the headers you package and libc6 may well create a subtle insta- bility in all code compiled on your machine. You have been warned. The environment variable MAKE_LIBC_HEADERS overrides this. The default is unset. CONCURRENCY_LEVEL If defined, this variable sets the concurrency level of make used to compile the kernel and the modules set using -j flags to the sub make in the build target of make-kpkg. Should be a (small) integer, if used. ARCH_IN_NAME If defined, this variable causes make-kpkg to use an extended name for the kernel image package by embedding the subarchitecture in the image name, so one could write a script to create multiple subarchitectures one after the other. Please note that only the package name is affected, not module locations etc. CONFDIR Set this variable, either in the environment or in the config file, to point to the location where the kernel config files are located. These are architecture specific .config files (look at /usr/share/kernel-package/Config for examples). This is useful for people who need to compile for several architectures. Defaults to /usr/share/kernel-package/Config IMAGEDIR If you want the image to be stored elsewhere than /boot set this variable to the dir where you want the image. This may be of help to loadlin users. Defaults to /boot. MODULE_LOC Set this variable, either in the environment or in the config file, to point to the location where the add-on modules are located. Defaults to /usr/src/modules The value of a variable can be set so: a) Defaults exist in the rules file. These are the values used if no customization is done. b) Variables can be set in the config file /etc/kernel-pkg.conf. These values override the defaults. c) Variables can also be set by setting a corresponding environment variable. These values override the config file and the defaults. d) Using make-kpkg options, or, if using the rules file directly, on command line # xxx/rules DEBIAN_REVISION=2.0a kernel_image This overrides all the above methods. FILES
The file described here is /etc/kernel-pkg.conf or ~/.kernel-pkg.conf. SEE ALSO
make(1), make-kpkg(1), kernel-img.conf(5), The GNU Make manual BUGS
There are no bugs. Any resemblance thereof is delirium. Really. AUTHOR
This manual page was written by Manoj Srivastava <srivasta@debian.org>, for the Debian GNU/Linux system. Debian Jan 7 1997 KERNEL-PKG.CONF(5)
All times are GMT -4. The time now is 02:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy