Commit 777553406dcc3dd0ea54dae5b963b08af54c4f0d
1 parent
c0ce998e
Make installing bios files optional.
Signed-off-by: Riku Voipio <riku.voipio@iki.fi> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5800 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
19 additions
and
3 deletions
Makefile
... | ... | @@ -221,6 +221,14 @@ KEYMAPS=da en-gb et fr fr-ch is lt modifiers no pt-br sv \ |
221 | 221 | ar de en-us fi fr-be hr it lv nl pl ru th \ |
222 | 222 | common de-ch es fo fr-ca hu ja mk nl-be pt sl tr |
223 | 223 | |
224 | +ifdef INSTALL_BLOBS | |
225 | +BLOBS=bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ | |
226 | +video.x openbios-sparc32 openbios-sparc64 pxe-ne2k_pci.bin \ | |
227 | +pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin | |
228 | +else | |
229 | +BLOBS= | |
230 | +endif | |
231 | + | |
224 | 232 | install-doc: $(DOCS) |
225 | 233 | mkdir -p "$(DESTDIR)$(docdir)" |
226 | 234 | $(INSTALL) -m 644 qemu-doc.html qemu-tech.html "$(DESTDIR)$(docdir)" |
... | ... | @@ -236,12 +244,12 @@ install: all $(if $(BUILD_DOCS),install-doc) |
236 | 244 | ifneq ($(TOOLS),) |
237 | 245 | $(INSTALL) -m 755 -s $(TOOLS) "$(DESTDIR)$(bindir)" |
238 | 246 | endif |
247 | +ifneq ($(BLOBS),) | |
239 | 248 | mkdir -p "$(DESTDIR)$(datadir)" |
240 | - set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin \ | |
241 | - video.x openbios-sparc32 openbios-sparc64 pxe-ne2k_pci.bin \ | |
242 | - pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin; do \ | |
249 | + set -e; for x in $(BLOBS); do \ | |
243 | 250 | $(INSTALL) -m 644 $(SRC_PATH)/pc-bios/$$x "$(DESTDIR)$(datadir)"; \ |
244 | 251 | done |
252 | +endif | |
245 | 253 | ifndef CONFIG_WIN32 |
246 | 254 | mkdir -p "$(DESTDIR)$(datadir)/keymaps" |
247 | 255 | set -e; for x in $(KEYMAPS); do \ | ... | ... |
configure
... | ... | @@ -118,6 +118,7 @@ bluez="yes" |
118 | 118 | kvm="yes" |
119 | 119 | kerneldir="" |
120 | 120 | aix="no" |
121 | +blobs="yes" | |
121 | 122 | |
122 | 123 | # OS specific |
123 | 124 | targetos=`uname -s` |
... | ... | @@ -372,6 +373,8 @@ for opt do |
372 | 373 | ;; |
373 | 374 | --disable-aio) aio="no" |
374 | 375 | ;; |
376 | + --disable-blobs) blobs="no" | |
377 | + ;; | |
375 | 378 | --kerneldir=*) kerneldir="$optarg" |
376 | 379 | ;; |
377 | 380 | *) echo "ERROR: unknown option $opt"; show_help="yes" |
... | ... | @@ -483,6 +486,7 @@ echo " --enable-uname-release=R Return R for uname -r in usermode emulation" |
483 | 486 | echo " --sparc_cpu=V Build qemu for Sparc architecture v7, v8, v8plus, v8plusa, v9" |
484 | 487 | echo " --disable-vde disable support for vde network" |
485 | 488 | echo " --disable-aio disable AIO support" |
489 | +echo " --disable-blobs disable installing provided firmware blobs" | |
486 | 490 | echo " --kerneldir=PATH look for kernel includes in PATH" |
487 | 491 | echo "" |
488 | 492 | echo "NOTE: The object files are built at the place where configure is launched" |
... | ... | @@ -1083,6 +1087,7 @@ echo "uname -r $uname_release" |
1083 | 1087 | echo "NPTL support $nptl" |
1084 | 1088 | echo "vde support $vde" |
1085 | 1089 | echo "AIO support $aio" |
1090 | +echo "Install blobs $blobs" | |
1086 | 1091 | echo "KVM support $kvm" |
1087 | 1092 | |
1088 | 1093 | if test $sdl_too_old = "yes"; then |
... | ... | @@ -1357,6 +1362,9 @@ if test "$aio" = "yes" ; then |
1357 | 1362 | echo "#define CONFIG_AIO 1" >> $config_h |
1358 | 1363 | echo "CONFIG_AIO=yes" >> $config_mak |
1359 | 1364 | fi |
1365 | +if test "$blobs" = "yes" ; then | |
1366 | + echo "INSTALL_BLOBS=yes" >> $config_mak | |
1367 | +fi | |
1360 | 1368 | |
1361 | 1369 | # XXX: suppress that |
1362 | 1370 | if [ "$bsd" = "yes" ] ; then | ... | ... |