forked from T-vK/MobilePassThrough
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
318 additions
and
99 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
##################################################################################################### | ||
# This file is supposed to be `source`d by the `scripts/main/setup.sh` bash script. | ||
# It specifies which executables and files and kernel parameters what part of this project depends on | ||
# WARNING: File dependencies can't contain spaces at the moment | ||
# Usage: `source ./requirements.txt` | ||
##################################################################################################### | ||
|
||
KERNEL_PARAMS_GENERAL=("iommu=1" "kvm.ignore_msrs=1" "rd.driver.pre=vfio-pci") | ||
KERNEL_PARAMS_INTEL_CPU=("intel_iommu=on") | ||
KERNEL_PARAMS_AMD_CPU=("amd_iommu=on") | ||
KERNEL_PARAMS_INTEL_GPU=("i915.enable_gvt=1") | ||
#KERNEL_PARAMS_AMD_GPU=() | ||
#KERNEL_PARAMS_NVIDIA_GPU=() | ||
KERNEL_PARAMS_BUMBLEBEE_NVIDIA=("nouveau.modeset=0") | ||
#EXEC_DEPS_GENERAL=("sudo" "bash" "mv" "cp" "sed" "awk" "git" "echo" "ls" "wget" "curl" "printf" "cd" "mkdir" "chmod" "chown" "grep" "cut" "which") | ||
EXEC_DEPS_FAKE_BATTERY=("iasl") | ||
EXEC_DEPS_OVMF_VBIOS_PATCH=("git" "docker") | ||
EXEC_DEPS_GENERATE_CONFIG=("crudini") | ||
EXEC_DEPS_VBIOS_FINDER=("git" "wget" "curl" "unzip" "ruby" "gem" "bundle" "7za" "make" "innoextract" "upx") | ||
FILE_DEPS_VBIOS_FINDER=("/usr/include/{ruby,ruby-2.7}/ruby.h") | ||
EXEC_DEPS_VIRTUALIZATION=("qemu-system-x86_x64" "virsh" "virt-viewer" "spicy") | ||
FILE_DEPS_VIRTUALIZATION=("OVMF/OVMF_CODE.fd" "OVMF/OVMF_VARS.fd" "virtio-win/virtio-win.iso") # TODO: get the iso using wget cuz only rhel distros have a package for that anyways | ||
EXEC_DEPS_RDP=("remmina") | ||
EXEC_DEPS_SAMBA=("samba") | ||
EXEC_DEPS_IGPU_PASSTHROUGH=("uuid" "intel-virtual-output") | ||
EXEC_DEPS_HELPER_ISO=("genisoimage") | ||
EXEC_DEPS_UEFI_CHECK=("systool") | ||
EXEC_DEPS_COMPATIBILITY_CHECK=("systool" "lshw" "lspci" "dmidecode" "lsusb" "lsblk" "lscpu") | ||
EXEC_DEPS_CPU_CHECK=("lscpu") | ||
EXEC_DEPS_GPU_CHECK=("lshw") | ||
|
||
############################################################################################################################# | ||
|
||
ALL_EXEC_DEPS="" # Will contain all content of all variables starting with EXEC_DEPS | ||
ALL_EXEC_DEPS_VARS="$(set -o posix ; set | grep -P '^EXEC_DEPS' | cut -d'=' -f1 | tr '\n' ' ')" | ||
for deps in $ALL_EXEC_DEPS_VARS; do | ||
ALL_EXEC_DEPS+="$(eval "echo \" \${$deps[*]}\"")" | ||
done | ||
|
||
ALL_FILE_DEPS="" # Will contain all content of all variables starting with FILE_DEPS | ||
ALL_FILE_DEPS_VARS="$(set -o posix ; set | grep -P '^FILE_DEPS' | cut -d'=' -f1 | tr '\n' ' ')" | ||
for deps in $ALL_FILE_DEPS_VARS; do | ||
ALL_FILE_DEPS+="$(eval "echo \" \${$deps[*]}\"")" | ||
done |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
##################################################################################################### | ||
# This script is not meant to be executed. It should be `source`d. | ||
# It creates a bunch of variables telling you what kinds of CPUs the system has. | ||
# Use it like this: `source "./cpu-check.sh"` | ||
##################################################################################################### | ||
|
||
LSCPU_OUTPUT="$(sudo lscpu)" | ||
if echo -e "$LSCPU_OUTPUT" | grep "Model name: " | grep -qi "intel"; then | ||
export HAS_INTEL_CPU=true | ||
fi | ||
|
||
if echo -e "$LSCPU_OUTPUT" | grep "Model name: " | grep -qi "AMD"; then | ||
export HAS_AMD_CPU=true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.