public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 2/9] x86: Allow excluding reset vector code from u-boot
Date: Mon, 26 Nov 2012 10:31:12 +0100	[thread overview]
Message-ID: <20121126093112.22AAD201056@gemini.denx.de> (raw)
In-Reply-To: <CAPnjgZ3uhFKvsCV3Z2p0ynhvjGTNQmEUZ2CAg6cGA1AeU1AZ-A@mail.gmail.com>

Dear Simon Glass,

In message <CAPnjgZ3uhFKvsCV3Z2p0ynhvjGTNQmEUZ2CAg6cGA1AeU1AZ-A@mail.gmail.com> you wrote:
> 
> > Hm.... as is, this requires that we define CONFIG_SYS_X86_RESET_VECTOR
> > in all x86 board config files, just because a single board
> > configuration does not need this?  This makes no sense.  Please invert
> > the logic.
> 
> That was how the previous patch worked (CONFIG_NO_RESET_CODE). If
> required the ifneq in the Makefile though, which you objected to. Or
> is there another way?

As usual, there are a number of ways.

Option 1: Define CONFIG_SYS_X86_RESET_VECTOR in a common header file,
	so that you can #undef it in a board config file which does
	not want / need this.  This is functionally equivalent with
	your current patch, but you have to care about thgis
	settingonly in the files where it is actually interesting.

Option 2: use logig similar to the OBJ-y=... in the Makefile, just
	inverted.  I know there are examples for this, but I'm too
	lazu at the moment to search.

> Also Graeme mentioned that all x86 boards will soon use Coreboot, so
> the option (and the code) may in fact be removed one day. That's why I
> was happy enough to invert it.
> 
> There are actually only 2 boards, enet and coreboot.

Maybe, but the approach is wrong even for a single board.

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
Committee, n.:  A group of men who individually can do nothing but as
a group decide that nothing can be done.                 - Fred Allen

      reply	other threads:[~2012-11-26  9:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-26  6:12 [U-Boot] [PATCH v4 2/9] x86: Allow excluding reset vector code from u-boot Simon Glass
2012-11-26  6:12 ` [U-Boot] [PATCH v4 8/9] x86: Remove coreboot start16 code Simon Glass
2012-11-26  6:12 ` [U-Boot] [PATCH v4 9/9] x86: coreboot: Enable LPC TPM Simon Glass
2012-11-26 19:34   ` Marek Vasut
2012-11-26  6:53 ` [U-Boot] [PATCH v4 2/9] x86: Allow excluding reset vector code from u-boot Wolfgang Denk
2012-11-26  7:10   ` Simon Glass
2012-11-26  9:31     ` Wolfgang Denk [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=20121126093112.22AAD201056@gemini.denx.de \
    --to=wd@denx.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox