crosutils/make_factory_package.sh: Support relative path

Since there's a pushd call when building images, we have to first retrieve
the complete (full/absolute) path of target disk image.

BUG=chromium-os:10706
TEST=make_factory_package.sh \
     --factory ../build/images/x86-mario/latest/factory_image.bin \
     --release ../build/images/x86-mario/latest/chromiumos_image.bin \
     --diskimg blah_relative.bin

Change-Id: I02e2edb0f76b724337a82dd400297877681bc338

Review URL: http://codereview.chromium.org/6244003
This commit is contained in:
Hung-Te Lin 2011-01-13 15:34:59 +08:00
parent 60587527c1
commit c584cf0e95

View File

@ -86,7 +86,7 @@ RELEASE_IMAGE="$(basename "${FLAGS_release}")"
FACTORY_IMAGE="$(basename "${FLAGS_factory}")"
prepare_img() {
local outdev="$FLAGS_diskimg"
local outdev="$(readlink -f "$FLAGS_diskimg")"
local sectors="$FLAGS_sectors"
local force_full="true"
@ -191,7 +191,7 @@ else
fi
generate_img() {
local outdev="$FLAGS_diskimg"
local outdev="$(readlink -f "$FLAGS_diskimg")"
local sectors="$FLAGS_sectors"
prepare_img