xref: /qemu/scripts/refresh-pxe-roms.sh (revision 93a2b3c4)
136d8d02dSAlex Williamson#!/bin/bash
236d8d02dSAlex Williamson
336d8d02dSAlex Williamson# PXE ROM build script
436d8d02dSAlex Williamson#
536d8d02dSAlex Williamson# This program is free software; you can redistribute it and/or modify
636d8d02dSAlex Williamson# it under the terms of the GNU General Public License as published by
736d8d02dSAlex Williamson# the Free Software Foundation; either version 2 of the License, or
836d8d02dSAlex Williamson# (at your option) any later version.
936d8d02dSAlex Williamson#
1036d8d02dSAlex Williamson# This program is distributed in the hope that it will be useful,
1136d8d02dSAlex Williamson# but WITHOUT ANY WARRANTY; without even the implied warranty of
1236d8d02dSAlex Williamson# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1336d8d02dSAlex Williamson# GNU General Public License for more details.
1436d8d02dSAlex Williamson#
1536d8d02dSAlex Williamson# You should have received a copy of the GNU General Public License
1636d8d02dSAlex Williamson# along with this program; if not, see <http://www.gnu.org/licenses/>.
1736d8d02dSAlex Williamson#
1836d8d02dSAlex Williamson# Copyright (C) 2011 Red Hat, Inc.
1936d8d02dSAlex Williamson#   Authors: Alex Williamson <alex.williamson@redhat.com>
2036d8d02dSAlex Williamson#
2136d8d02dSAlex Williamson# Usage: Run from root of qemu tree
2236d8d02dSAlex Williamson# ./scripts/refresh-pxe-roms.sh
2336d8d02dSAlex Williamson
24*93a2b3c4SGerd Hoffmanntargets="pxerom"
25*93a2b3c4SGerd Hoffmannif test -x "$(which EfiRom 2>/dev/null)"; then
26*93a2b3c4SGerd Hoffmann    targets="$targets efirom"
2736d8d02dSAlex Williamsonfi
2836d8d02dSAlex Williamson
29*93a2b3c4SGerd Hoffmanncd roms
30*93a2b3c4SGerd Hoffmannmake -j4 $targets || exit 1
31*93a2b3c4SGerd Hoffmannmake clean
32