[PATCH] ppc64: Build zImage.vmode for G5

Geoff Levand geoffrey.levand at am.sony.com
Sat Sep 24 03:35:31 EST 2005


Benjamin Herrenschmidt wrote:
>>Host detection won't work in general.  It won't handle cross building
> 
> on say 
> 
>>a PC with INSTALL_MOD_PATH and INSTALL_PATH set.  'make install'
> 
> should work 
> 
>>as expected in this case.  That's what I meant by handle cross
> 
> building.
> 
> Then I don't really see a solution except installing both images all the
> time... yet another config option is just horrible imho.
> 

But wait...  Here's what I've come up with:

+$(patsubst %,install-%,$(boottargets-y)) install-vmlinux: vmlinux
+	$(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(boot)/$(subst install-,,$@) install

I think this will work.  It would at least make PPC_MULTIPLATFORM usable:

$ make INSTALL_MOD_PATH=/target/g5 INSTALL_PATH=/target/g5/boot install-zImage.vmode
$ make INSTALL_MOD_PATH=/target/pseries INSTALL_PATH=/target/pseries/boot install-zImage

I'll do some more testing and post the resulting patch.

-Geoff




More information about the Linuxppc64-dev mailing list