public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros
@ 2019-12-04  9:49 Tim Williams
  2019-12-04 22:39 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Tim Williams @ 2019-12-04  9:49 UTC (permalink / raw)
  To: u-boot

Hello, I am trying to port u-boot to a new board,

There are several macros, how to use them properly?

 CONFIG_ARCH_XXX
 CONFIG_MACH_XXX
 CONFIG_TARGET_XXX

for example, my board has:

  SoC: LS2K1000
  ISA: MIPS32r1, MIPS32r2, MIPS64r1, MIPS64r2
Board: UselessRouter or HelloRouter, TBD
  NIC: 4 1000Mbps NIC(No built in switcher)

thanks very much!

Regards,
Tim

^ permalink raw reply	[flat|nested] 2+ messages in thread

* What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros
  2019-12-04  9:49 What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros Tim Williams
@ 2019-12-04 22:39 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-12-04 22:39 UTC (permalink / raw)
  To: u-boot

On Wed, Dec 04, 2019 at 05:49:09PM +0800, Tim Williams wrote:

> Hello, I am trying to port u-boot to a new board,
> 
> There are several macros, how to use them properly?
> 
>  CONFIG_ARCH_XXX
>  CONFIG_MACH_XXX
>  CONFIG_TARGET_XXX
> 
> for example, my board has:
> 
>   SoC: LS2K1000
>   ISA: MIPS32r1, MIPS32r2, MIPS64r1, MIPS64r2
> Board: UselessRouter or HelloRouter, TBD
>   NIC: 4 1000Mbps NIC(No built in switcher)

Code that is generic to LS2K1000 but not your boards should use
CONFIG_SOC_xxx and everything board-specific should be
CONFIG_TARGET_xxx.  CONFIG_ARCH_xxx / CONFIG_MACH_xxx should get used
likely sparingly, but we are indeed inconsistent and could use
CONFIG_SOC_xxx in some of those cases.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20191204/bf4404a8/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-04 22:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-04  9:49 What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros Tim Williams
2019-12-04 22:39 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox