Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
136 lines (115 loc) · 4.33 KB
/
Copy pathMakefile
File metadata and controls
136 lines (115 loc) · 4.33 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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
SHELL := /bin/bash
DEBIAN_CODE_NAME ?= trixie
ENABLE_CACHE ?= y
BUILD_KODI ?= n
BUILD_ARMHF ?= y
BUILD_BLUEALSA ?= n
export DEBIAN_CODE_NAME
export ENABLE_CACHE
export BUILD_KODI
export BUILD_ARMHF
export BUILD_BLUEALSA
ifeq ($(DEBIAN_CODE_NAME),)
$(error DEBIAN_CODE_NAME is not set. Please run with DEBIAN_CODE_NAME=suite (e.g., trixie))
endif
all:
@echo "Please specify a valid build target: make rgb10 or make rg353m"
a10mini:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
@sleep 5
./build_a10mini.sh
g350:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
@sleep 5
./build_g350.sh
rgb10:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
@sleep 5
./build_rgb10.sh
rgb20pro:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rgb20pro.sh
rgb30:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rgb30.sh
rg351mp:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
@sleep 5
./build_rg351mp.sh
rg353m:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rg353m.sh
rg353v:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rg353v.sh
rg503:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rg503.sh
rk2023:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
$(info adding armhf 32bit userspace? ${BUILD_ARMHF})
$(info adding bluetooth support? ${BUILD_BLUEALSA})
@sleep 5
./build_rk2023.sh
devenv:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
@sleep 5
./build_devenv.sh
devenv32:
$(info dArkOS will be built using the $(DEBIAN_CODE_NAME) release of Debian.)
$(info debian building caching enabled? ${ENABLE_CACHE})
@sleep 5
./build_devenv.sh 32
clean:
[ -d "mnt/boot" ] && sudo umount mnt/boot && sudo rm -rf mnt/boot || true
[ -d "mnt/roms" ] && sudo umount mnt/roms && sudo rm -rf mnt/roms || true
[ -d "main" ] && sudo rm -rf main || true
[ -d "initrd" ] && sudo rm -rf initrd || true
[ -f "wget-log" ] && sudo rm -f wget-log* || true
source utils.sh && remove_arkbuild && remove_arkbuild32
sudo rm -rf Arkbuild Arkbuild32 Arkbuild-final arkos_* main mnt odroidgoA-4.4.y ArkOS_* rg351 wget-*
while losetup -a | grep -m 1 ArkOS; do sudo losetup -d "$$(losetup -a | grep ArkOS | cut -d ':' -f 1)"; done
@echo "Done!"
clean_devenv:
./clean_mounts_devenv.sh
sudo rm -rf Ark_devenv/
@echo "Done!"
clean_devenv32:
./clean_mounts_devenv.sh 32
sudo rm -rf Ark_devenv32/
@echo "Done!"
clean_complete: clean
[ -d "$${PWD}/Arkbuild_ccache" ] && sudo umount $${PWD}/Arkbuild_ccache || true
[ -d "$${PWD}/Arkbuild_ccache" ] && sudo rm -rf Arkbuild_ccache || true
[ -d "$${PWD}/Arkbuild_package_cache" ] && sudo rm -rf Arkbuild_package_cache || true
sudo rm -f build.log*