[U-Boot] [PATCH 1/3] MX28: Add u-boot.mx28.sd and u-boot.mx28.nand make targets

Wolfgang Denk wd at denx.de
Fri Jun 22 15:11:23 CEST 2012


Dear Marek Vasut,

In message <201206221444.46242.marex at denx.de> you wrote:
> 
> I think we're missing each others point. So, lemme put it this way:
> 
> We have CPU X, which uses sequence of commands, sequence A.
> We have CPU Y, which uses sequence of commands, sequence B.
> 
> We want make target M, which results in file named F.
> 
> How do we make sure the target M will result in file F produced by sequence A if 
> u-boot is configured for CPU X && file F produced by sequence B if u-boot is 
> configured for CPU Y ?

By cding the neeeded rules depending on what may be needed for one SoC
or another.

> I think I might have already answered myself ... u-boot is configured for CPU 
> X/CPU Y, right?

Right.  Such CPU (or ARCH) specific code should be placed in the
respective CPU (or ARCH) specific Makefile, and everything will just
work as expected.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"In Christianity neither morality nor religion come into contact with
reality at any point."                          - Friedrich Nietzsche


More information about the U-Boot mailing list