-
Notifications
You must be signed in to change notification settings - Fork 10
/
chimaera.config
168 lines (146 loc) · 3.28 KB
/
chimaera.config
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
#!/usr/bin/env zsh
# See LICENSE file for copyright and license details.
blend_name="maemo-${codename}"
blend_vers="1.0"
release="chimaera"
version="4.0.0"
# Comment out to disable image compression
COMPRESS_IMAGE=1
# Comment out to disable caching of stage4 cpio used for faster rebuilds
CPIO_STAGE4=1
if [[ -n "$armsdk_version" ]]; then
image_name="${blend_name}-${blend_vers}-${arch}-${device_name}-$(date '+%Y%m%d')"
elif [[ -n "$vmsdk_version" ]]; then
image_name="${blend_name}-${blend_vers}-${arch}-$(date '+%Y%m%d')"
vm_name="${blend_name}-${blend_vers}-${arch}-virtual-$(date '+%Y%m%d')"
fi
devel_image=false
tiny_image=false
# Uncomment to enable -devel repositories
#devel_image=true
# Uncomment to build tiny bootstrap images (mz617 only atm)
#tiny_image=true
# TODO: For tiny image, do we also resize2fs the filesystem to be smaller?
# TODO: add btrfs_image using btrfs compression for an (even smaller?) image,
# let's make that work!
if [[ "$devel_image" = true ]]; then
blend_name="${blend_name}-devel"
fi
maemo_keyring_url="https://maedevu.maemo.org/leste/pool/main/m/maemo-keyring/maemo-keyring_2023.1+m7_all.deb"
core_packages+=(
gnupg
wget
openrc
)
core_packages_option+=(
-o Acquire::Retries=5
)
base_packages_option+=(
-o Acquire::Retries=5
)
extra_packages_option+=(
-o Acquire::Retries=5
-o Debug::pkgProblemResolver=yes
)
extra_packages+=(
haveged
busybox-static
apt-transport-https
net-tools
console-setup
hildon-meta-core
fake-hwclock
ntpsec-ntpdate
zram-tools
macchanger
)
if [[ "$tiny_image" = false ]]; then
extra_packages+=(
hildon-meta
)
fi
# TODO: We can update this list with packages if we're in tiny mode
# XXX:
finalize_purge_packages=(
ntp
)
if [[ "$tiny_image" = true ]]; then
finalize_purge_packages+=(
nano
vim
vim-runtime
vim-tiny
vim-common
pocketsphinx-en-us
tmux
screen
lynx
btrfs-tools
zsh
git-core
mlocate
htop
zsh-common
file
libmagic-mgc
)
fi
if [[ -n "$armsdk_version" ]]; then
rootopts=(-O ^64bit,^metadata_csum)
case "$device_name" in
n900)
extra_packages+=(hildon-meta-n900 leste-config-n900)
;;
n950)
extra_packages+=(hildon-meta-n950)
;;
n9)
extra_packages+=(hildon-meta-n9)
;;
droid3)
extra_packages+=(hildon-meta-droid3 leste-config-mapphone)
;;
droid4)
extra_packages+=(hildon-meta-droid4 leste-config-mapphone)
;;
bionic)
extra_packages+=(hildon-meta-bionic leste-config-mapphone)
;;
xt910)
extra_packages+=(hildon-meta-xt910 leste-config-mapphone)
;;
xt912)
extra_packages+=(hildon-meta-xt912 leste-config-mapphone)
;;
mz617)
extra_packages+=(hildon-meta-mz617 leste-config-mapphone)
;;
sunxi|turbox-twister)
#extra_packages+=(hildon-meta-sunxi)
vars+=(lima)
lima=lima
;;
pinephone*)
extra_packages+=(hildon-meta-pinephone leste-config-pinephone pinephone-modem-config)
vars+=(lima)
lima=lima
;;
pinetab)
extra_packages+=(hildon-meta-pinetab leste-config-pinetab pine64-uboot)
vars+=(lima)
lima=lima
;;
pocophone-f1)
extra_packages+=(hildon-meta-pocophone-f1 leste-config-pocophone-f1)
;;
raspi*)
extra_packages+=(hildon-meta-raspberrypi)
;;
arm64-generic*)
extra_packages+=(linux-headers-arm64 linux-image-arm64)
;;
*)
die "Unsupported device."; zerr; exit 1
;;
esac
fi