Changes between Version 14 and Version 15 of Linux/Ubuntu/Kernel/BuildDebianDKMSPackages


Ignore:
Timestamp:
23/07/08 10:18:15 (9 years ago)
Author:
tj
Comment:

--

Legend:

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

    v14 v15  
    1515 
    1616== Preparing the Debian Package == 
    17  
    18 The DKMs tools provide a method for creating a debian package using the '''mkdeb''' command. I've not tested this method yet but will shortly and I'll document my experiences here. e.g.: 
    19 {{{ 
    20 $ dkms mkdeb --source-only 
    21 }}} 
    2217 
    2318=== The Original Source === 
     
    10398'''Alert:''' Knowing about this nested build will be very important later when defining the DKMS make options in `dkms.conf`. It is important in `dkms.conf` to ensure that the prerequisites (in this case, usbcam/) are built '''''before''''' the main driver. 
    10499=== Create Initial Debian Files === 
    105  
     100==== DKMS Mkdeb ===== 
     101The DKMs tools provide a method for creating a debian package using the '''mkdeb''' command. I've not tested this method yet but will shortly and I'll document my experiences here. e.g.: 
     102{{{ 
     103$ dkms mkdeb --source-only 
     104}}} 
     105'''Note:''' This will do a similar job to `dh_make` (described in detail next) but will install files tailored for DKMS use. You can use either method to create the initial debian files. 
     106==== Debhelper Dh_make ==== 
    106107Use the debhelper tool to create a GPL-ed CDBS (Common Debian Build System) package. I use CDBS because `debian/rules` is simple and it handles patching easily too: 
    107108{{{