-
Notifications
You must be signed in to change notification settings - Fork 0
/
init-env.sh
executable file
·82 lines (80 loc) · 2.43 KB
/
init-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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env bash
### SET COLORS AND STYLES
rt=$(tput setaf 1)
rb=$(tput setb 4)
gt=$(tput setaf 2)
gb=$(tput setb 2)
yt=$(tput setaf 3)
yb=$(tput setb 6)
bt=$(tput setaf 4)
bb=$(tput setb 1)
bd=$(tput bold)
it=$(tput sitm)
nl=$(tput sgr0)
WORKDIR=$(pwd)
###Main Directory
bb1=$WORKDIR
###SRC stage Directory $WORKDIR/buntu-SRC/
bbb2=$bb1/Ubuntu-SRC
###SRC BUILD Directory $WORKDIR/Ubuntu-SRC/build
bb2=$bb1/Ubuntu-SRC/build
### Rootfs Directory $WORKDIR/Ubuntu-SRC/build/rootfs
bb3=$bb2/rootfs
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/boot
bb4=$bb3/boot
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/etc
bb5=$bb3/etc
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/lib
bb6=$bb3/lib
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/root
bb7=$bb3/root
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/boot/EFI
bb8=$bb4/EFI
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/boot/grub
bb9=$bb4/grub
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/boot/EFI/BOOT
bb10=$bb8/BOOT
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/etc/netplan
bb11=$bb5/netplan
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/etc/update-motd.d
bb12=$bb5/update-motd.d
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/lib/firmware
bb13=$bb6/firmware
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/lib/modules
bb14=$bb6/modules
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/lib/firmware/ti-connectivity
bb15=$bb13/ti-connectivity
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/usr
bb17=$bb3/usr
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/usr/share
bb18=$bb17/share
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/usr/share
bb19=$bb18/keyrings
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/usr/lib
bb20=$bb17/lib
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/usr/lib/aarch64-linux-gnu
bb21=$bb20/aarch64-linux-gnu
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/lib/firmware/edid
bb22=$bb13/edid
### Directory $WORKDIR/Ubuntu-SRC/build/rootfs/etc/apt
bb23=$bb5/apt/
###SRC BINARIES Directory $WORKDIR/Binaries
bf=$bb1/Binaries
###KERNEL SRC FILES ROOT
ksrc=$bb1/Kernel-SRC
###KERNEL SRC FILES
ksrc1=$ksrc/hikey970-ubuntu-kernel-source
###KERNEL CONFIG FILES $WORKDIR/Binaries
kconf=$bb1/Kernel-Configs
tc=$bb1/gcc-arm-8.2
###Kernel Image
kimg=$ksrc1/arch/arm64/boot/Image.gz
### Device Tree
devtre=$ksrc1/arch/arm64/boot/dts/hisilicon/kirin970-hikey970.dtb
### Needed Packages to build image
usenm="bor"
pword="forhumans"
DISTRO=18.04
version=0.1.0
export DEBIAN_FRONTEND=noninteractive
export export TERM=xterm