X-Git-Url: https://git.wh0rd.org/?p=home.git;a=blobdiff_plain;f=.bin%2Fcros-board;h=228ff2c47c949e21226312bdeb1ec45deddaf887;hp=9034cb21aa9fe2dddb7de5933bdbe52fbbe934cd;hb=HEAD;hpb=c47b4f34d3b521bf45dadf291eb8a89beab02534 diff --git a/.bin/cros-board b/.bin/cros-board index 9034cb2..228ff2c 100755 --- a/.bin/cros-board +++ b/.bin/cros-board @@ -4,7 +4,6 @@ die() { eerror "$*"; exit 1; } set -e BASE="/mnt/host/source" -d="${BASE}/src/scripts" BUILD_DIR="${BASE}/src/build" cd "${BASE}/src/scripts/" @@ -102,7 +101,7 @@ rm -f "${IMAGES}"/log.* einfo "Log root: ${IMAGES}/log." -run ./update_chroot --toolchain_boards=${BOARD} +run update_chroot if ${ARG_CLEAN} || [[ ! -d ${BUILD} ]] ; then run sudo rm -rf "${BUILD}" @@ -113,7 +112,7 @@ if ${ARG_CLEAN} || [[ ! -d ${BUILD} ]] ; then fi fi -run build_packages \ +run cros build-packages \ --board=${BOARD} \ --nowithdebug \ --nowithrevdeps \ @@ -122,7 +121,7 @@ run build_packages \ $(tfe ${ARG_FACTORY} --{,no-}withfactory) \ $(tfe ${ARG_NOPKG} --{no-,}usepkg) \ $(tfe ${ARG_TEST} --{,no-}withtest) -BUILD_IMG="build_image --board=${BOARD} --no-enable-rootfs-verification $(tfe ${ARG_TEST} test base)" +BUILD_IMG="cros build-image --board=${BOARD} --no-enable-rootfs-verification $(tfe ${ARG_TEST} test base)" run ${BUILD_IMG} IMG_TO_USB="cros flash --yes usb://${ARG_DEV} xbuddy://local/${BOARD}/latest/dev" @@ -134,17 +133,13 @@ fi cd "${IMAGES}" rm -rf $(ls -td1R `find -mindepth 1 -maxdepth 1 -type d` | sed -e 1d -e 2d) -BUILD_IMG="${d}/${BUILD_IMG#./}" cat <