Changeset 663 for branches


Ignore:
Timestamp:
Feb 23, 2015, 6:54:08 AM (5 years ago)
Author:
ehem
Message:

Various bits of cleanup of the linux-module-switch-source module.
Crucially, make the module packages depend on the associate kernel
package and add a postinst script to run depmod.

Location:
branches/contrib/debian/package-build/linux-module-switch-source/debian
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/debian/package-build/linux-module-switch-source/debian/changelog

    r607 r663  
     1linux-module-switch-source (0.1.1) unstable; urgency=low
     2
     3  * Dependency work.  Make resultant module packages depend on their associated
     4    kernel image.  Depend upon linux-patch-openwrt, this brings in the other
     5    build dependencies.
     6  * Cleanup.  Add the flag indicating we can do pure MIPS as well.  Swap many
     7    references to linux-module-switch-source to $(psource), less redundancy.
     8  * Move switch modules from misc module directory to drivers/net/phy
     9    directory.  This seems a better location.
     10  * Work on postinst script for automatically running `depmod` on module
     11    installation, rather than requiring it be manually run.  This is far less
     12    error prone than the previous situation.
     13
     14 -- Elliott Mitchell <ehem+debwrt@m5p.com>  Sun, 22 Feb 2015 20:25:53 -0800
     15
    116linux-module-switch-source (0.1) unstable; urgency=low
    217
  • branches/contrib/debian/package-build/linux-module-switch-source/debian/control

    r607 r663  
    88Package: linux-module-switch-source
    99Architecture: all
    10 Depends: ${misc:Depends}
    11 Recommends: linux-source
     10Depends: ${misc:Depends}, linux-patch-openwrt
    1211Description: Packaged source for the linux-module-switch kernel module.
    1312 Install this on the system you build the kernel for your WRT-type device on,
    1413 this should then make it easy to build the switch support module.
    1514
    16 Package: linux-module-switch-3.2.57-0.0.6-rt-n16
    17 Architecture: mipsel
    18 Provides: linux-module-switch
    19 Description: linux-module-switch modules for Linux (kernel 3.2.57-0.0.6-rt-n16).
    20  This package contains the set of loadable kernel modules for the
    21  <description>.
    22  .
    23  This package contains the compiled kernel modules for 3.2.57-0.0.6-rt-n16
    24  .
    25  If you have compiled your own kernel, you will most likely need to build
    26  your own linux-module-switch. The linux-module-switch-source package has been
    27  provided for use with the Debian's module-assistant or kernel-package
    28  utilities to produce a version of linux-module-switch for your kernel.
  • branches/contrib/debian/package-build/linux-module-switch-source/debian/control.modules.in

    r607 r663  
    1515
    1616Package: linux-module-switch-_KVERS_
    17 Architecture: mipsel
     17Architecture: mips mipsel
    1818Provides: linux-module-switch
     19Depends: linux-image-_KVERS_
    1920Description: linux-module-switch modules for Linux (kernel _KVERS_).
    2021 This package contains the set of loadable kernel modules for the
  • branches/contrib/debian/package-build/linux-module-switch-source/debian/rules

    r610 r663  
    7474        dh_testroot
    7575        dh_prep
    76         dh_installdirs -p $(PKGNAME) lib/modules/$(KVERS)/misc
     76        dh_installdirs -p $(PKGNAME) lib/modules/$(KVERS)/drivers/net/phy
    7777
    7878        # Build the module
     
    8080
    8181        # Install the module
    82         $(MAKE) -C src DESTDIR=$(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/misc install
     82        $(MAKE) -C src DESTDIR=$(CURDIR)/debian/$(PKGNAME)/lib/modules/$(KVERS)/drivers/net/phy install
    8383
    8484        dh_installdocs
     
    9393# this is crucial for dh_builddeb, but I suspect the other debhelper commands
    9494# *might* also need a clue we're not building the source package
    95 binary-modules: export DH_OPTIONS+=-Nlinux-module-switch-source
     95binary-modules: export DH_OPTIONS+=-N$(psource)
    9696
    9797build-indep: build-indep-stamp
     
    102102        # It's ok not to do anything here, if you don't need to build
    103103        #  anything for this package.
    104         #docbook-to-man debian/linux-module-switch-source.sgml > linux-module-switch-source.1
     104        #docbook-to-man debian/$(psource).sgml > $(psource).1
    105105
    106106        touch $@
     
    129129
    130130        # Copy only the driver source to the proper location
    131         #$(MAKE) DESTDIR=$(CURDIR)/debian/linux-module-switch-source source
     131        #$(MAKE) DESTDIR=$(CURDIR)/debian/$(psource) source
    132132
    133133        # Copy the needed debian/ pieces to the proper location
    134         cp debian/*modules.in* \
     134        cp debian/*modules.in* debian/*_KVERS_* \
    135135                debian/$(psource)/usr/src/modules/$(sname)/debian
    136         # If _KVERS_ files are needed in the future...
    137         # debian/*_KVERS_*
    138136        cp debian/rules debian/changelog debian/copyright debian/compat debian/control \
    139137                debian/$(psource)/usr/src/modules/$(sname)/debian/
     
    142140        cd debian/$(psource)/usr/src && tar c modules | bzip2 -9 > $(sname).tar.bz2 && rm -rf modules
    143141
    144         # Add here commands to install the package into debian/linux-module-switch-source.
     142        # Add here commands to install the package into debian/$(psource).
    145143
    146144        dh_install
Note: See TracChangeset for help on using the changeset viewer.