Skip to content

Commit

Permalink
fix bugs in make script
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Lapkin committed Oct 20, 2020
1 parent aaefca9 commit 0cd1657
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions scripts/make
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ echo READY > "$BS/.ready.log"
}
}

build_package(){
echo "[i] DUMMY build_package $@">&2
}

BUILD_PKG(){
PKG="$PKD/package.mk"

Expand Down Expand Up @@ -188,16 +192,16 @@ export UBOOT_DEFCONFIG=$DEF_CONFIG

PKGS_DIR=$(realpath "$PKGS_DIR0")

MANUAL=1
#MANUAL=1

[ "$1" = re ] && {
MSG REBUILD UBOOT
rm -rf $BUILD/u-boot-*
shift
}

[ "$MANUAL" ] && {
echo "[i] manual build"
[ "$MANUAL" ] || {
echo "[i] auto build"

cd "$BS"
UBOOT_DIR="$PWD"
Expand All @@ -206,7 +210,7 @@ cd -

#[ -s "$BS/.config" ] || make -C"$BS" $DEF_CONFIG

-s "$BS/.config" ] || {
[ -s "$BS/.config" ] || {
make -C"$BS" $DEF_CONFIG

echo '
Expand All @@ -218,21 +222,26 @@ CONFIG_AUTOBOOT_PROMPT="Hit SPACE in %d seconds to stop autoboot"
CONFIG_AUTOBOOT_DELAY_STR="2"
CONFIG_AUTOBOOT_STOP_STR=" "
CONFIG_AUTOBOOT_KEYED_CTRLC=y
' >> "$BS/.config"

#exit 0
# CONFIG_SARADC_MESON=y

}


make -C"$BS" $PJ $@ || FAIL make fail

}


[ "$MANUAL" = "dev" ] && {
MANUAL=
make -C"$BS" $PJ $@ || FAIL make fail
}

(
cd "$BS"
UBOOT_DIR="$PWD"
[ "$MANUAL" ] || \
[ "$MANUAL" ] && \
make_target
post_make_target
)
Expand Down

0 comments on commit 0cd1657

Please sign in to comment.