[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 1/9] update-linux-headers.sh: Don't hard code list o
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH 1/9] update-linux-headers.sh: Don't hard code list of architectures |
Date: |
Tue, 11 Sep 2012 18:26:29 -0300 |
From: Peter Maydell <address@hidden>
Rather than hardcoding the list of architectures in the kernel
header update script, just import headers for every architecture
which supports KVM (with a blacklist exception for ia64 which
has KVM headers but is dead). This reduces the number of QEMU
files which need to be updated to add support for a new KVM
architecture.
Acked-by: Jan Kiszka <address@hidden>
Signed-off-by: Peter Maydell <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>
---
scripts/update-linux-headers.sh | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index a639c5b..53a6f87 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -28,7 +28,21 @@ if [ -z "$output" ]; then
output="$PWD"
fi
-for arch in x86 powerpc s390; do
+# This will pick up non-directories too (eg "Kconfig") but we will
+# ignore them in the next loop.
+ARCHLIST=$(cd "$linux/arch" && echo *)
+
+for arch in $ARCHLIST; do
+ # Discard anything which isn't a KVM-supporting architecture
+ if ! [ -e "$linux/arch/$arch/include/asm/kvm.h" ]; then
+ continue
+ fi
+
+ # Blacklist architectures which have KVM headers but are actually dead
+ if [ "$arch" = "ia64" ]; then
+ continue
+ fi
+
make -C "$linux" INSTALL_HDR_PATH="$tmpdir" SRCARCH=$arch headers_install
rm -rf "$output/linux-headers/asm-$arch"
--
1.7.6.4
- [Qemu-devel] [PATCH 0/9] [PULL] qemu-kvm.git uq/master queue, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 3/9] memory: Flush coalesced MMIO on selected region access, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 2/9] kvm-all.c: Move init of irqchip_inject_ioctl out of kvm_irqchip_create(), Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 7/9] VGA: Flush coalesced MMIO on related MMIO/PIO accesses, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 9/9] kvm: Rename irqchip_inject_ioctl to irq_set_ioctl, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 5/9] memory: Fold memory_region_update_topology into memory_region_transaction_commit, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 1/9] update-linux-headers.sh: Don't hard code list of architectures,
Marcelo Tosatti <=
- [Qemu-devel] [PATCH 8/9] kvm: Stop flushing coalesced MMIO on vmexit, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 6/9] memory: Flush coalesced MMIO on mapping and state changes, Marcelo Tosatti, 2012/09/11
- [Qemu-devel] [PATCH 4/9] memory: Use transaction_begin/commit also for single-step operations, Marcelo Tosatti, 2012/09/11
- Re: [Qemu-devel] [PATCH 0/9] [PULL] qemu-kvm.git uq/master queue, Anthony Liguori, 2012/09/17