xref: /openbmc/qemu/scripts/refresh-pxe-roms.sh (revision 1be82d89)
1#!/bin/bash
2
3# PXE ROM build script
4#
5# This program is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 2 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program; if not, see <http://www.gnu.org/licenses/>.
17#
18# Copyright (C) 2011 Red Hat, Inc.
19#   Authors: Alex Williamson <alex.williamson@redhat.com>
20#
21# Usage: Run from root of qemu tree
22# ./scripts/refresh-pxe-roms.sh
23
24targets="pxerom"
25if test -x "$(which EfiRom 2>/dev/null)"; then
26    targets="$targets efirom"
27fi
28
29cd roms
30make -j4 $targets || exit 1
31make clean
32