Changes between Version 10 and Version 11 of Linux/Ubuntu/Kernel/CustomBuild


Ignore:
Timestamp:
12/07/08 00:22:48 (9 years ago)
Author:
tj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Linux/Ubuntu/Kernel/CustomBuild

    v10 v11  
    4444sudo update-grub 
    4545}}} 
     46 
     47== Update: Automation == 
     48 
     49I have revised and improved the original script and called the new one [http://tjworld.net/attachment/wiki/Linux/Ubuntu/Kernel/CustomBuild oot-build-install.sh] (Out Of Tree Build Install). Now, from a common base directory the script is launched with a couple of variables preset and the final result is a new kernel installed and ready to boot. For example: 
     50{{{ 
     51CONFIG="CURRENT" DISTRO="ubuntu-hardy" ./oot-build-install.sh 
     52}}} 
     53The script will generate a system-beep at the point it asks permission to run the installation functions via sudo. 
     54 
     55Setting CONFIG to CURRENT tells the script to use the existing .config file rather than copy a new one in or generate one using the default ubuntu configs and `make oldconfig`. 
     56 
     57DISTRO tells the script which sub-directory from the base-directory to work in. In my development environment I have: 
     58{{{ 
     59/home/all/SourceCode/linux/ 
     60                           builds/ 
     61                           linux-2.6/ 
     62                           pci-2.6/ 
     63                           ubuntu-feisty/ 
     64                           ubuntu-gutsy/ 
     65                           ubuntu-gutsy-lum/ 
     66                           ubuntu-hardy/ 
     67                           ubuntu-hardy-lum/ 
     68                           ubuntu-intrepid/ 
     69}}} 
     70The script is in .../linux/ and so setting DISTRO to a sub-directory name sets everything up. The out-of-tree builds are done in .../linux/builds/${DISTRO}/ 
     71 
     72Once built the modules are installed, firmware links created, kernel files copied to /boot/, the initrd image created and finally the grub menu updated. The generated version will be a mainline kernel one, not Ubuntu, so for the hardy tree instead of `2.6.24-20-generic` it will use `2.6.24.3`. 
     73Read the script source comments for more details of the options. 
     74