mirror of
https://github.com/FEX-Emu/RootFS.git
synced 2024-11-23 06:20:11 +00:00
Remove Ubuntu 23.04
This commit is contained in:
parent
7eea8fb3e5
commit
0eccc9a2d0
@ -60,7 +60,6 @@ cd install; tar -czf ../mesa_21_1_x86.tar.gz *; cd ..
|
||||
# 2m52s
|
||||
time ../build_image.py ../Configs/Ubuntu_22_04.json /mnt/Work/Projects/work/FEX-rootfs/Cache/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_22_04/
|
||||
time ../build_image.py ../Configs/Ubuntu_22_04_Minimal.json /mnt/Work/Projects/work/FEX-rootfs/Cache/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_22_04_Minimal/
|
||||
time ../build_image.py ../Configs/Ubuntu_23_04.json /mnt/Work/Projects/work/FEX-rootfs/Cache/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_04/
|
||||
time ../build_image.py ../Configs/Ubuntu_23_10.json /mnt/Work/Projects/work/FEX-rootfs/Cache/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_10/
|
||||
time ../build_image.py ../Configs/Arch.json /mnt/Work/Projects/work/FEX-rootfs/Cache_Arch/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Arch/
|
||||
time ../build_image.py ../Configs/Fedora_38.json /mnt/Work/Projects/work/FEX-rootfs/Cache_Fedora/ /mnt/Work/Projects/work/FEX-rootfs/RootFS_Fedora_38/
|
||||
@ -75,9 +74,6 @@ FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_22_04/Ubuntu_2
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_22_04_Minimal/Ubuntu_22_04_Minimal.sqsh
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_22_04_Minimal/Ubuntu_22_04_Minimal.ero
|
||||
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_04/Ubuntu_23_04.sqsh
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_04/Ubuntu_23_04.ero
|
||||
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_10/Ubuntu_23_10.sqsh
|
||||
FEXRootFSFetcher /mnt/Work/Projects/work/FEX-rootfs/RootFS_Ubuntu_23_10/Ubuntu_23_10.ero
|
||||
|
||||
|
@ -1,318 +0,0 @@
|
||||
{
|
||||
"ImageName" : "Ubuntu_23_04",
|
||||
"Guest_SHA256Sums" : "http://cdimage.ubuntu.com/ubuntu-base/releases/23.04/release/SHA256SUMS",
|
||||
"Guest_BaseURL" : "http://cdimage.ubuntu.com/ubuntu-base/releases/23.04/release/",
|
||||
"Guest_Image" : "ubuntu-base-23.04-base-amd64.tar.gz",
|
||||
|
||||
"Host_SHA256Sums" : "https://cloud-images.ubuntu.com/releases/focal/release/SHA256SUMS",
|
||||
"Host_BaseURL" : "https://cloud-images.ubuntu.com/releases/focal/release/",
|
||||
"Host_Image" : "ubuntu-20.04-server-cloudimg-amd64.img",
|
||||
"QEmu" : "qemu-system-x86_64",
|
||||
|
||||
"PKGInstallCMD_CMT": [
|
||||
"The package command used to install packages"
|
||||
],
|
||||
|
||||
"PKGInstallCMD" : "/root/mega_install_packages.sh ",
|
||||
|
||||
"PackagesToAdd_CMT": [
|
||||
"Which package names to install",
|
||||
"Package installation happens just after the `Commands_InChroot` step",
|
||||
"Package installation will install packages one by one",
|
||||
"Uses the PKGInstallCMD and iterates over the list individually"
|
||||
],
|
||||
|
||||
"PackagesToAdd" : [
|
||||
"sudo",
|
||||
"rsync",
|
||||
"apt-utils",
|
||||
"lsb-release",
|
||||
"libc-bin",
|
||||
"libc6:i386",
|
||||
"dbus",
|
||||
"systemd",
|
||||
"pulseaudio",
|
||||
"libgles1",
|
||||
"libgles2",
|
||||
"libglx-mesa0",
|
||||
"libgl1-mesa-dri",
|
||||
"libgl1-mesa-glx",
|
||||
"libglvnd-dev",
|
||||
"libglvnd-dev:i386",
|
||||
"libglu1-mesa",
|
||||
"libegl1",
|
||||
"libegl1:i386",
|
||||
"mesa-utils",
|
||||
"libunwind8",
|
||||
"libsdl1.2debian",
|
||||
"libsdl2-2.0-0",
|
||||
"protobuf-compiler",
|
||||
"libprotobuf-c1",
|
||||
"libopenal1",
|
||||
"libjpeg8",
|
||||
"libjpeg8:i386",
|
||||
"libjpeg62",
|
||||
"libjpeg62:i386",
|
||||
"libspeex1",
|
||||
"libspeex1:i386",
|
||||
"libvorbisfile3",
|
||||
"libvorbisfile3:i386",
|
||||
"libgles1:i386",
|
||||
"libgles2:i386",
|
||||
"libglx-mesa0:i386",
|
||||
"libgl1-mesa-dri:i386",
|
||||
"libgl1-mesa-glx:i386",
|
||||
"libglu1-mesa:i386",
|
||||
"libunwind8:i386",
|
||||
"libsdl1.2debian:i386",
|
||||
"libsdl2-2.0-0:i386",
|
||||
"libasound2-plugins:i386",
|
||||
"usbutils",
|
||||
"pciutils",
|
||||
"libpciaccess0",
|
||||
"libpciaccess0:i386",
|
||||
"libpciaccess-dev",
|
||||
"libpciaccess-dev:i386",
|
||||
"libglew2.2",
|
||||
"libxcb1",
|
||||
"libxcb-cursor0",
|
||||
"libxcb-imdkit1",
|
||||
"libxcb-xrm0",
|
||||
"libxcb-composite0",
|
||||
"libxcb-dri2-0",
|
||||
"libxcb-dri3-0",
|
||||
"libxcb-dpms0",
|
||||
"libxcb-glx0",
|
||||
"libxcb-shm0",
|
||||
"libxcb-damage0",
|
||||
"libxcb-shape0",
|
||||
"libxcb-xinput0",
|
||||
"libxcb-icccm4",
|
||||
"libxcb-image0",
|
||||
"libxcb-util1",
|
||||
"libxcb-keysyms1",
|
||||
"libxcb-xinerama0",
|
||||
"libxcb-xkb1",
|
||||
"libxcb-render0",
|
||||
"libxkbcommon-x11-0",
|
||||
"libxcb1:i386",
|
||||
"libxcb-composite0:i386",
|
||||
"libxcb-dri2-0:i386",
|
||||
"libxcb-dri3-0:i386",
|
||||
"libxcb-dpms0:i386",
|
||||
"libxcb-glx0:i386",
|
||||
"libxcb-shm0:i386",
|
||||
"libxcb-damage0:i386",
|
||||
"libxcb-shape0:i386",
|
||||
"libxcb-xinput0:i386",
|
||||
"libxcb-icccm4:i386",
|
||||
"libxcb-image0:i386",
|
||||
"libxcb-util1:i386",
|
||||
"libxcb-keysyms1:i386",
|
||||
"libxcb-xinerama0:i386",
|
||||
"libxcb-xkb1:i386",
|
||||
"libxcb-render0:i386",
|
||||
"libxkbcommon-x11-0:i386",
|
||||
"libwayland-client0:i386",
|
||||
"libwayland-dev:i386",
|
||||
"libwayland-egl-backend-dev:i386",
|
||||
"libx11-dev:i386",
|
||||
"libxext-dev:i386",
|
||||
"libxdamage-dev:i386",
|
||||
"libx11-xcb-dev:i386",
|
||||
"libxcb-present0:i386",
|
||||
"libxshmfence1:i386",
|
||||
"libxxf86vm1:i386",
|
||||
"libxrandr2:i386",
|
||||
"libllvm13",
|
||||
"libllvm14",
|
||||
"libllvm13:i386",
|
||||
"libllvm14:i386",
|
||||
"libva2",
|
||||
"libva2:i386",
|
||||
"libva-x11-2",
|
||||
"libva-x11-2:i386",
|
||||
"libharfbuzz0b",
|
||||
"libharfbuzz0b:i386",
|
||||
"libvdpau1",
|
||||
"libvdpau1:i386",
|
||||
"mesa-vdpau-drivers",
|
||||
"mesa-vdpau-drivers:i386",
|
||||
"libfuse2",
|
||||
"libfuse2:i386",
|
||||
"libopenal1",
|
||||
"libopenal1:i386",
|
||||
"libibus-1.0-5",
|
||||
"libibus-1.0-5:i386",
|
||||
"locales",
|
||||
"language-pack-en-base",
|
||||
"mangohud",
|
||||
"libnss3",
|
||||
"libnspr4",
|
||||
"python3",
|
||||
"python3-apt",
|
||||
"libssl3",
|
||||
"libssl3:i386",
|
||||
"curl",
|
||||
"xterm",
|
||||
"zenity",
|
||||
"xz-utils",
|
||||
"xdg-desktop-portal",
|
||||
"xdg-desktop-portal-gtk",
|
||||
"wine64",
|
||||
"wine32",
|
||||
"glibc-tools",
|
||||
"vulkan-tools",
|
||||
"pkgconf",
|
||||
"pkgconf:i386",
|
||||
"clinfo"
|
||||
],
|
||||
|
||||
"CopyFiles_Stage0_CMT": [
|
||||
"This stage copies files in to a temporary mount directory",
|
||||
"This ties in to the Stage1 to allow you to copy files from git repo to rootfs",
|
||||
"The filename here is the path relative to git repo base",
|
||||
"File is copied over to temp folder with same name"
|
||||
],
|
||||
"CopyFiles_Stage0": [
|
||||
"cross_x86",
|
||||
"Scripts/Ubuntu_23_04/build_install_mesa.sh",
|
||||
"build_libsegfault.sh",
|
||||
"build_install_renderdoc.sh",
|
||||
"build_install_gfxreconstruct.sh",
|
||||
"mega_install_packages.sh",
|
||||
"Scripts/Ubuntu/break_chroot.sh",
|
||||
"Scripts/Ubuntu/unbreak_chroot.sh"
|
||||
],
|
||||
|
||||
"CopyFiles_Stage1_CMT": [
|
||||
"This copies the files from the stage0 mount location with to a location in the rootfs",
|
||||
"First argument is the filename to copy from the temp folder",
|
||||
"Second argument is the location inside the rootfs where to copy to"
|
||||
],
|
||||
|
||||
"CopyFiles_Stage1": [
|
||||
["cross_x86", "root/"],
|
||||
["build_install_mesa.sh", "root/"],
|
||||
["build_libsegfault.sh", "root/"],
|
||||
["build_install_renderdoc.sh", "root/"],
|
||||
["build_install_gfxreconstruct.sh", "root/"],
|
||||
["mega_install_packages.sh", "root/"],
|
||||
["break_chroot.sh", "/"],
|
||||
["unbreak_chroot.sh", "/"]
|
||||
],
|
||||
|
||||
"Commands_Stage1_0_CMT": [
|
||||
"This stage runs commands inside the qemu VM",
|
||||
"Allows you to install packages that the VM requires and the rootfs doesn't"
|
||||
],
|
||||
"Commands_Stage1_0": [
|
||||
"export DEBIAN_FRONTEND=noninteractive",
|
||||
"apt-get update",
|
||||
"apt-get install -y coreutils pigz"
|
||||
],
|
||||
|
||||
"RemoveFiles_Stage1_CMT": [
|
||||
"Removes files from the rootfs prior to chrooting",
|
||||
"Some files are preconfiguring in the rootfs and need to be changed"
|
||||
],
|
||||
|
||||
"RemoveFiles_Stage1": [
|
||||
"/etc/hosts",
|
||||
"/etc/resolv.conf"
|
||||
],
|
||||
|
||||
"Commands_Stage1_CMT": [
|
||||
"Executes commands in the VM prior to chrooting",
|
||||
"Necessary to set up mounts that the rootfs needs"
|
||||
],
|
||||
|
||||
"Commands_Stage1": [
|
||||
"export ROOTFS=./RootFS",
|
||||
"mount -t proc /proc $ROOTFS/proc/",
|
||||
"mount --rbind --make-rslave /sys $ROOTFS/sys/",
|
||||
"mount --rbind --make-rslave /dev $ROOTFS/dev/",
|
||||
"mount --rbind --make-rslave /dev/pts $ROOTFS/dev/pts/"
|
||||
],
|
||||
|
||||
"Commands_InChroot_CMT": [
|
||||
"Executes commands inside the rootfs prior to installing packages",
|
||||
"!!! After this step, packages are installed !!!"
|
||||
],
|
||||
|
||||
"Commands_InChroot": [
|
||||
"echo \"nameserver 8.8.8.8\" > /etc/resolv.conf",
|
||||
"echo \"US/Eastern\" >/etc/timezone",
|
||||
"ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime",
|
||||
"chmod 1777 /tmp",
|
||||
"export DEBIAN_FRONTEND=noninteractive",
|
||||
"apt-get update",
|
||||
"apt-get clean",
|
||||
"dpkg --add-architecture i386",
|
||||
"apt-get update",
|
||||
"apt-get dist-upgrade -y"
|
||||
],
|
||||
|
||||
"Commands_InChroot2_CMT": [
|
||||
"Executes commands inside the rootfs immediately following package installation"
|
||||
],
|
||||
|
||||
"Commands_InChroot2": [
|
||||
"sh /root/build_install_mesa.sh",
|
||||
"sh /root/build_install_renderdoc.sh",
|
||||
"sh /root/build_install_gfxreconstruct.sh",
|
||||
"sh /root/build_libsegfault.sh",
|
||||
"apt-get purge -y lib*-dev",
|
||||
"apt-get purge -y lib*-dev:i386",
|
||||
"apt-get purge -y *-cross",
|
||||
"apt-get purge -y cpp-*",
|
||||
"apt-get purge -y --allow-remove-essential bsdutils",
|
||||
"apt-get purge -y openssh-client",
|
||||
"apt-get purge -y bsdextrautils",
|
||||
"apt-get purge -y cron",
|
||||
"apt-get purge -y nfs-common",
|
||||
"apt-get purge -y pkexec",
|
||||
"apt-get purge -y fuse3",
|
||||
"SUDO_FORCE_REMOVE=yes apt-get remove -y sudo",
|
||||
"apt autoremove -y --purge",
|
||||
"apt-get clean",
|
||||
"rm -Rf /var/lib/apt/lists/*",
|
||||
"rm -Rf /usr/local",
|
||||
"rm -Rf /root/*",
|
||||
"find /sbin/ /bin/ /usr/bin/ -perm /4000 -delete",
|
||||
"find /sbin/ /bin/ /usr/bin/ -perm /2000 -delete",
|
||||
"sh ./break_chroot.sh"
|
||||
],
|
||||
|
||||
"Commands_Stage2_CMT": [
|
||||
"Executes commands in the VM after rootfs setup",
|
||||
"Required to tear down state inside the rootfs"
|
||||
],
|
||||
|
||||
"Commands_Stage2": [
|
||||
"export ROOTFS=./RootFS",
|
||||
"umount $ROOTFS/proc/",
|
||||
"umount -R $ROOTFS/sys/",
|
||||
"umount -R $ROOTFS/dev/pts/",
|
||||
"umount -R $ROOTFS/dev/",
|
||||
"rmdir $ROOTFS/proc",
|
||||
"rmdir $ROOTFS/dev/pts",
|
||||
"rmdir $ROOTFS/dev",
|
||||
"rmdir $ROOTFS/sys"
|
||||
],
|
||||
|
||||
"RemoveFiles_Stage2": [
|
||||
],
|
||||
|
||||
"RemoveDirs_Stage2": [
|
||||
],
|
||||
|
||||
"Commands_Stage3": [
|
||||
],
|
||||
|
||||
"Commands_PreInstall": [
|
||||
],
|
||||
|
||||
"BinariesToInstall": [
|
||||
]
|
||||
}
|
@ -1,129 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Add source packages
|
||||
sed -i -e "s/^# deb/deb/g" /etc/apt/sources.list
|
||||
apt-get update
|
||||
|
||||
cd /root
|
||||
export DEBIAN_FRONTEND=noninteractive
|
||||
apt-get install -y git ninja-build clang gcc-i686-linux-gnu g++-i686-linux-gnu \
|
||||
llvm-dev libvulkan-dev libpciaccess-dev libglvnd-dev cargo
|
||||
|
||||
apt-get install -y libvulkan-dev:i386 libelf-dev:i386 libwayland-dev:i386 libwayland-egl-backend-dev:i386 \
|
||||
libpciaccess-dev:i386 \
|
||||
libx11-dev:i386 \
|
||||
libx11-xcb-dev:i386 \
|
||||
libxcb-dri3-dev:i386 \
|
||||
libxcb-dri2-0-dev:i386 \
|
||||
libxcb-glx0-dev:i386 \
|
||||
libxcb-present-dev:i386 \
|
||||
libxcb-randr0-dev:i386 \
|
||||
libxcb-shm0-dev:i386 \
|
||||
libxcb-sync-dev:i386 \
|
||||
libxcb-xfixes0-dev:i386 \
|
||||
libxdamage-dev:i386 \
|
||||
libxext-dev:i386 \
|
||||
libxfixes-dev:i386 \
|
||||
libxrandr-dev:i386 \
|
||||
libxshmfence-dev:i386 \
|
||||
libxxf86vm-dev:i386 \
|
||||
libglvnd-dev:i386
|
||||
|
||||
apt-get build-dep -y mesa
|
||||
|
||||
# Move to /root/
|
||||
cd /root
|
||||
|
||||
# Clone meson
|
||||
git clone --depth=1 --branch 1.2.0 https://github.com/mesonbuild/meson.git
|
||||
|
||||
# Build and install DRM
|
||||
git clone --depth=1 --branch libdrm-2.4.110 https://gitlab.freedesktop.org/mesa/drm.git
|
||||
cd drm
|
||||
|
||||
mkdir Build
|
||||
mkdir Build_x86
|
||||
|
||||
cd Build
|
||||
/root/meson/meson.py -Dprefix=/usr -Dlibdir=/usr/lib/x86_64-linux-gnu \
|
||||
-Dbuildtype=release \
|
||||
-Db_ndebug=true \
|
||||
-Dvc4=true -Dtegra=true -Dfreedreno=true -Dexynos=true -Detnaviv=true \
|
||||
-Dc_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
-Dcpp_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
..
|
||||
|
||||
ninja
|
||||
ninja install
|
||||
|
||||
cd ../
|
||||
cd Build_x86
|
||||
|
||||
/root/meson/meson.py -Dprefix=/usr -Dlibdir=/usr/lib/i386-linux-gnu \
|
||||
-Dbuildtype=release \
|
||||
-Db_ndebug=true \
|
||||
-Dvc4=true -Dtegra=true -Dfreedreno=true -Dexynos=true -Detnaviv=true \
|
||||
-Dc_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
-Dcpp_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
--cross-file /root/cross_x86 \
|
||||
..
|
||||
|
||||
ninja
|
||||
ninja install
|
||||
|
||||
# Move to /root/
|
||||
cd /root
|
||||
|
||||
# Build and install mesa
|
||||
git clone --depth=1 --branch mesa-23.3.0 https://gitlab.freedesktop.org/mesa/mesa.git
|
||||
cd mesa
|
||||
mkdir Build
|
||||
mkdir Build_x86
|
||||
|
||||
export GALLIUM_DRIVERS="r300,r600,radeonsi,nouveau,virgl,svga,swrast,iris,kmsro,v3d,vc4,freedreno,etnaviv,tegra,lima,panfrost,zink,asahi,d3d12"
|
||||
export VULKAN_DRIVERS="amd,intel,freedreno,swrast,broadcom,panfrost,virtio"
|
||||
|
||||
# Needed for rusticl
|
||||
cargo install bindgen-cli
|
||||
|
||||
export PATH=/root/.cargo/bin:$PATH
|
||||
|
||||
cd Build
|
||||
/root/meson/meson.py -Dprefix=/usr -Dlibdir=/usr/lib/x86_64-linux-gnu \
|
||||
-Dbuildtype=release \
|
||||
-Db_ndebug=true \
|
||||
-Dgallium-rusticl=true \
|
||||
-Dgallium-drivers=$GALLIUM_DRIVERS \
|
||||
-Dvulkan-drivers=$VULKAN_DRIVERS \
|
||||
-Dplatforms=x11,wayland \
|
||||
-Dglvnd=true \
|
||||
-Dc_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
-Dcpp_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
..
|
||||
|
||||
ninja
|
||||
ninja install
|
||||
|
||||
cd ../
|
||||
cd Build_x86
|
||||
|
||||
# No rusticl for 32-bit
|
||||
/root/meson/meson.py -Dprefix=/usr -Dlibdir=/usr/lib/i386-linux-gnu \
|
||||
-Dbuildtype=release \
|
||||
-Db_ndebug=true \
|
||||
-Dgallium-drivers=$GALLIUM_DRIVERS \
|
||||
-Dvulkan-drivers=$VULKAN_DRIVERS \
|
||||
-Dplatforms=x11,wayland \
|
||||
-Dglvnd=true \
|
||||
-Dc_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
-Dcpp_args="-mfpmath=sse -msse -msse2 -mstackrealign" \
|
||||
--cross-file /root/cross_x86 \
|
||||
..
|
||||
|
||||
ninja
|
||||
ninja install
|
||||
|
||||
cd /
|
||||
|
||||
cargo uninstall bindgen-cli
|
||||
apt-get remove -y cargo
|
Loading…
Reference in New Issue
Block a user