qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Bharat Bhushan <r65777@freescale.com>
To: qemu-devel@nongnu.org, peter.maydell@linaro.org,
	jan.kiszka@siemens.com, agraf@suse.de, qemu-ppc@nongnu.org
Cc: Bharat Bhushan <bharat.bhushan@freescale.com>
Subject: [Qemu-devel] [PATCH v2] Added uapi directory into linux-header
Date: Mon, 17 Dec 2012 21:31:07 +0530	[thread overview]
Message-ID: <1355760067-12087-1-git-send-email-bharat.bhushan@freescale.com> (raw)

Linux ARCH specific header files are now in uapi/ directory also.
These header files (epapr_hcalls.h on powerpc) are needed in qemu
in linux-headers/uapi/asm/ directory as these are referenced by
other header files in linux-headers/asm/.

This patch is about changing the scripts for same.

Signed-off-by: Bharat Bhushan <bharat.bhushan@freescale.com>
---
v2:
 - remove symlink on distclean
 - review comments on v1

 Makefile                        |    1 +
 configure                       |    4 ++++
 scripts/update-linux-headers.sh |   12 ++++++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/Makefile b/Makefile
index 9ecbcbb..ed320ea 100644
--- a/Makefile
+++ b/Makefile
@@ -282,6 +282,7 @@ distclean: clean
 	rm -f qemu-doc.vr
 	rm -f config.log
 	rm -f linux-headers/asm
+	rm -f linux-headers/uapi/asm
 	rm -f qemu-tech.info qemu-tech.aux qemu-tech.cp qemu-tech.dvi qemu-tech.fn qemu-tech.info qemu-tech.ky qemu-tech.log qemu-tech.pdf qemu-tech.pg qemu-tech.toc qemu-tech.tp qemu-tech.vr
 	for d in $(TARGET_DIRS) $(QEMULIBS); do \
 	rm -rf $$d || exit 1 ; \
diff --git a/configure b/configure
index 38b1cc6..4c11e3d 100755
--- a/configure
+++ b/configure
@@ -3725,6 +3725,10 @@ if test "$linux" = "yes" ; then
     if [ -e "$source_path/linux-headers/asm-$linux_arch" ]; then
       symlink "$source_path/linux-headers/asm-$linux_arch" linux-headers/asm
     fi
+    if [ -e "$source_path/linux-headers/uapi/asm-$linux_arch" ]; then
+      symlink "$source_path/linux-headers/uapi/asm-$linux_arch" linux-headers/uapi/asm
+    fi
+
 fi
 
 for target in $target_list; do
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index 4c7b566..44e6cad 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -46,14 +46,26 @@ for arch in $ARCHLIST; do
 
     make -C "$linux" INSTALL_HDR_PATH="$tmpdir" SRCARCH=$arch headers_install
 
+    if [ -e "$linux/arch/$arch/include/uapi" ] &&
+        ! [ -e "$output/linux-headers/uapi" ] ; then
+        mkdir "$output/linux-headers/uapi"
+    fi
+
     rm -rf "$output/linux-headers/asm-$arch"
     mkdir -p "$output/linux-headers/asm-$arch"
+    if [ -e "$linux/arch/$arch/include/uapi/asm" ] ; then
+        rm -rf "$output/linux-headers/uapi/asm-$arch"
+        mkdir -p "$output/linux-headers/uapi/asm-$arch"
+    fi
     for header in kvm.h kvm_para.h; do
         cp "$tmpdir/include/asm/$header" "$output/linux-headers/asm-$arch"
     done
     if [ $arch = x86 ]; then
         cp "$tmpdir/include/asm/hyperv.h" "$output/linux-headers/asm-x86"
     fi
+    if [ $arch = powerpc ]; then
+        cp "$tmpdir/include/asm/epapr_hcalls.h" "$output/linux-headers/uapi/asm-powerpc/"
+    fi
 done
 
 rm -rf "$output/linux-headers/linux"
-- 
1.7.0.4

             reply	other threads:[~2012-12-17 16:20 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-17 16:01 Bharat Bhushan [this message]
2012-12-17 17:48 ` [Qemu-devel] [PATCH v2] Added uapi directory into linux-header Alexander Graf
2012-12-18  1:14   ` Bhushan Bharat-R65777
2012-12-18  1:20     ` Alexander Graf
2012-12-18  1:27       ` Bhushan Bharat-R65777
2012-12-18  1:29         ` Alexander Graf
2012-12-18  2:07           ` Bhushan Bharat-R65777
2012-12-18 10:08             ` Alexander Graf
2012-12-18 10:19               ` Bhushan Bharat-R65777
2012-12-18 10:38                 ` Alexander Graf
2012-12-18 14:10 ` David Howells
2012-12-18 14:11 ` David Howells

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1355760067-12087-1-git-send-email-bharat.bhushan@freescale.com \
    --to=r65777@freescale.com \
    --cc=agraf@suse.de \
    --cc=bharat.bhushan@freescale.com \
    --cc=jan.kiszka@siemens.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).