Changes between Version 2 and Version 3 of Linux/Ubuntu/Kernel/BuildDebianDKMSPackages


Ignore:
Timestamp:
22/07/08 22:46:13 (9 years ago)
Author:
tj
Comment:

--

Legend:

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

    v2 v3  
    125125BUILT_MODULE_LOCATION[0]="usbcam/" 
    126126DEST_MODULE_LOCATION[0]="/kernel/../extra/usbcam/" 
    127 MAKE[0]="make KVER=$kernelver src=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/usbcam" 
    128127BUILT_MODULE_NAME[1]="r5u870" 
    129128DEST_MODULE_LOCATION[1]="/kernel/../extra/" 
     
    139138Because `usbcam` is in a sub-directory this is reflected with '''BUILT_MODULE_LOCATION[0]'''. Both modules have a '''DEST_MODULE_LOCATION[...]''' that defines where the package's own `Makefile` `install` target would install them (/lib/modules/<kernel-version>/extra in this case). 
    140139 
    141 The '''MAKE[...]''' directives define the make command and options and accompanying Makefile variables to set. In this case '''KVER''' and '''src''' are set so that the current Makefile variable assignments will operate correctly. DKMS provides and sets the variables '''$kernelver''' and '''$dkms_tree''' to enable the `Makefile` to figure out the correct locations, if necessary. 
     140The '''MAKE[1]''' directive defines the make command and options and accompanying Makefile variables to set. In this case '''KVER''' and '''src''' are set so that the current Makefile variable assignments will operate correctly. DKMS provides and sets the variables '''$kernelver''' and '''$dkms_tree''' to enable the `Makefile` to figure out the correct locations, if necessary. 
    142141 
    143142=== Customise Debian Files === 
     
    445444There are a lot of relatively minor configuration issues that can lead to DKMS failing to build the package. If there are problems with failed DKMS builds and the `make.log` is almost empty of useful information add the `make` debug option (-d) to the dkms.conf MAKE="" configurations. That'll ensure `make` reports everything it is doing to the log-file - essential when builds mysteriously fail with DKMS: 
    446445{{{ 
    447 MAKE[0]="make -d KVER=$kernelver src=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build/usbcam" 
    448446MAKE[1]="make -d KVER=$kernelver src=${dkms_tree}/${PACKAGE_NAME}/${PACKAGE_VERSION}/build" 
    449447}}}