-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathvars.sh
More file actions
25 lines (22 loc) · 1.62 KB
/
vars.sh
File metadata and controls
25 lines (22 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-or-later
TOP=$HOME/emulation/linux/bin #location for the build, change this for your location
KERNEL="7.0" #Kernel release number. (or see cli options)
V="${KERNEL:0:1}" #Kernel version for folder (probably breaks when 10 or larger)
KTYPE="xz" #gz used by RC, xz by stable releases, but should work.
#if posible, I would prever xz for its size and decompress seed
BUSY="1.37.0" #busybox release number
ARCH="x86_64" #default arch (options: x86_64, i686, arm64, armhf, powerpc64le)
ARC="x86" #short arch (x86, pentium3)
COMPILER="CC=gcc" #compiler pre. other options: musl-gcc
#(2020 Musl fix for x86, might break other distro if musl missing)
IP="192.168.66.6" #IP to be used by the virtual machine
GATEWAY="192.168.66.1" #default gateway to be used
DNS="1.1.1.1" #default DNS, use 8.8.8.8 if you want silly google
HOSTNAME="TeenyQemuBox" #hostname
MODULEURL=$TOP/build/lib/modules/linux-$ARC/ #modprobe url
LOGINREQUIRED="/bin/login" #replace with /bin/sh for no login required, /bin/login needed else
#seems one can simply Ctrl+C out of login tho
#Host specific variables, change if poormans host
CORECOUNT=$(( $(nproc) - 1)) #$(nproc) or change to a number like 1 or 8 depending on the core count to use
RAM="1G" #1G minimal for qemu , 2G or more recommended. (used only for qemu invocation)