PPC uImage build not reporting correctly
Sam,
Tom pointed me at you to look at a makefile issue with arch/ppc/boot/images/Makefile. When I do the following:
$ make uImage CHK include/linux/version.h make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CHK usr/initramfs_list UIMAGE arch/ppc/boot/images/uImage Image Name: Linux-2.6.12-rc3 Created: Fri May 6 10:19:28 2005 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 993322 Bytes = 970.04 kB = 0.95 MB Load Address: 0x00000000 Entry Point: 0x00000000 Image: arch/ppc/boot/images/uImage not made
The issue is that the file arch/ppc/boot/images/uImage does exit (the 'not made' is not correct).
$(obj)/uImage: $(obj)/vmlinux.gz
$(Q)rm -f $@
$(call if_changed,uimage)
@echo ' Image: $@' $(if $(wildcard $@),'is ready','not made')It seems the $(wildcard $@) expands at the start of the rule. Any ideas?
- kumar
Quoted 22 lines
Sam,
Tom pointed me at you to look at a makefile issue with
arch/ppc/boot/images/Makefile. When I do the following:$ make uImage CHK include/linux/version.h make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date. CHK include/linux/compile.h CHK usr/initramfs_list UIMAGE arch/ppc/boot/images/uImage Image Name: Linux-2.6.12-rc3 Created: Fri May 6 10:19:28 2005 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 993322 Bytes = 970.04 kB = 0.95 MB Load Address: 0x00000000 Entry Point: 0x00000000 Image: arch/ppc/boot/images/uImage not madeThe issue is that the file
arch/ppc/boot/images/uImagedoes exit (the 'not made' is not correct).
Quoted 7 lines
$(obj)/uImage: $(obj)/vmlinux.gz
$(Q)rm -f $@ $(call if_changed,uimage) @echo ' Image: $@' $(if $(wildcard $@),'is ready','not made')It seems the $(wildcard $@) expands at the start of the rule. Any ideas?
It probarly uses the build-in cache in make - and I see no easy way to tell make not to use the cache in this case.
Could you try to replace "$(wildcard $@)" with something like:
$(shell if -f $@ echo Y; fi)
Untested - I'm not on a Linux box right now.
Sam
Quoted 19 lines · Sam Ravnborg
Quoted 19 lines
Sam,
Tom pointed me at you to look at a makefile issue with arch/ppc/boot/images/Makefile.=A0 When I do the following:
$ make uImage =A0=A0=A0 CHK=A0=A0=A0=A0 include/linux/version.h make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date. =A0=A0=A0 CHK=A0=A0=A0=A0 include/linux/compile.h =A0=A0=A0 CHK=A0=A0=A0=A0 usr/initramfs_list =A0=A0=A0 UIMAGE=A0 arch/ppc/boot/images/uImage Image Name:=A0=A0 Linux-2.6.12-rc3 Created:=A0=A0=A0=A0=A0 Fri May=A0 6 10:19:28 2005 Image Type:=A0=A0 PowerPC Linux Kernel Image (gzip compressed) Data Size:=A0=A0=A0 993322 Bytes =3D 970.04 kB =3D 0.95 MB Load Address: 0x00000000 Entry Point:=A0 0x00000000 =A0=A0=A0 Image: arch/ppc/boot/images/uImage not made
Quoted 8 lines
Quoted 1 line
The issue is that the file
arch/ppc/boot/images/uImagedoes exit=20(the
Quoted 6 lines
'not made' is not correct).
$(obj)/uImage: $(obj)/vmlinux.gz =A0=A0=A0=A0=A0=A0=A0=A0=A0 $(Q)rm -f $@ =A0=A0=A0=A0=A0=A0=A0=A0=A0 $(call if_changed,uimage) =A0=A0=A0=A0=A0=A0=A0=A0=A0 @echo '=A0 Image: $@' $(if $(wildcard =
$@),'is ready','not=20
Quoted 3 lines
made')
Quoted 2 lines
It seems the $(wildcard $@) expands at the start of the rule.=A0 =
Any
Quoted 8 lines
Quoted 1 line
ideas?
It probarly uses the build-in cache in make - and I see no easy way to
tell make not to use the cache in this case.
Could you try to replace "$(wildcard $@)" with something like:
$(shell if -f $@ echo Y; fi)Untested - I'm not on a Linux box right now.
I tried the following w/o success:
$(obj)/uImage: $(obj)/vmlinux.gz
$(Q)rm -f $@
$(call if_changed,uimage)
@echo ' Image: $@' $(shell if [ -f $@ ]; then echo 'is ready';=20=else echo 'not made'; fi)
- kumar=