Re: [PATCH-RFC] ARM Makefile cleanup

Russell King (rmk@arm.linux.org.uk)
Mon, 4 Nov 2002 21:26:36 +0000


On Sat, Nov 02, 2002 at 11:55:31PM +0100, Sam Ravnborg wrote:
> They looked pretty OK before, but I have updated then to use the new
> make clean infrastructure, and deleted inclusion of Rules.make when I
> touched a file that included that file.

Unfortunately it breaks:

Generating build number
Generating include/linux/compile.h (updated)
arm-linux-gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -mno-sched-prolog -fno-strict-aliasing -fno-common -mapcs-32 -D__LINUX_ARM_ARCH__=4 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes -msoft-float -Wa,-mno-fpu -nostdinc -iwithprefix include -DKBUILD_BASENAME=version -c -o init/version.o init/version.c
arm-linux-ld -r -o init/built-in.o init/main.o init/version.o init/do_mounts.o init/initramfs.o
arm-linux-ld -p -X -T arch/arm/vmlinux.lds.s arch/arm/kernel/head.o arch/arm/kernel/init_task.o init/built-in.o --start-group usr/built-in.o arch/arm/mach-sa1100/built-in.o arch/arm/kernel/built-in.o arch/arm/mm/built-in.o arch/arm/nwfpe/built-in.o kernel/built-in.o mm/built-in.o fs/built-in.o ipc/built-in.o security/built-in.o crypto/built-in.o lib/lib.a arch/arm/lib/lib.a drivers/built-in.o sound/built-in.o net/built-in.o --end-group -o vmlinux
make -f scripts/Makefile.build obj=arch/arm/boot arch/arm/boot/zImage
make -f scripts/Makefile.build obj=arch/arm/boot/compressed/ arch/arm/boot/compressed/vmlinux
make[2]: Nothing to be done for `arch/arm/boot/compressed/vmlinux'.
arm-linux-objcopy -O binary -R .note -R .comment -S arch/arm/boot/compressed/vmlinux arch/arm/boot/zImage

I did a make clean without telling make ARCH=arm just prior, so
arch/arm/boot/compressed contains some stale files. It looks like
there's a missing dependency on the top level vmlinux file:

-rwxrwxr-x 1 rmk rmk 1822788 Nov 4 15:37 arch/arm/boot/compressed/piggy
-rwxrwxr-x 1 rmk rmk 2283887 Nov 4 21:18 vmlinux

but oddly, arch/arm/boot/compressed/Makefile contains:

$(obj)/piggy: vmlinux; $(call if_changed,objcopy)

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/