]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - MAKEALL
sunxi: increase SYS_MONITOR_LEN
[karo-tx-uboot.git] / MAKEALL
diff --git a/MAKEALL b/MAKEALL
index 929fe884c54d73b2f7ca2badb807c75fca9d42fc..7e42f10933109a7fc5b87c58c091cfc1f6101f5d 100755 (executable)
--- a/MAKEALL
+++ b/MAKEALL
@@ -60,6 +60,14 @@ usage()
        exit ${ret}
 }
 
+deprecation() {
+       echo "** Note: MAKEALL is deprecated - please use buildman instead"
+       echo "** See tools/buildman/README for details"
+       echo
+}
+
+deprecation
+
 SHORT_OPTS="ha:c:v:s:b:lmMCnr"
 LONG_OPTS="help,arch:,cpu:,vendor:,soc:,board:,list,maintainers,mails,check,continue,rebuild-errors"
 
@@ -171,13 +179,10 @@ GNU_MAKE=$(scripts/show-gnu-make) || {
 # echo "Remaining arguments:"
 # for arg do echo '--> '"\`$arg'" ; done
 
-if [ ! -r boards.cfg ]; then
-       echo "Could not find boards.cfg"
-       tools/genboardscfg.py || {
-               echo "Failed to generate boards.cfg" >&2
-               exit 1
-       }
-fi
+tools/genboardscfg.py || {
+       echo "Failed to generate boards.cfg" >&2
+       exit 1
+}
 
 FILTER="\$1 !~ /^#/"
 [ "$opt_a" ] && FILTER="${FILTER} && $opt_a"
@@ -294,12 +299,6 @@ LIST_8xx="$(targets_by_cpu mpc8xx)"
 
 LIST_4xx="$(targets_by_cpu ppc4xx)"
 
-#########################################################################
-## MPC824x Systems
-#########################################################################
-
-LIST_824x="$(targets_by_cpu mpc824x)"
-
 #########################################################################
 ## MPC8260 Systems (includes 8250, 8255 etc.)
 #########################################################################
@@ -324,12 +323,6 @@ LIST_85xx="$(targets_by_cpu mpc85xx)"
 
 LIST_86xx="$(targets_by_cpu mpc86xx)"
 
-#########################################################################
-## 74xx/7xx Systems
-#########################################################################
-
-LIST_74xx_7xx="$(targets_by_cpu 74xx_7xx)"
-
 #########################################################################
 ## PowerPC groups
 #########################################################################
@@ -351,7 +344,6 @@ LIST_powerpc="              \
        ${LIST_85xx}    \
        ${LIST_86xx}    \
        ${LIST_4xx}     \
-       ${LIST_74xx_7xx}\
 "
 
 # Alias "ppc" -> "powerpc" to not break compatibility with older scripts
@@ -567,13 +559,7 @@ get_target_maintainers() {
 get_target_arch() {
        local target=$1
 
-       # Automatic mode
-       local line=`awk '\$7 == "'"$target"'" { print \$0 }' boards.cfg`
-
-       if [ -z "${line}" ] ; then echo "" ; return ; fi
-
-       set ${line}
-       echo "$2"
+       awk '$7 == "'$target'" { print $2 }' boards.cfg
 }
 
 list_target() {
@@ -658,7 +644,7 @@ build_target() {
                MAKE="${MAKE} O=${output_dir}"
        fi
 
-       ${MAKE} distclean >/dev/null
+       ${MAKE} mrproper >/dev/null
 
        echo "Building ${target} board..."
        ${MAKE} -s ${target}_defconfig >/dev/null
@@ -671,6 +657,13 @@ build_target() {
                RC=1
        fi
 
+       OBJS=${output_dir}/u-boot
+       if [ -e ${output_dir}/spl/u-boot-spl ]; then
+               OBJS="${OBJS} ${output_dir}/spl/u-boot-spl"
+       fi
+
+       ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG
+
        if [ $BUILD_MANY == 1 ] ; then
                trap - TERM
 
@@ -695,13 +688,6 @@ build_target() {
                fi
        fi
 
-       OBJS=${output_dir}/u-boot
-       if [ -e ${output_dir}/spl/u-boot-spl ]; then
-               OBJS="${OBJS} ${output_dir}/spl/u-boot-spl"
-       fi
-
-       ${CROSS_COMPILE}size ${OBJS} | tee -a ${LOG_DIR}/$target.MAKELOG
-
        [ -e "${LOG_DIR}/${target}.ERR" ] && cat "${LOG_DIR}/${target}.ERR"
 
        touch "${donep}${build_idx}"
@@ -849,6 +835,8 @@ print_stats() {
                kill_children
        fi
 
+       deprecation
+
        exit $RC
 }