If you have not read #96854, please do so now.

With that in mind, here's the following patch. IMHO this is the right
solution, the only other one I could think of is having
kernel-headers-2.4.4-i386-common, providing all except config-specific
files, and kernel-headers-2.4.4-$(flavour), providing flavour-specific
files, but that way still sucks, IMHO.

d

-- 
Daniel Stone
[EMAIL PROTECTED]
--- rules.crap  Sun Apr 22 11:50:02 2001
+++ rules       Wed May  9 20:52:26 2001
@@ -30,22 +30,15 @@
        cp debian/changelog kernel-source-$(version)/debian
        cp debian/control kernel-source-$(version)/debian
        > kernel-source-$(version)/debian/official
-       for i in $(flavours); do \
-               cp -al kernel-source-$(version) build-$$i; \
-               cp config/$$i build-$$i/.config; \
-               cd build-$$i; \
-               cd ..; \
-       done
        cp config/default kernel-source-$(version)/.config
 
        touch unpack-stamp
 
 build: build-stamp
 build-stamp: unpack-stamp
-       for i in $(flavours); do \
-               cd build-$$i; \
-               make-kpkg --flavour $$i build; \
-               cd ..; \
+       cd kernel-source-$(version); \
+       make-kpkg  build; \
+       cd ..; \
        done
 
        touch build-stamp
@@ -70,15 +63,9 @@
        cd kernel-source-$(version); \
                make-kpkg kernel-headers
        mv kernel-source-$(version)/debian/files debian
-       for i in $(flavours); do \
-               cp -al build-$$i install-$$i; \
-               cd install-$$i; \
-               make-kpkg --flavour $$i kernel-headers; \
-               make-kpkg --flavour $$i --initrd kernel-image; \
-               cd ..; \
-               cat install-$$i/debian/files >> debian/files; \
-               rm -rf install-$$i; \
-       done
+       make-kpkg --initrd kernel-image; \
+       cd ..; \
+       cat kernel-source-$(version)/debian/files >> debian/files; \
        mv *.deb ..
 
 binary: binary-indep binary-arch

Reply via email to