blob: 31bdb2c3152658850e3c8e278e093fee3228d31e [file] [log] [blame]
#!/bin/bash
# Copyright 2017 The Fuchsia Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
### build the paver disk image targets
## builds efi-${ZIRCON_PROJECT}.blk, fvm.sparse.blk, and bootdata-blobstore-${ZIRCON_PROJECT}.bin
##
## usage: fx build-paver [extra ninja args]
set -e
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"/lib/image_build_vars.sh
if [[ "$ZIRCON_PROJECT" == "x86" ]]; then
fx-command-run build "${kernc_vboot}" "${efi_block}" "${fvm_data_sparse_block}" "${fvm_sparse_block}" "${ramdisk_bin}" "$@"
else
fx-command-run build "${ramdisk_bin}" "$@"
fi