From ae14cd49a8da6e62e35636109a6dc74011198437 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Thu, 27 Oct 2011 15:11:11 +0200 Subject: buildsys: s/CROSS/CROSS_COMPILE/g Use CROSS_COMPILE instead of CROSS as other projects are doing (i.e. kernel, busybox, buildroot). CROSS is still supported for backward compatibility only Signed-off-by: Carmelo Amoroso --- extra/scripts/MAKEALL | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'extra') diff --git a/extra/scripts/MAKEALL b/extra/scripts/MAKEALL index 6bacc9a7c..f467741e9 100755 --- a/extra/scripts/MAKEALL +++ b/extra/scripts/MAKEALL @@ -77,13 +77,11 @@ pass="" fail="" skip="" for a in "$@" ; do - if [ -n "${CROSS_COMPILE}" ] ; then - CROSS=${CROSS_COMPILE} - else - CROSS=$(find_compiler ${a}) + if [ -z "${CROSS_COMPILE}" ] ; then + CROSS_COMPILE=$(find_compiler ${a}) fi - if [ -z "${CROSS}" ] ; then + if [ -z "${CROSS_COMPILE}" ] ; then mark_arch skip $a echo " ### SKIP: ${a}: could not find compiler" continue @@ -93,17 +91,17 @@ for a in "$@" ; do ( set -e - echo " ### Building target ${a} (${CROSS})" + echo " ### Building target ${a} (${CROSS_COMPILE})" do_make distclean do_make ARCH=$a defconfig do_make oldconfig - setconfig CROSS_COMPILER_PREFIX ${CROSS} + setconfig CROSS_COMPILER_PREFIX ${CROSS_COMPILE} - header_path=${KERNEL_HEADERS:-$(echo '#include ' | ${CROSS}cpp 2>/dev/null | grep -o '[^"]*linux/version.h')} || : + header_path=${KERNEL_HEADERS:-$(echo '#include ' | ${CROSS_COMPILE}cpp 2>/dev/null | grep -o '[^"]*linux/version.h')} || : if [ -z "${header_path}" ] ; then - for p in /usr/${CROSS%-}/usr/include ; do + for p in /usr/${CROSS_COMPILE%-}/usr/include ; do if [ -e ${p}/linux/version.h ] ; then header_path=${p} break -- cgit v1.2.3