* [PATCH] Make " make sync" get correct header files with latest Linux source.
@ 2008-08-20 11:26 Zhang, Xiantao
2008-08-21 9:52 ` Zhang, Xiantao
0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Xiantao @ 2008-08-20 11:26 UTC (permalink / raw)
To: kvm-ia64, kvm; +Cc: Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 1097 bytes --]
>From 217ca6cfa90524d011fb219efcc0ac4e8a5b5e20 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Wed, 20 Aug 2008 18:46:14 +0800
Subject: [PATCH] KVM: Userspace: Make " make sync" get correct header
files with latest Linux source.
In latest linux repo, ia64, s390 and other archs moved header files from
$(LINUX)/include/asm-$(ARCH)/ to $(LINUX)/arch/$(ARCH)/include/asm/, so
this
patch adds the compatibility for new source structure.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index e5f43a2..9d5f652 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -56,6 +56,9 @@ header-sync:
"$(LINUX)"/./include/linux/kvm*.h \
"$(LINUX)"/./include/asm-*/kvm*.h \
$T/
+ -rsync -R \
+ "$(LINUX)"/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
+ $T/include/asm-$(ARCH_DIR)/
set -e && for i in $(find $T -name '*.h'); do \
$(call unifdef,$$i); done
--
1.5.1
[-- Attachment #2: 0001-KVM-Userspace-Make-make-sync-to-get-correct-hea.patch --]
[-- Type: application/octet-stream, Size: 1065 bytes --]
From 217ca6cfa90524d011fb219efcc0ac4e8a5b5e20 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Wed, 20 Aug 2008 18:46:14 +0800
Subject: [PATCH] KVM: Userspace: Make " make sync" get correct header files with latest Linux source.
In latest linux repo, ia64, s390 and other archs moved header files from
$(LINUX)/include/asm-$(ARCH)/ to $(LINUX)/arch/$(ARCH)/include/asm/, so this
patch adds the compatibility for new source structure.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index e5f43a2..9d5f652 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -56,6 +56,9 @@ header-sync:
"$(LINUX)"/./include/linux/kvm*.h \
"$(LINUX)"/./include/asm-*/kvm*.h \
$T/
+ -rsync -R \
+ "$(LINUX)"/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
+ $T/include/asm-$(ARCH_DIR)/
set -e && for i in $(find $T -name '*.h'); do \
$(call unifdef,$$i); done
--
1.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] Make " make sync" get correct header files with latest Linux source.
2008-08-20 11:26 [PATCH] Make " make sync" get correct header files with latest Linux source Zhang, Xiantao
@ 2008-08-21 9:52 ` Zhang, Xiantao
2008-08-21 12:49 ` Avi Kivity
0 siblings, 1 reply; 3+ messages in thread
From: Zhang, Xiantao @ 2008-08-21 9:52 UTC (permalink / raw)
To: Zhang, Xiantao, kvm-ia64, kvm; +Cc: Avi Kivity
[-- Attachment #1: Type: text/plain, Size: 2194 bytes --]
Avi,
Please drop the previous one due to its incompleteness, and help to
check-in this one.
Xiantao
>From ae0e1b37520f6aba051b5ebb47028520383ca494 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Thu, 21 Aug 2008 17:30:32 +0800
Subject: [PATCH] KVM: Userspace: Make " make sync" get correct header
files with latest Linux source.
In latest linux repo, ia64, s390 and other archs moved header files from
$(LINUX)/include/asm-$(ARCH)/ to $(LINUX)/arch/$(ARCH)/include/asm/, so
this
patch adds the compatibility for new source structure.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 5 ++++-
kernel/ia64/Makefile.pre | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index e5f43a2..6f8cc9d 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -36,7 +36,7 @@ hack-files = $(hack-files-$(ARCH_DIR))
all:: header-link prerequisite
# include header priority 1) $LINUX 2) $KERNELDIR 3)
include-compat
$(MAKE) -C $(KERNELDIR) M=`pwd` \
- LINUXINCLUDE="-I`pwd`/include -Iinclude
-I`pwd`/include-compat \
+ LINUXINCLUDE="-I`pwd`/include -Iinclude
-Iarch/${ARCH_DIR}/include -I`pwd`/include-compat \
-include include/linux/autoconf.h \
-include `pwd`/$(ARCH_DIR)/external-module-compat.h"
"$$@"
@@ -56,6 +56,9 @@ header-sync:
"$(LINUX)"/./include/linux/kvm*.h \
"$(LINUX)"/./include/asm-*/kvm*.h \
$T/
+ -rsync -R \
+ "$(LINUX)"/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
+ $T/include/asm-$(ARCH_DIR)/
set -e && for i in $(find $T -name '*.h'); do \
$(call unifdef,$$i); done
diff --git a/kernel/ia64/Makefile.pre b/kernel/ia64/Makefile.pre
index 033bdee..c55ea0f 100644
--- a/kernel/ia64/Makefile.pre
+++ b/kernel/ia64/Makefile.pre
@@ -20,4 +20,4 @@ asm-offsets.h: asm-offsets.s
echo "#endif") <$< >$@
asm-offsets.s: ia64/asm-offsets.c
- gcc -S -D__KERNEL__ -I$(KERNELDIR)/include -I./include
ia64/asm-offsets.c
+ gcc -S -D__KERNEL__ -I$(KERNELDIR)/include
-I$(KERNELDIR)/arch/ia64/include -I./include ia64/asm-offsets.c
--
1.5.1
[-- Attachment #2: 0001-KVM-Userspace-Make-make-sync-get-correct-header.patch --]
[-- Type: application/octet-stream, Size: 2024 bytes --]
From ae0e1b37520f6aba051b5ebb47028520383ca494 Mon Sep 17 00:00:00 2001
From: Xiantao Zhang <xiantao.zhang@intel.com>
Date: Thu, 21 Aug 2008 17:30:32 +0800
Subject: [PATCH] KVM: Userspace: Make " make sync" get correct header files with latest Linux source.
In latest linux repo, ia64, s390 and other archs moved header files from
$(LINUX)/include/asm-$(ARCH)/ to $(LINUX)/arch/$(ARCH)/include/asm/, so this
patch adds the compatibility for new source structure.
Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
---
kernel/Makefile | 5 ++++-
kernel/ia64/Makefile.pre | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/kernel/Makefile b/kernel/Makefile
index e5f43a2..6f8cc9d 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -36,7 +36,7 @@ hack-files = $(hack-files-$(ARCH_DIR))
all:: header-link prerequisite
# include header priority 1) $LINUX 2) $KERNELDIR 3) include-compat
$(MAKE) -C $(KERNELDIR) M=`pwd` \
- LINUXINCLUDE="-I`pwd`/include -Iinclude -I`pwd`/include-compat \
+ LINUXINCLUDE="-I`pwd`/include -Iinclude -Iarch/${ARCH_DIR}/include -I`pwd`/include-compat \
-include include/linux/autoconf.h \
-include `pwd`/$(ARCH_DIR)/external-module-compat.h"
"$$@"
@@ -56,6 +56,9 @@ header-sync:
"$(LINUX)"/./include/linux/kvm*.h \
"$(LINUX)"/./include/asm-*/kvm*.h \
$T/
+ -rsync -R \
+ "$(LINUX)"/arch/$(ARCH_DIR)/include/asm/./kvm*.h \
+ $T/include/asm-$(ARCH_DIR)/
set -e && for i in $(find $T -name '*.h'); do \
$(call unifdef,$$i); done
diff --git a/kernel/ia64/Makefile.pre b/kernel/ia64/Makefile.pre
index 033bdee..c55ea0f 100644
--- a/kernel/ia64/Makefile.pre
+++ b/kernel/ia64/Makefile.pre
@@ -20,4 +20,4 @@ asm-offsets.h: asm-offsets.s
echo "#endif") <$< >$@
asm-offsets.s: ia64/asm-offsets.c
- gcc -S -D__KERNEL__ -I$(KERNELDIR)/include -I./include ia64/asm-offsets.c
+ gcc -S -D__KERNEL__ -I$(KERNELDIR)/include -I$(KERNELDIR)/arch/ia64/include -I./include ia64/asm-offsets.c
--
1.5.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Make " make sync" get correct header files with latest Linux source.
2008-08-21 9:52 ` Zhang, Xiantao
@ 2008-08-21 12:49 ` Avi Kivity
0 siblings, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2008-08-21 12:49 UTC (permalink / raw)
To: Zhang, Xiantao; +Cc: kvm-ia64, kvm
Zhang, Xiantao wrote:
> Avi,
> Please drop the previous one due to its incompleteness, and help to
> check-in this one.
>
Sure; applied.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-21 12:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-20 11:26 [PATCH] Make " make sync" get correct header files with latest Linux source Zhang, Xiantao
2008-08-21 9:52 ` Zhang, Xiantao
2008-08-21 12:49 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox