On Thu, Apr 24, 2008 at 08:52:48PM -0600, Jordan Crouse wrote:
+HOSTCC = gcc +HOSTCXX = g++ +HOSTCFLAGS := -I$(srck) -I$(objk) +HOSTCXXFLAGS := -I$(srck) -I$(objk)
Can you move these to scripts/Build.settings, please? Thats the common repository for these sorts of things. In fact, HOSTCC is already there.
Not easily I think, these variables are used by kconfig internally, but scripts/Build.settings is (currently) only read after the 'make config' or 'make menuconfig' step so that likely won't work.
Okay, then kill off the HOSTCC in Build.settings - this is very unfortunate, I would much rather keep this sort of thing out of the Makefile proper.
Alternatively we could have them in scripts/kconfig/Makefile (in addition) and leave Build.settings as is, so that HOSTCC will be overridden by that after the 'menuconfig' check. Not sure if there are issues with that.
Will test later.
Uwe.