mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 18:59:44 +00:00
03b7004dda
The CPUDIR variable points to the location of a target's CPU directory. Currently, it is set to cpu/$CPU. However, using $CPUDIR will allow for more flexibility in the future. It lays the groundwork for reorganizing U-Boot's directory structure to support a layout such as: arch/$ARCH/cpu/$CPU/* (architecture with multiple CPU types) arch/$ARCH/cpu/* (architecture with one CPU type) Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
31 lines
860 B
Text
31 lines
860 B
Text
[By Steven Scholz <steven.scholz@imc-berlin.de>, 16 Aug 2004]
|
|
|
|
Since the cpu/ directory gets clobbered with peripheral driver code I
|
|
started cleaning up cpu/arm920t.
|
|
|
|
I introduced the concept of Soc (system on a chip) into the ./cpu
|
|
directory. That means that code that is cpu (i.e. core) specific
|
|
resides in
|
|
|
|
$(CPUDIR)/
|
|
|
|
and code that is specific to some SoC (i.e. vendor specific
|
|
peripherals around the core) is moved into
|
|
|
|
$(CPUDIR)/$(SOC)/
|
|
|
|
Thus a library/archive "$(CPUDIR)/$(SOC)/lib$(SOC).a" will be build
|
|
and linked. Examples will be
|
|
|
|
cpu/arm920t/imx/
|
|
cpu/arm920t/s3c24x0
|
|
|
|
One can select an SoC by passing the name of it to ./mkconfig just
|
|
like
|
|
|
|
@./mkconfig $(@:_config=) arm arm920t vcma9 mpl s3c24x0
|
|
|
|
If there's no VENDOR field (like "mpl" in the above line) one has to
|
|
pass NULL instead:
|
|
|
|
@./mkconfig $(@:_config=) arm arm920t mx1ads NULL imx
|