Alex Williamson | 36d8d02 | 2011-04-18 11:46:41 -0600 | [diff] [blame] | 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 | |
Gerd Hoffmann | 93a2b3c | 2013-09-23 10:24:10 +0200 | [diff] [blame] | 24 | targets="pxerom" |
| 25 | if test -x "$(which EfiRom 2>/dev/null)"; then |
| 26 | targets="$targets efirom" |
Alex Williamson | 36d8d02 | 2011-04-18 11:46:41 -0600 | [diff] [blame] | 27 | fi |
| 28 | |
Gerd Hoffmann | 93a2b3c | 2013-09-23 10:24:10 +0200 | [diff] [blame] | 29 | cd roms |
| 30 | make -j4 $targets || exit 1 |
| 31 | make clean |