-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-env.sh
executable file
·40 lines (35 loc) · 1.34 KB
/
build-env.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
40
#!/bin/sh -e
# Common paths and settings for various builds
# This script should be sourced by others
# Path to your kernel tree
DEFAULT_KERNEL_TREE=`pwd`
KERNEL_TREE=${KERNEL_TREE:-$DEFAULT_KERNEL_TREE}
# Path to various tools
CDBA_TREE=~/work/sources/qc/cdba.git
BOOTRR_TREE=~/work/sources/qc/bootrr.git
QRTR_TREE=~/work/sources/qc/qrtr.git
POWERCAP_UTILS_TREE=~/work/sources/thermal/tools-powercap.git
BRENDAN_PERF_TOOLS_TREE=~/work/sources/tools-perf-brendan-greg.git
BUILDROOT_TREE=~/work/sources/buildroot
BUILDROOT_TAG=2020.02.1
#BUILDROOT_TAG="origin/master"
KERNELCFG_TWEAK_SCRIPT=~/.local/bin/linux-minimize-defconfig.sh
# Top-level directory for various build object files
BUILD_ROOTDIR=~/work/builds
# Directory containing the various artifacts: kernel, modules, scripts, etc.
IMAGE_DIR=$BUILD_ROOTDIR/image
UTIL_FS=$IMAGE_DIR/utils
BUILD_LOGS=$BUILD_ROOTDIR/logs
# Machine controlling power and usb relays and running console server software
CONSOLE_SERVER=172.16.0.95
#
# You shouldn't need to tweak anything below
#
ROOTFS_CPIO=$IMAGE_DIR/rootfs.cpio.gz
ROOTFSTWEAKS_CPIO=$IMAGE_DIR/rootfstweaks.cpio.gz
MODULES_CPIO_PREFIX=$IMAGE_DIR/kernel-modules
INITRAMFS_CPIO=$IMAGE_DIR/initramfs.cpio.gz
UTILS_CPIO=$IMAGE_DIR/utils.cpio.gz
J_FACTOR="$(($(nproc)-1))" # leave some cpu for interactivity
TSTAMP=$(date +'%Y-%m-%d-%H%M%S')
PNAME=$(basename $0)