mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:29:24 +08:00
lib.buildNixpkgsConfig: fix xen build
This commit is contained in:
@@ -115,6 +115,7 @@ in platformConfig //
|
||||
assimp = prev.assimp.override { stdenv = final.genericPackages.stdenv; };
|
||||
redis = prev.redis.overrideAttrs (prev: { doCheck = false; });
|
||||
wannier90 = prev.wannier90.overrideAttrs { buildFlags = [ "dynlib" ]; };
|
||||
xen = prev.xen.overrideAttrs (prev: { patches = prev.patches or [] ++ [ ./xen.patch ]; });
|
||||
# libinsane = prev.libinsane.overrideAttrs (prev:
|
||||
# { nativeCheckInputs = builtins.filter (p: p.pname != "valgrind") prev.nativeCheckInputs; });
|
||||
lib2geom = prev.lib2geom.overrideAttrs (prev: { doCheck = false; });
|
||||
|
||||
15
flake/lib/buildNixpkgsConfig/xen.patch
Normal file
15
flake/lib/buildNixpkgsConfig/xen.patch
Normal file
@@ -0,0 +1,15 @@
|
||||
diff --git a/xen/arch/x86/boot/Makefile b/xen/arch/x86/boot/Makefile
|
||||
index d45787665907..80c32163fbbd 100644
|
||||
--- a/xen/arch/x86/boot/Makefile
|
||||
+++ b/xen/arch/x86/boot/Makefile
|
||||
@@ -40,8 +40,8 @@ LD32 := $(LD) $(subst x86_64,i386,$(LDFLAGS_DIRECT))
|
||||
# are affected by both text_diff and text_gap. Ensure the sum of gap and diff
|
||||
# is greater than 2^16 so that any 16bit relocations if present in the object
|
||||
# file turns into a build-time error.
|
||||
-text_gap := 0x010200
|
||||
-text_diff := 0x408020
|
||||
+text_gap := 0x010240
|
||||
+text_diff := 0x608040
|
||||
|
||||
$(obj)/build32.base.lds: AFLAGS-y += -DGAP=$(text_gap) -DTEXT_DIFF=$(text_diff)
|
||||
$(obj)/build32.offset.lds: AFLAGS-y += -DGAP=$(text_gap) -DTEXT_DIFF=$(text_diff) -DAPPLY_OFFSET
|
||||
Reference in New Issue
Block a user