[kernel] r12252 - in dists/sid/linux-2.6/debian/patches: features/all/xen series

Bastian Blank waldi at alioth.debian.org
Wed Sep 24 20:14:39 UTC 2008


Author: waldi
Date: Wed Sep 24 20:14:38 2008
New Revision: 12252

Log:
Hardcode output of the Makefile generation of the Xen support.

* debian/patches/features/all/xen/hardcode-xen-makefile.patch: Add.
* debian/patches/series/7-extra: Add new patch.


Added:
   dists/sid/linux-2.6/debian/patches/features/all/xen/hardcode-xen-makefile.patch
Modified:
   dists/sid/linux-2.6/debian/patches/series/7-extra

Added: dists/sid/linux-2.6/debian/patches/features/all/xen/hardcode-xen-makefile.patch
==============================================================================
--- (empty file)
+++ dists/sid/linux-2.6/debian/patches/features/all/xen/hardcode-xen-makefile.patch	Wed Sep 24 20:14:38 2008
@@ -0,0 +1,50 @@
+diff --git a/scripts/Makefile.build b/scripts/Makefile.build
+index e89ae81..302d893 100644
+--- a/scripts/Makefile.build
++++ b/scripts/Makefile.build
+@@ -74,12 +74,6 @@ $(warning kbuild: Makefile.build is included improperly)
+ endif
+ 
+ ifeq ($(CONFIG_XEN),y)
+-$(objtree)/scripts/Makefile.xen: $(srctree)/scripts/Makefile.xen.awk $(srctree)/scripts/Makefile.build
+-	@echo '  Updating $@'
+-	$(if $(shell echo a | $(AWK) '{ print gensub(/a/, "AA", "g"); }'),\
+-        ,$(error 'Your awk program does not define gensub.  Use gawk or another awk with gensub'))
+-	@$(AWK) -f $< $(filter-out $<,$^) >$@
+-
+ xen-src-single-used-m	:= $(patsubst $(srctree)/%,%,$(wildcard $(addprefix $(srctree)/,$(single-used-m:.o=-xen.c))))
+ xen-single-used-m	:= $(xen-src-single-used-m:-xen.c=.o)
+ single-used-m		:= $(filter-out $(xen-single-used-m),$(single-used-m))
+diff --git a/scripts/Makefile.xen b/scripts/Makefile.xen
+new file mode 100644
+index 0000000..c1cf128
+--- /dev/null
++++ b/scripts/Makefile.xen
+@@ -0,0 +1,27 @@
++$(obj)/%.s: $(src)/%-xen.c FORCE
++	$(call if_changed_dep,cc_s_c)
++
++$(obj)/%.i: $(src)/%-xen.c FORCE
++	$(call if_changed_dep,cc_i_c)
++
++$(obj)/%.symtypes : $(src)/%-xen.c FORCE
++	$(call if_changed_dep,cc_symtypes_c)
++
++$(obj)/%.o: $(src)/%-xen.c FORCE
++	$(call cmd,force_checksrc)
++	$(call if_changed_rule,cc_o_c)
++
++$(xen-single-used-m): $(obj)/%.o: $(src)/%-xen.c FORCE
++	$(call cmd,force_checksrc)
++	$(call if_changed_rule,cc_o_c)
++	@{ echo $(@:.o=.ko); echo $@; } > $(MODVERDIR)/$(@F:.o=.mod)
++
++$(obj)/%.lst: $(src)/%-xen.c FORCE
++	$(call if_changed_dep,cc_lst_c)
++
++$(obj)/%.s: $(src)/%-xen.S FORCE
++	$(call if_changed_dep,as_s_S)
++
++$(obj)/%.o: $(src)/%-xen.S FORCE
++	$(call if_changed_dep,as_o_S)
++

Modified: dists/sid/linux-2.6/debian/patches/series/7-extra
==============================================================================
--- dists/sid/linux-2.6/debian/patches/series/7-extra	(original)
+++ dists/sid/linux-2.6/debian/patches/series/7-extra	Wed Sep 24 20:14:38 2008
@@ -1,5 +1,6 @@
 - features/all/xen/tip-x86.patch featureset=xen
 + features/all/xen/suse-20080808143035.patch featureset=xen
++ features/all/xen/hardcode-xen-makefile.patch featureset=xen
 + features/all/xen/remove-4gb-warning.patch featureset=xen
 + features/all/xen/fix-pci-hook.patch featureset=xen
 + features/all/xen/workaround-pte-file.patch featureset=xen



More information about the Kernel-svn-changes mailing list