From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Thu, 1 Aug 2013 14:07:06 +0200 Subject: [Buildroot] ccache dependency issues In-Reply-To: References: <20130801113514.495c3b0d@skate> <20130801135731.2ba53f36@skate> Message-ID: <20130801140706.1ec7edbc@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Thomas De Schampheleire, On Thu, 1 Aug 2013 14:03:12 +0200, Thomas De Schampheleire wrote: > > So the dependencies such as host-tar and host-xzcat are always pulled > > before host-sstrip and host-ccache, so we should be all set. For sure, > > this is the case because we don't do top-level parallel build, but > > there are already many places in Buildroot that rely on ordering of > > dependencies. > > > > You're right, this order is fine. > > But the solution of moving host-ccache to dependencies seems so > surprisingly simple... I wonder why no-one thought of it before, > surely we are missing something? I think a lot of the things with those "main" targets in the main Makefile and the BASE_TARGETS, TARGETS variables and so on is just a big mess that no one ever cleaned up and clarified with good rules about what each variable is. That's why I've NAKed additional 'hacks' such as http://patchwork.ozlabs.org/patch/257372/ in the past. BTW, I think moving ccache into the dependencies will avoid the need for this patch 257372, and then we can apply http://patchwork.ozlabs.org/patch/257374/ and http://patchwork.ozlabs.org/patch/257375/. Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com