-
Notifications
You must be signed in to change notification settings - Fork 2
/
mn_include_globals
117 lines (106 loc) · 3.78 KB
/
mn_include_globals
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
# globals
CONF_USER=medianet
CONF_GROUP=medianet
CONF_OTHERGROUPS="users,audio,video,gpio,input"
CONF_HOME=/home/medianet
RASPIOS_BASE_IMAGE="https://downloads.raspberrypi.com/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz"
RASPIOS_BASE_IMAGE_SHA256="9ce5e2c8c6c7637cd2227fdaaf0e34633e6ebedf05f1c88e00f833cbb644db4b"
RASPIOS_BASE_IMAGE_SIZE=7516192768
SYSTEM_CONFIG_PATH=/etc/medianet
SYSTEM_CONFIG="$SYSTEM_CONFIG_PATH"/config.json
SYSTEM_PARTITION_ROOT="/dev/mmcblk0p1"
SYSTEM_PARTITION_FIRMWARE="/dev/mmcblk0p2"
SYSTEM_PARTITION_LOCAL="/dev/mmcblk0p3"
CONFIG_INCLUDE="$SYSTEM_CONFIG_PATH"/config.inc
CONF_FILE_JCONVOLVER="$SYSTEM_CONFIG_PATH"/jconvolver.conf
CONF_FILE_MODHOST="$SYSTEM_CONFIG_PATH"/mod-host.conf
CONF_FILE_MODHOST_STATE=/local/data/mod-host.state
CONF_FILE_SHAIRPORT_SYNC="$SYSTEM_CONFIG_PATH"/shairport-sync.conf
CONF_FILE_BOOT=/boot/firmware/config.txt
CONF_FILE_PACKAGES="$PREFIX"/lib/mn_packages
CONF_FILE_PACKAGES_EARLY="$PREFIX"/lib/mn_packages_early
CONF_FILE_PERMISSIONS="$PREFIX"/permissions.medianet
CONF_FILE_FSTAB=/etc/fstab
CONF_FILE_FSTAB_DEFAULT="$PREFIX"/overlay/etc/fstab.medianet
CONF_DIR_MNTUNNEL="$SYSTEM_CONFIG_PATH"/mn_tunnel
CONF_FILE_MNTUNNEL="$CONF_DIR_MNTUNNEL"/mn_tunnel.conf
CONF_DIR_UFW_MNAPPS=/etc/ufw/applications.d
CONF_SSH_PUBKEY="$CONF_HOME"/.ssh/authorized_keys
CONF_SUDO_PUBKEY=/etc/security/sudo_authorized_keys
CONF_WEB_SSL_CERT=/etc/lighttpd/ssl/server.pem
SYSTEMD_UNIT_DIR=/etc/systemd/system
SYSTEMD_DEFAULT_DISABLE="
apt-daily.timer
apt-daily-upgrade.timer
console-setup.service
dphys-swapfile.service
fake-hwclock.service
hciuart.service
man-db.timer
ModemManager.service
phpsessionclean.timer
rpi-eeprom-update.service
raspi-config.service
wpa_supplicant.service
triggerhappy.service
triggerhappy.socket
mn_core_state.timer
"
SYSTEMD_DEFAULT_ENABLE="
ufw.service
systemd-time-wait-sync.service
mn_config.path
mn_tunnel.service
mn_tunnel_watch.path
"
# all units which are governed by medianet.json
SYSTEMD_MEDIANET_UNITS="
mn_autostart.service
mn_core_state.service
mn_cpufreq.service
mn_cpupower.service
mn_gpioctl.service
mn_hdmi-tx.service
mn_hdmi-rx.service
mn_icecast2.service
mn_jackd.service
mn_jconvolver.service
mn_kodi.service
mn_listen.service
mn_mod-host.service
mn_mpv.service
mn_shairport-sync.service
mn_wifi-rx.service
mn_wifi-tx.service
mn_zita-a2j.service
mn_zita-j2a.service
mn_zita-j2n.service
mn_zita-n2j.service
"
# be sure to order them to resolve dependencies!
CUSTOM_BUILDS="
gpioctl
sm.lv2
mod-host
alac
nqptp
shairport-sync
x42-plugins
lsp-plugins
lv2rdf2html
"
declare -A CUSTOM_BUILD_GCCFLAGS
CUSTOM_BUILD_GCCFLAGS[pi0]="-march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp"
CUSTOM_BUILD_GCCFLAGS[pi1]="-march=armv6zk -mcpu=arm1176jzf-s -mfloat-abi=hard -mfpu=vfp"
CUSTOM_BUILD_GCCFLAGS[pi2]="-march=armv7-a -mfloat-abi=hard -mfpu=neon-vfpv4"
#CUSTOM_BUILD_GCCFLAGS[pi3]="-march=armv8-a+crc -mfloat-abi=hard -mfpu=neon-vfpv4 -mtune=cortex-a53 -ftree-vectorize"
# temporary fix for 64-bit builds, the nfpu and mfloat-abi flags are not supported.
CUSTOM_BUILD_GCCFLAGS[pi3]="-march=armv8-a+crc -mtune=cortex-a53 -ftree-vectorize -O3"
CUSTOM_BUILD_GCCFLAGS[pi3+]="${CUSTOM_BUILD_GCCFLAGS[pi3]}"
CUSTOM_BUILD_GCCFLAGS[pi4]="-march=armv8-a+crc -mtune=cortex-a72 -ftree-vectorize -O3"
CUSTOM_BUILD_GCCFLAGS[pi400]="${CUSTOM_BUILD_GCCFLAGS[pi4]}"
CUSTOM_BUILD_GCCFLAGS[pi5]="${CUSTOM_BUILD_GCCFLAGS[pi4]}"
CUSTOM_BUILD_GCCFLAGS[UNKNOWN]="-DMN_PLATFORM_UNKNOWN"
SHELLPROMPT='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[00m\]@\h:\w\[\033[01;34m\] \$\[\033[00m\] '
SHELLPROMPT_WRITABLE='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\u\[\033[00m\]@\h:\w\[\033[01;34m\] \[\033[01;31m\]FS WRITABLE\[\033[00m\] \$ '
IGNORE_FOR_DEPLOYMENT=.gitkeep