From: Wolfgang Denk Date: Tue, 27 Nov 2012 14:41:10 +0100 Subject: [U-Boot] [PATCH v5 2/9] x86: Allow excluding reset vector code from u-boot In-Reply-To: References: <1353961997-32762-3-git-send-email-sjg@chromium.org> <20121126230323.D6AA7200513@gemini.denx.de> Message-ID: <20121127134110.0FFF2201203@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message you wrote: > > > CONFIG_SYS_X86_RESET_VECTOR - is this just another new, undocumented > > variable? > > Yes it is new and undocumented, because it is internal to the x86 > implementation and I don't want people to set it. Then document it as internal and not to be touched, but documented it must be. > Well there are now two options: > > 1. The user-facing CONFIG_NO_RESET_CODE option which, if not defined, > asserts CONFIG_SYS_X86_RESET_VECTOR > 2. CONFIG_SYS_X86_RESET_VECTOR which is used in the Makefiles > > I would rather have a single positive option > (CONFIG_SYS_X86_RESET_VECTOR, as series v4). Failing that I would > rather have ifneq in the Makefile (and just use CONFIG_NO_RESET_CODE). > I am not sure how to have a negative option without an ifneq in the > Makefile. I looked pretty hard but could not find an example in > U-Boot. First, you can #define CONFIG_SYS_X86_RESET_VECTOR in some global header file, and in the boards that don't want it add an #undef in the board config file. Second, you can have some RESET_OBJS-$(CONFIG_SYS_X86_RESET_VECTOR) = in your Makefile, and then use COBJS := $(sort $(COBJS-y) $(RESET_OBJS-)) which will include only if CONFIG_SYS_X86_RESET_VECTOR is _not_ set or empty. etc. > This is possible a minor point since I think Graeme said that the only > other x86 board will move to Coreboot soon. ...for the time being, maybe. But we should not bar other options without serious need. 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 Doubt is a pain too lonely to know that faith is his twin brother. - Kahlil Gibran