From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Wed, 14 Dec 2011 15:25:51 +0100 Subject: [Buildroot] [PATCH 2 of 4 v3] dependencies: check minimal make version early on In-Reply-To: References: Message-ID: <20111214152551.58d40263@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Le Wed, 14 Dec 2011 15:22:08 +0100, Thomas De Schampheleire a ?crit : > Although support/dependencies/dependencies.sh checks for the version of make, > this script doesn't get a chance to run if make encounters a syntax error as a > result of being too old. > > For example, the following syntax is only supported from make 3.81 onwards: > > ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y) > include toolchain/toolchain-buildroot.mk > else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) > include toolchain/toolchain-external.mk > else ifeq ($(BR2_TOOLCHAIN_CTNG),y) > include toolchain/toolchain-crosstool-ng.mk > endif > > This patch adds a check for the version of make very early in the Makefile, so > that old make versions are handled gracefully. > > Signed-off-by: Thomas De Schampheleire Acked-by: Thomas Petazzoni -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com