summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCarmelo Amoroso <carmelo.amoroso@st.com>2011-10-27 15:11:11 +0200
committerCarmelo Amoroso <carmelo.amoroso@st.com>2011-11-25 06:31:07 +0100
commitae14cd49a8da6e62e35636109a6dc74011198437 (patch)
tree95c4f1dd4444ae6f8cbdf279bec7b7dcda22e33c /extra
parentc79f09a9a3cfa50cd56c53bd2d3d1f57fe52d587 (diff)
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 <carmelo.amoroso@st.com>
Diffstat (limited to 'extra')
-rwxr-xr-xextra/scripts/MAKEALL16
1 files changed, 7 insertions, 9 deletions
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 <linux/version.h>' | ${CROSS}cpp 2>/dev/null | grep -o '[^"]*linux/version.h')} || :
+ header_path=${KERNEL_HEADERS:-$(echo '#include <linux/version.h>' | ${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