From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: What is the difference between ARCH_XXX MACH_XXX TARGET_XXX macros
Date: Wed, 4 Dec 2019 17:39:12 -0500 [thread overview]
Message-ID: <20191204223912.GD9549@bill-the-cat> (raw)
In-Reply-To: <20191204094906.GA24356@beer>
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>
prev parent reply other threads:[~2019-12-04 22:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191204223912.GD9549@bill-the-cat \
--to=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.