- # Apply Xen patches (provided by SuSE)
- cd $(DIR_SRC) && tar jxf $(DIR_DL)/linux-$(VER)-suse_xen_patches-1.tar.bz2
- cp -f $(DIR_SRC)/src/patches/suse_xen_series.conf $(DIR_SRC)/linux-$(VER)-suse_xen_patches/series.conf
- cd $(DIR_SRC)/linux-$(VER)-suse_xen_patches && \
- for x in $$( ./guards $$( ./arch-symbols) < ./series.conf); do \
- echo "*********** [Patch: $$x]"; \
- patch -d $(DIR_APP) -p1 < $$x || break; \
- done
- rm -rf $(DIR_SRC)/linux-*-suse_xen_patches
-
- # Fix strange patchset errors
- cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-2.6.32.8-xen-patch-fixes.patch
+ # Apply gentoo Xen patches
+ mkdir -p $(DIR_SRC)/xen-patches
+ cd $(DIR_SRC)/xen-patches && tar jxf $(DIR_DL)/xen-patches-2.6.32-2.tar.bz2
+
+ for x in `ls -1 $(DIR_SRC)/xen-patches/*.patch1`; do \
+ echo "*********** [Patch: $$x]"; \
+ cd $(DIR_APP) && pwd && patch -Np1 < $$x || exit 1; \
+ done
+ rm -rf $(DIR_SRC)/xen-patches