-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathvendorsetup.sh
More file actions
41 lines (29 loc) · 1.58 KB
/
vendorsetup.sh
File metadata and controls
41 lines (29 loc) · 1.58 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
# Color variables
YELLOW='\033[1;33m'
RESET='\033[0m'
# Check if the welcome message has already been shown
if [ -z "${WELCOME_SHOWN}" ]; then
# Welcome message
echo -e "Welcome to ${YELLOW}StatiX!${RESET}"
# Additional instructions
echo -e "\nHere are some things before you get started!\n"
echo -e "- Make sure you have these variables highlighted in this link in your device tree:"
echo -e " https://github.com/StatiXOS/android_device_xiaomi_sky/blob/udc/device.mk#L11-L14"
echo -e "\n- Next, make sure you have a prebuilt kernel repo set up. It should look something like this:"
echo -e " https://github.com/StatiXOS/android_device_xiaomi_sky-kernel"
echo -e "\n- If you don't have a prebuilt kernel repo, follow the manifests we have here for other devices and adapt it to yours:"
echo -e " https://github.com/StatiXOS/android_kernel_manifest"
echo -e "\n- Finally, push any changes to our Gerrit if you think they're worthwhile, and we will try to review it as soon as possible.\n Follow the guide below to get set up with our Gerrit:"
echo -e " https://github.com/StatiXOS/android_manifest?tab=readme-ov-file#submitting-patches"
echo -e "\nDon't forget to join https://t.me/StatiXOSReleases! Enjoy! :D"
export WELCOME_SHOWN=true
else
echo -e "Welcome to ${YELLOW}StatiX!${RESET}"
echo -e "Environment ready."
fi
# Override host metadata to make builds more reproducible and avoid leaking info
export BUILD_USERNAME=nobody
export BUILD_HOSTNAME=android-build
# Override build number
export BUILD_NUMBER=$(date +%y%m%d%S)