X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=MAKEALL;h=705a0bb5e1a2f2c20c325e7b67452f5e3ab282a5;hb=0938b6094ee0389e3231db667d0263cac8bff258;hp=63838ce4f0440bb5368056b51ae8630390307d25;hpb=c8d4b2f8266fac1bcbf9101838939054b8a23011;p=oweals%2Fu-boot.git diff --git a/MAKEALL b/MAKEALL index 63838ce4f0..705a0bb5e1 100755 --- a/MAKEALL +++ b/MAKEALL @@ -527,6 +527,12 @@ LIST_sparc="$(targets_by_arch sparc)" LIST_nds32="$(targets_by_arch nds32)" +######################################################################### +## ARC Systems +######################################################################### + +LIST_arc="$(targets_by_arch arc)" + #----------------------------------------------------------------------- get_target_location() { @@ -666,8 +672,6 @@ build_target() { output_dir="${OUTPUT_PREFIX}" fi - export BUILD_DIR="${output_dir}" - target_arch=$(get_target_arch ${target}) eval cross_toolchain=\$CROSS_COMPILE_`echo $target_arch | tr '[:lower:]' '[:upper:]'` if [ "${cross_toolchain}" ] ; then @@ -678,6 +682,10 @@ build_target() { MAKE=make fi + if [ "${output_dir}" != "." ] ; then + MAKE="${MAKE} O=${output_dir}" + fi + ${MAKE} distclean >/dev/null ${MAKE} -s ${target}_config @@ -692,7 +700,7 @@ build_target() { if [ $BUILD_MANY == 1 ] ; then trap - TERM - ${MAKE} -s tidy + ${MAKE} -s clean if [ -s ${LOG_DIR}/${target}.ERR ] ; then cp ${LOG_DIR}/${target}.ERR ${OUTPUT_PREFIX}/ERR/${target}