~ubuntu-branches/ubuntu/quantal/linux-lowlatency/quantal-proposed

« back to all changes in this revision

Viewing changes to debian/rules.d/5-udebs.mk

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Do udebs if not disabled in the arch-specific makefile
 
2
binary-udebs: binary-debs
 
3
ifeq ($(disable_d_i),)
 
4
        @$(MAKE) --no-print-directory -f $(DROOT)/rules DEBIAN=$(DEBIAN) \
 
5
                do-binary-udebs
 
6
endif
 
7
 
 
8
do-binary-udebs: debian/control
 
9
        dh_testdir
 
10
        dh_testroot
 
11
 
 
12
        # unpack the kernels into a temporary directory
 
13
        mkdir -p debian/d-i-${arch}
 
14
 
 
15
        imagelist=$$(cat $(builddir)/kernel-versions | grep ^${arch} | awk '{print $$4}') && \
 
16
        for i in $$imagelist; do \
 
17
          dpkg -x $$(ls ../linux-image-$$i\_$(release)-$(revision)_${arch}.deb) \
 
18
                debian/d-i-${arch}; \
 
19
          /sbin/depmod -b debian/d-i-${arch} $$i; \
 
20
        done
 
21
 
 
22
        # kernel-wedge will error if no modules unless this is touched
 
23
        touch $(CURDIR)/debian/build/no-modules
 
24
 
 
25
        touch ignore-dups
 
26
        export SOURCEDIR=$(CURDIR)/debian/d-i-${arch} && \
 
27
          cd $(builddir) && \
 
28
          kernel-wedge install-files && \
 
29
          kernel-wedge check
 
30
 
 
31
        # Build just the udebs
 
32
        dilist=$$(dh_listpackages -s | grep "\-di$$") && \
 
33
        [ -z "$dilist" ] || \
 
34
        for i in $$dilist; do \
 
35
          dh_fixperms -p$$i; \
 
36
          $(lockme) dh_gencontrol -p$$i; \
 
37
          dh_builddeb -p$$i; \
 
38
        done