1
# Do udebs if not disabled in the arch-specific makefile
2
binary-udebs: binary-debs
4
@$(MAKE) --no-print-directory -f $(DROOT)/rules DEBIAN=$(DEBIAN) \
8
do-binary-udebs: debian/control
12
# unpack the kernels into a temporary directory
13
mkdir -p debian/d-i-${arch}
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) \
19
/sbin/depmod -b debian/d-i-${arch} $$i; \
22
# kernel-wedge will error if no modules unless this is touched
23
touch $(CURDIR)/debian/build/no-modules
26
export SOURCEDIR=$(CURDIR)/debian/d-i-${arch} && \
28
kernel-wedge install-files && \
31
# Build just the udebs
32
dilist=$$(dh_listpackages -s | grep "\-di$$") && \
34
for i in $$dilist; do \
36
$(lockme) dh_gencontrol -p$$i; \