Browse Source

mklive: force modesetting on musl for now.

intel and radeon drivers are currently broken with musl (segmentation fault
in OsLookupColor()).
Juan RP 10 years ago
parent
commit
af2fcf925a
2 changed files with 9 additions and 0 deletions
  1. 4 0
      data/xorg-modesetting.conf
  2. 5 0
      mklive.sh.in

+ 4 - 0
data/xorg-modesetting.conf

@@ -0,0 +1,4 @@
+Section "Device"
+	Identifier "modesetting"
+	Driver "modesetting"
+EndSection

+ 5 - 0
mklive.sh.in

@@ -115,6 +115,11 @@ install_packages() {
     else
     else
         install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
         install -Dm755 /usr/sbin/void-installer $ROOTFS/usr/sbin/void-installer
     fi
     fi
+    case "$BASE_ARCH" in
+        *-musl) # XXX force modesetting with musl for now.
+            install -Dm644 data/xorg-modesetting.conf $ROOTFS/usr/share/X11/xorg.conf.d/99-modesetting.conf
+            ;;
+    esac
     # Cleanup and remove useless stuff.
     # Cleanup and remove useless stuff.
     rm -rf $ROOTFS/var/cache/* $ROOTFS/run/* $ROOTFS/var/run/*
     rm -rf $ROOTFS/var/cache/* $ROOTFS/run/* $ROOTFS/var/run/*
 }
 }