From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 19 Oct 2011 10:57:34 +0200 Subject: [U-Boot] MAKEALL In-Reply-To: References: <20111018062310.61320140797D@gemini.denx.de> <201110181301.57390.vapier@gentoo.org> <20111018200738.B432E14094B4@gemini.denx.de> Message-ID: <20111019085734.DC322140ABD2@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 Graeme Russ, In message you wrote: > > > I see no clean way to implement this - ok, we could provide an > > external tool / data base that maps boards or SoC names to > > CROSS_COMPILE/ARCH/PATH settings, which each user has to configure for > > his own set of tool chain settings. > > IMHO, for running MAKEALL, I see no problem with this. If we had a > 'toolchains.cfg' file which could be a format like: > > #ARCH SOC BOARD TOOLCHAIN > x86 sc520 - /path/to/gcc > > This would give new developers a head-up as to what the defacto toolchains > are This is IMO not flexible enough. The longer I think the more I like the idea of providing a hook (script file name) that gets passed all relevant parameters as arguments (target name, arch, cpu, board name, vendor, soc, options) and that gets sourced by MAKEALL, so it is able to modify any environment variables (PATH, ARCH, CROSS_COMPILE, eventually more) as needed. > We can then have 'toolchains.cfg.local' which is added to .gitignore so > individual users can override the toolchain. But all patch submissions > must pass MAKEALL without using toolchains.cfg.local (something like > 'MAKEALL --no-custom-toolchains'. The first thing MAKEALL should do is > scan toolchains.cfg (and toolchains.cfg.local if required) for each > selected arch and check that each toolchain is available and spit out > 'toolchain not available' warnings. As mentioned before: a decision based on ARCH alone is not sufficient; see for example the issues with the big endian ARM boards (PXA). > All we need to do then is setup our build machines to do an automated > git-pull and MAKEALL :-) 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 A stone was placed at a ford in a river with the inscription: "When this stone is covered it is dangerous to ford here."