From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeroen Hofstee Date: Fri, 18 Jul 2014 20:29:10 +0200 Subject: [U-Boot] [PATCH 2/3] MAKEALL: make sure to invoke GNU Make In-Reply-To: <1405588682-10724-3-git-send-email-yamada.m@jp.panasonic.com> References: <1405588682-10724-1-git-send-email-yamada.m@jp.panasonic.com> <1405588682-10724-3-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <53C96776.9090104@myspectrum.nl> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello Masahiro, On 17-07-14 11:18, Masahiro Yamada wrote: > Since the command name 'make' is not GNU Make on some platforms > such as FreeBSD, MAKEALL should call the make via scripts/gnu_make. > > Signed-off-by: Masahiro Yamada > --- > > MAKEALL | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/MAKEALL b/MAKEALL > index 37ef71e..02c2f9f 100755 > --- a/MAKEALL > +++ b/MAKEALL > @@ -630,14 +630,16 @@ build_target() { > output_dir="${OUTPUT_PREFIX}" > fi > > + GNU_MAKE=scripts/gnu_make > + > target_arch=$(get_target_arch ${target}) > eval cross_toolchain=\$CROSS_COMPILE_`echo $target_arch | tr '[:lower:]' '[:upper:]'` > if [ "${cross_toolchain}" ] ; then > - MAKE="make CROSS_COMPILE=${cross_toolchain}" > + MAKE="$GNU_MAKE CROSS_COMPILE=${cross_toolchain}" > elif [ "${CROSS_COMPILE}" ] ; then > - MAKE="make CROSS_COMPILE=${CROSS_COMPILE}" > + MAKE="$GNU_MAKE CROSS_COMPILE=${CROSS_COMPILE}" > else > - MAKE=make > + MAKE=$GNU_MAKE > fi > > if [ "${output_dir}" != "." ] ; then while by itself this might be correct, opt is not a POSIX command and MAKEALL will not work at all on a BSD host. Perhaps it is time I have a look at what buildman is.... Regards, Jeroen