Re: [PATCH 0/5] kbuild

Sam Ravnborg
2004-06-16T19:39:45Z

What about this much simpler approach?

One extra assignment for each architecture added to get access to the
kernel image (at least the default one) for that architecture.

The sole purpose for this is to pass info what
kernel image should be included in a deb, rpm or tar.gz package.

Sam

===== arch/arm/Makefile 1.66 vs edited =====
--- 1.66/arch/arm/Makefile 2004-05-12 23:55:05 +02:00
+++ edited/arch/arm/Makefile 2004-06-16 21:47:11 +02:00
@@ -130,6 +130,7 @@
all: zImage

boot := arch/arm/boot
+KERNEL_IMAGE := $(boot)/zImage

# Update machine arch and proc symlinks if something which affects
# them changed. We use .arch to indicate when they were updated
===== arch/i386/Makefile 1.68 vs edited =====
--- 1.68/arch/i386/Makefile 2004-06-01 00:18:41 +02:00
+++ edited/arch/i386/Makefile 2004-06-16 21:43:50 +02:00
@@ -120,6 +120,7 @@
zdisk bzdisk fdimage fdimage144 fdimage288 install

all: bzImage
+KERNEL_IMAGE := $(boot)/bzImage

BOOTIMAGE=arch/i386/boot/bzImage
zImage zlilo zdisk: BOOTIMAGE=arch/i386/boot/zImage
===== arch/ppc/Makefile 1.50 vs edited =====
--- 1.50/arch/ppc/Makefile 2004-06-09 10:52:22 +02:00
+++ edited/arch/ppc/Makefile 2004-06-16 21:44:01 +02:00
@@ -49,6 +49,7 @@
.PHONY: $(BOOT_TARGETS)

all: zImage
+KERNEL_IMAGE := arch/ppc/boot/images/zImage

AFLAGS_vmlinux.lds.o := -Upowerpc