This repository has been archived by the owner on Jun 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rv.sh
executable file
·68 lines (53 loc) · 2.17 KB
/
rv.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!/bin/bash
############################################################
### Single run script for HolyDragon Kernel
############################################################
# This is a cleanup and single run build script for testing purposes.
# This does not zip anything for you, only executes a normal build.
# Minimum requirements to build:
# Already working build environment :P
#
# In this script:
# You will need to change the 'Source Path to kernel tree' to match your current path to this source.
# You will need to change the 'Compile Path to out' to match your current path to this source.
# You will also need to edit the '-j32' under 'Start Compile' section and adjust that to match the amount of cores you want to use to build.
#
# In Makefile:
# You will need to edit the 'CROSS_COMPILE=' line to match your current path to this source.
#
# Once those are done, you should be able to execute './run.sh' from terminal and receive an Image.gz-dtb file in arch/arm64/boot/
############################################################
# Build Script Variables
############################################################
# Source defconfig used to build
dc=schwifty_defconfig
# Source Path to kernel tree
k=$HOME/op6
# Source Path to clean(empty) out folder
co=$k/out
# Compile Path to out
o="O=$HOME/op6/out"
############################################################
# Cleanup
############################################################
echo " Cleaning up out directory"
rm -Rf out/
echo " Out directory removed!"
############################################################
# Make out folder
############################################################
echo " Making new out directory"
mkdir -p "$co"
echo " Created new out directory"
############################################################
# Establish defconfig
############################################################
echo " Establishing build environment.."
make "$o" "$dc" V=1
############################################################
# Start Compile
############################################################
echo " First pass started.."
make "$o" -j20
echo " First pass completed!"
echo " "