forked from sehraf/d1-riscv-arch-image-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
consts.sh
39 lines (32 loc) · 1.06 KB
/
consts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/sh
export CROSS_COMPILE='riscv64-linux-gnu-'
export ARCH='riscv'
PWD="$(pwd)"
NPROC="$(nproc)"
export PWD
export NPROC
export ROOT_FS='archriscv-20210601.tar.zst'
export ROOT_FS_DL="https://archriscv.felixc.at/images/${ROOT_FS}"
# select 'arch', 'nezha_defconfig'
export KERNEL='nezha_defconfig'
# folder to mount rootfs
export MNT='mnt'
# folder to store compiled artifacts
export OUT_DIR="${PWD}/output"
# run as root
export SUDO='sudo'
# use arch-chroot?
export USE_CHROOT=1
# pinned commits (no notice when things change)
export COMMIT_BOOT0='0ad88bfdb723b1ac74cca96122918f885a4781ac' # from 28.02.2022
export COMMIT_UBOOT='7446a47204fd8923b99ced0091667979c4fd27fa' # equals d1-wip (06.04.2022)
export COMMIT_KERNEL='cc63db754b218d3ef9b529a82e04b66252e9bca1' # equals d1-wip-v5.18-rc1
export KERNEL_RELEASE='5.18.0-rc1-gcc63db754b21-dirty' # must match commit!
# use this (set to something != '') to override the check
export IGNORE_COMMITS=0
check_deps() {
if ! pacman -Qi "${1}" > /dev/null ; then
echo "Please install '${1}'"
exit 1
fi
}