[qemu/el6: 222/230] Allow building without libfdt
Lubomir Rintel
lkundrak at fedoraproject.org
Thu Nov 15 06:52:22 UTC 2012
commit 651c67e1e694e748e4404cf58a42767111fd1829
Author: Lubomir Rintel <lkundrak at v3.sk>
Date: Wed Nov 14 20:59:49 2012 +0100
Allow building without libfdt
Result is not being able to modify fdt to pass kernel arguments on certain
platforms.
qemu.spec | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/qemu.spec b/qemu.spec
index 68998c3..eab0034 100644
--- a/qemu.spec
+++ b/qemu.spec
@@ -31,6 +31,12 @@
# of using separately packaged images.
#
# Disabled by default.
+#
+# = have_libfdt =
+# Build with ability to inject kernel arguments in fdt on certain
+# platforms.
+#
+# Enabled by default.
%if 0%{?rhel}
# RHEL-specific defaults:
@@ -42,6 +48,7 @@
%bcond_without systemd # enabled
%bcond_with intree_roms # disabled
%bcond_with intree_pc_roms # disabled
+%bcond_without have_libfdt # enabled
%else
# General defaults:
%bcond_with kvmonly # disabled
@@ -52,6 +59,7 @@
%bcond_without systemd # enabled
%bcond_with intree_roms # disabled
%bcond_with intree_pc_roms # disabled
+%bcond_without have_libfdt # enabled
%endif
%global SLOF_gittagdate 20120731
@@ -126,8 +134,10 @@
# libfdt is only needed to build ARM, Microblaze or PPC emulators
%if 0%{?system_arm:1}%{?system_microblaze:1}%{?system_ppc:1}
+%if %{with have_libfdt}
%global need_fdt 1
%endif
+%endif
Summary: QEMU is a FAST! processor emulator
Name: qemu
More information about the scm-commits
mailing list