Skip to content

Commit 39050b3

Browse files
committed
Arch: Un-bitrot
1 parent b311ca9 commit 39050b3

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

Configs/Arch.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@
118118
"Scripts/Arch/cross_x86",
119119
"Scripts/Arch/mega_install_packages.sh",
120120
"Scripts/Arch/build_install_mesa.sh",
121-
"Scripts/Arch/break_chroot.sh",
122-
"Scripts/Arch/unbreak_chroot.sh"
121+
"Scripts/chroot.py"
123122
],
124123

125124
"CopyFiles_Stage1_CMT": [
@@ -132,8 +131,7 @@
132131
["cross_x86", "root/"],
133132
["mega_install_packages.sh", "root/"],
134133
["build_install_mesa.sh", "root/"],
135-
["break_chroot.sh", "/"],
136-
["unbreak_chroot.sh", "/"]
134+
["chroot.py", "/"]
137135
],
138136

139137
"Commands_Stage1_0_CMT": [
@@ -188,6 +186,7 @@
188186
"pacman-key --populate",
189187
"sed -i 's/#Server = https:\\/\\/geo.mirror.pkgbuild.com\\/$repo\\/os\\/$arch\/Server = https:\\/\\/geo.mirror.pkgbuild.com\\/$repo\\/os\\/$arch\/' /etc/pacman.d/mirrorlist",
190188
"sed -i 's/CheckSpace/#CheckSpace/' /etc/pacman.conf",
189+
"sed -i 's/#ParallelDownloads = 5/ParallelDownloads = 20/' /etc/pacman.conf",
191190
"pacman --noconfirm -Syu",
192191
"pacman --noconfirm -S perl",
193192
"perl -0777 -pi -e 's/#\\[multilib\\]\\n#Include\/\\[multilib\\]\\nInclude\/igs' /etc/pacman.conf",
@@ -208,7 +207,7 @@
208207
"find /sbin/ /bin/ /usr/bin/ -perm /2000 -delete",
209208
"pacman --noconfirm -R rust-bindgen sudo clang gcc rust",
210209
"pacman --noconfirm -Scc",
211-
"sh ./break_chroot.sh"
210+
"chmod +r /usr/lib/dbus-daemon-launch-helper"
212211
],
213212

214213
"Commands_Stage2_CMT": [
@@ -218,6 +217,10 @@
218217

219218
"Commands_Stage2": [
220219
"export ROOTFS=./RootFS",
220+
"reset",
221+
"echo 'Breaking'",
222+
"python3 $ROOTFS/chroot.py break",
223+
"echo 'Did it'",
221224
"umount $ROOTFS/proc/",
222225
"umount -R $ROOTFS/sys/",
223226
"umount -R $ROOTFS/dev/pts/",

Scripts/Arch/build_install_mesa.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ pacman --noconfirm -S \
1010
libpciaccess lib32-libpciaccess \
1111
glslang \
1212
python-mako \
13+
python-yaml \
14+
python-ply \
1315
libglvnd lib32-libglvnd \
1416
byacc flex bison \
1517
wayland-protocols \
@@ -29,10 +31,10 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
2931
cd /root
3032

3133
# Clone meson
32-
git clone --depth=1 --branch 1.3.1 https://github.com/mesonbuild/meson.git
34+
git clone --depth=1 --branch 1.5.1 https://github.com/mesonbuild/meson.git
3335

3436
# Build and install DRM
35-
git clone --depth=1 --branch libdrm-2.4.119 https://gitlab.freedesktop.org/mesa/drm.git
37+
git clone --depth=1 --branch libdrm-2.4.122 https://gitlab.freedesktop.org/mesa/drm.git
3638
cd drm
3739

3840
mkdir Build
@@ -69,16 +71,13 @@ ninja install
6971
cd /root
7072

7173
# Build and install mesa
72-
git clone --depth=1 --branch mesa-24.1.0 https://gitlab.freedesktop.org/mesa/mesa.git
74+
git clone --depth=1 --branch mesa-24.3.3 https://gitlab.freedesktop.org/mesa/mesa.git
7375
cd mesa
7476
mkdir Build
7577
mkdir Build_x86
7678

77-
# Update asahi
78-
sed -i 's/native : true/native : not meson.can_run_host_binaries()/g' src/asahi/clc/meson.build
79-
80-
export GALLIUM_DRIVERS="r300,r600,radeonsi,nouveau,virgl,svga,swrast,iris,kmsro,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,asahi,d3d12"
81-
export VULKAN_DRIVERS="amd,broadcom,freedreno,panfrost,swrast,virtio,nouveau"
79+
export GALLIUM_DRIVERS="r300,r600,radeonsi,nouveau,virgl,svga,swrast,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12,asahi,iris"
80+
export VULKAN_DRIVERS="amd,broadcom,freedreno,panfrost,swrast,virtio,nouveau,intel,asahi"
8281

8382
# Needed for rusticl
8483
rustup target add i686-unknown-linux-gnu
@@ -92,7 +91,7 @@ cd Build
9291
-Dgallium-drivers=$GALLIUM_DRIVERS \
9392
-Dvulkan-drivers=$VULKAN_DRIVERS \
9493
-Dplatforms=x11,wayland \
95-
-Dfreedreno-kmds=msm,virtio \
94+
-Dfreedreno-kmds=msm,virtio,kgsl \
9695
-Dglvnd=enabled \
9796
-Dc_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
9897
-Dcpp_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
@@ -106,15 +105,16 @@ cd Build_x86
106105

107106
# Asahi and Iris disabled because {asahi,intel}_clc fail to link to the correct libclang-cpp
108107
# Same issue with rusticl
109-
export GALLIUM_DRIVERS="r300,r600,radeonsi,nouveau,virgl,svga,swrast,kmsro,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12"
108+
export GALLIUM_DRIVERS="r300,r600,radeonsi,nouveau,virgl,svga,swrast,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,d3d12"
109+
export VULKAN_DRIVERS="amd,broadcom,freedreno,panfrost,swrast,virtio"
110110
/root/meson/meson.py setup -Dprefix=/usr -Dlibdir=/usr/lib32 \
111111
-Dbuildtype=release \
112112
-Db_ndebug=true \
113113
-Dgallium-rusticl=false -Dopencl-spirv=false -Dshader-cache=enabled -Dllvm=enabled \
114114
-Dgallium-drivers=$GALLIUM_DRIVERS \
115115
-Dvulkan-drivers=$VULKAN_DRIVERS \
116116
-Dplatforms=x11,wayland \
117-
-Dfreedreno-kmds=msm,virtio \
117+
-Dfreedreno-kmds=msm,virtio,kgsl \
118118
-Dglvnd=enabled \
119119
-Dc_args="-m32 -mfpmath=sse -msse -msse2 -mstackrealign" \
120120
-Dcpp_args="-m32 -mfpmath=sse -msse -msse2 -mstackrealign" \

0 commit comments

Comments
 (0)