Skip to content

Commit aabb6c5

Browse files
rpardiniigorpecovnik
authored andcommitted
shellfmt: run lib/tools/shellfmt.sh, no changes
1 parent 5561104 commit aabb6c5

108 files changed

Lines changed: 1244 additions & 1238 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/boards/aml-t95z-plus.tvb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Amlogic S912 octa core 3Gb RAM SoC eMMC chinese clone
2-
BOARD_NAME="T95Z Plus" # (a q201 Chinese clone with internal amlogic ethernet 1gbit, complete with a chunk of metal inside to delay thermal throttling)
2+
BOARD_NAME="T95Z Plus" # (a q201 Chinese clone with internal amlogic ethernet 1gbit, complete with a chunk of metal inside to delay thermal throttling)
33
BOARD_VENDOR="amlogic"
44
BOOT_FDT_FILE="amlogic/meson-gxm-t95z-plus.dtb" # From chewitt's patches
55
BOARDFAMILY="meson-gxl" # s912s are actually meson-gxm, no harm done.
66
ARCH="arm64"
77
BOARD_VENDOR="generic"
8-
BOOTCONFIG="meson-gxm-t95z-plus_defconfig" # patched-in
8+
BOOTCONFIG="meson-gxm-t95z-plus_defconfig" # patched-in
99
BOARD_MAINTAINER=""
1010
INTRODUCED="2016"
1111
KERNEL_TARGET="edge"

config/boards/ayn-odin2.csc

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,14 @@ function pre_customize_image__ayn-odin2_alsa_ucm_conf() {
5555
display_alert "Add alsa-ucm-conf for ${BOARD}" "${RELEASE}" "warn"
5656
(
5757
(
58-
cd "${SDCARD}/usr/share/alsa" || exit 6
59-
curl -L -o temp.zip "${GITHUB_SOURCE}/AYNTechnologies/alsa-ucm-conf/archive/refs/heads/ayn/v1.2.13.zip"
60-
unzip -o temp.zip
61-
unzip_dir=$(unzip -Z1 temp.zip | head -n1 | cut -d/ -f1)
62-
cp -rf "${unzip_dir}/"* .
63-
rm -rf "$unzip_dir" temp.zip
64-
) )
58+
cd "${SDCARD}/usr/share/alsa" || exit 6
59+
curl -L -o temp.zip "${GITHUB_SOURCE}/AYNTechnologies/alsa-ucm-conf/archive/refs/heads/ayn/v1.2.13.zip"
60+
unzip -o temp.zip
61+
unzip_dir=$(unzip -Z1 temp.zip | head -n1 | cut -d/ -f1)
62+
cp -rf "${unzip_dir}/"* .
63+
rm -rf "$unzip_dir" temp.zip
64+
)
65+
)
6566
}
6667

6768
function post_family_tweaks_bsp__ayn-odin2_firmware() {
@@ -105,30 +106,27 @@ function post_family_tweaks__ayn-odin2_enable_services() {
105106
return 0
106107
}
107108

108-
109109
function post_family_tweaks_bsp__ayn-odin2_bsp_firmware_in_initrd() {
110110
display_alert "Adding to bsp-cli" "${BOARD}: firmware in initrd" "warn"
111111
declare file_added_to_bsp_destination # Will be filled in by add_file_from_stdin_to_bsp_destination
112112
add_file_from_stdin_to_bsp_destination "/etc/initramfs-tools/hooks/ayn-firmware" <<- 'FIRMWARE_HOOK'
113-
#!/bin/bash
114-
[[ "$1" == "prereqs" ]] && exit 0
115-
. /usr/share/initramfs-tools/hook-functions
116-
for f in $(find /lib/firmware/qcom/sm8550 -type f) ; do
117-
add_firmware "${f#/lib/firmware/}"
118-
done
119-
add_firmware "qcom/a740_sqe.fw" # Extra one for dpu
120-
add_firmware "qcom/gmu_gen70200.bin" # Extra one for gpu
121-
add_firmware "qcom/vpu/vpu30_p4.mbn" # Extra one for vpu
122-
# Extra one for wifi
123-
for f in $(find /lib/firmware/ath12k/WCN7850/hw2.0 -type f) ; do
124-
add_firmware "${f#/lib/firmware/}"
125-
done
126-
# Extra one for bt
127-
for f in $(find /lib/firmware/qca -type f) ; do
128-
add_firmware "${f#/lib/firmware/}"
129-
done
130-
FIRMWARE_HOOK
113+
#!/bin/bash
114+
[[ "$1" == "prereqs" ]] && exit 0
115+
. /usr/share/initramfs-tools/hook-functions
116+
for f in $(find /lib/firmware/qcom/sm8550 -type f) ; do
117+
add_firmware "${f#/lib/firmware/}"
118+
done
119+
add_firmware "qcom/a740_sqe.fw" # Extra one for dpu
120+
add_firmware "qcom/gmu_gen70200.bin" # Extra one for gpu
121+
add_firmware "qcom/vpu/vpu30_p4.mbn" # Extra one for vpu
122+
# Extra one for wifi
123+
for f in $(find /lib/firmware/ath12k/WCN7850/hw2.0 -type f) ; do
124+
add_firmware "${f#/lib/firmware/}"
125+
done
126+
# Extra one for bt
127+
for f in $(find /lib/firmware/qca -type f) ; do
128+
add_firmware "${f#/lib/firmware/}"
129+
done
130+
FIRMWARE_HOOK
131131
run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}"
132132
}
133-
134-

config/boards/ayn-odin2mini.csc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Qualcomm SM8550 octa core 8GB/12GB/16GB RAM SoC eMMC USB-C WiFi/BT
22
source "${SRC}/config/boards/ayn-odin2.csc"
3-
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
4-
declare -g KERNEL_TARGET="current,edge" # inherited from ayn-odin2.csc; declared so the board inventory sees it
3+
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
4+
declare -g KERNEL_TARGET="current,edge" # inherited from ayn-odin2.csc; declared so the board inventory sees it
55
declare -g ARCH="arm64"
66
declare -g BOARD_NAME="Ayn Odin2 Mini"
77
declare -g BOARD_VENDOR="ayntec"

config/boards/ayn-odin2portal.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Qualcomm SM8550 octa core 8GB/12GB/16GB RAM SoC eMMC USB-C WiFi/BT
22
source "${SRC}/config/boards/ayn-odin2.csc"
3-
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
3+
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
44
declare -g ARCH="arm64"
55
declare -g BOARD_NAME="Ayn Odin2 Portal"
66
declare -g BOARD_VENDOR="ayntec"

config/boards/ayn-thor.csc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Qualcomm SM8550 octa core 8GB/12GB/16GB RAM SoC eMMC USB-C WiFi/BT
22
source "${SRC}/config/boards/ayn-odin2.csc"
3-
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
4-
declare -g KERNEL_TARGET="current,edge" # inherited from ayn-odin2.csc; declared so the board inventory sees it
3+
declare -g BOARDFAMILY="sm8550" # inherited from ayn-odin2.csc; declared so the board inventory sees it
4+
declare -g KERNEL_TARGET="current,edge" # inherited from ayn-odin2.csc; declared so the board inventory sees it
55
declare -g ARCH="arm64"
66
declare -g BOARD_NAME="Ayn Thor"
77
declare -g BOARD_VENDOR="ayntec"

config/boards/bananapim4berry.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ function post_family_tweaks_bsp__bananapi_module_conf() {
2323
display_alert "$BOARD" "Configuring rtl8821cu wifi module" "info"
2424

2525
cp -f "${SRC}"/packages/bsp/wifi-rtl8821cu/etc/modprobe.d/8821cu.conf \
26-
"${destination}"/etc/modprobe.d/8821cu.conf
26+
"${destination}"/etc/modprobe.d/8821cu.conf
2727

2828
}

config/boards/bananapir4.csc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ HAS_VIDEO_OUTPUT="no"
1414

1515
function post_family_tweaks__bpi-r4() {
1616
display_alert "Applying eth blobs"
17-
17+
1818
mkdir -p "$SDCARD/lib/firmware/mediatek/mt7988"
1919
cp -v "$SRC/packages/blobs/filogic/firmware/mediatek/mt7988/mt7988_wo_0.bin" "$SDCARD/lib/firmware/mediatek/mt7988/mt7988_wo_0.bin"
2020
cp -v "$SRC/packages/blobs/filogic/firmware/mediatek/mt7988/mt7988_wo_1.bin" "$SDCARD/lib/firmware/mediatek/mt7988/mt7988_wo_1.bin"

config/boards/beaglebadge.conf

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ function post_customize_image__beaglebadge_10_enable_cc33xx_ble() {
4949
display_alert "$BOARD" "Configuring CC33xx udev rule for BLE" "info"
5050

5151
mkdir -p "${SDCARD}"/etc/udev/rules.d/
52-
cat <<-EOF > "${SDCARD}"/etc/udev/rules.d/99-cc33xx-ble.rules
53-
# Enable BLE when the cc33xx wlan physical interface initializes
54-
ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy[0-9]*", DEVPATH=="*cc33xx*", RUN+="/bin/sh -c 'sleep 1; echo 1 > /sys/kernel/debug/ieee80211/%k/cc33xx/ble_enable'"
52+
cat <<- EOF > "${SDCARD}"/etc/udev/rules.d/99-cc33xx-ble.rules
53+
# Enable BLE when the cc33xx wlan physical interface initializes
54+
ACTION=="add", SUBSYSTEM=="ieee80211", KERNEL=="phy[0-9]*", DEVPATH=="*cc33xx*", RUN+="/bin/sh -c 'sleep 1; echo 1 > /sys/kernel/debug/ieee80211/%k/cc33xx/ble_enable'"
5555
EOF
5656
}
5757

@@ -62,9 +62,9 @@ function post_customize_image__beaglebadge_20_configure_apt() {
6262
chroot "${SDCARD}" /bin/bash -c "systemctl mask apt-daily.timer apt-daily-upgrade.timer apt-daily.service apt-daily-upgrade.service || true"
6363

6464
# APT autoremove recommends/suggests
65-
cat <<-EOF > "${SDCARD}"/etc/apt/apt.conf.d/99-beaglebadge
66-
APT::AutoRemove::RecommendsImportant "0";
67-
APT::AutoRemove::SuggestsImportant "0";
65+
cat <<- EOF > "${SDCARD}"/etc/apt/apt.conf.d/99-beaglebadge
66+
APT::AutoRemove::RecommendsImportant "0";
67+
APT::AutoRemove::SuggestsImportant "0";
6868
EOF
6969
}
7070

@@ -100,61 +100,61 @@ function post_customize_image__beaglebadge_40_limit_journal() {
100100
display_alert "$BOARD" "Limiting systemd journal size" "info"
101101

102102
mkdir -p "${SDCARD}"/etc/systemd/journald.conf.d/
103-
cat <<-EOF > "${SDCARD}"/etc/systemd/journald.conf.d/zz-beaglebadge-journal.conf
104-
[Journal]
105-
SystemMaxFileSize=4M
106-
RuntimeMaxUse=8M
107-
RuntimeMaxFileSize=2M
108-
ForwardToSyslog=no
109-
ForwardToConsole=no
110-
ForwardToWall=no
111-
MaxLevelStore=debug
112-
Compress=yes
103+
cat <<- EOF > "${SDCARD}"/etc/systemd/journald.conf.d/zz-beaglebadge-journal.conf
104+
[Journal]
105+
SystemMaxFileSize=4M
106+
RuntimeMaxUse=8M
107+
RuntimeMaxFileSize=2M
108+
ForwardToSyslog=no
109+
ForwardToConsole=no
110+
ForwardToWall=no
111+
MaxLevelStore=debug
112+
Compress=yes
113113
EOF
114114
}
115115

116116
function post_customize_image__beaglebadge_50_optimize_systemd_timeouts() {
117117
display_alert "$BOARD" "Optimizing systemd timeouts" "info"
118118

119119
mkdir -p "${SDCARD}"/etc/systemd/system.conf.d/
120-
cat <<-EOF > "${SDCARD}"/etc/systemd/system.conf.d/99-beaglebadge.conf
121-
[Manager]
122-
DefaultTimeoutStopSec=30s
123-
DefaultTimeoutAbortSec=15s
124-
DefaultDeviceTimeoutSec=30s
125-
DefaultLimitNOFILE=1024:4096
120+
cat <<- EOF > "${SDCARD}"/etc/systemd/system.conf.d/99-beaglebadge.conf
121+
[Manager]
122+
DefaultTimeoutStopSec=30s
123+
DefaultTimeoutAbortSec=15s
124+
DefaultDeviceTimeoutSec=30s
125+
DefaultLimitNOFILE=1024:4096
126126
EOF
127127

128128
mkdir -p "${SDCARD}"/etc/systemd/coredump.conf.d/
129-
cat <<-EOF > "${SDCARD}"/etc/systemd/coredump.conf.d/beaglebadge.conf
130-
[Coredump]
131-
MaxUse=128M
129+
cat <<- EOF > "${SDCARD}"/etc/systemd/coredump.conf.d/beaglebadge.conf
130+
[Coredump]
131+
MaxUse=128M
132132
EOF
133133
}
134134

135135
function post_customize_image__beaglebadge_60_tune_kernel_params() {
136136
display_alert "$BOARD" "Tuning kernel parameters" "info"
137137

138-
cat <<-EOF > "${SDCARD}"/etc/sysctl.d/99-beaglebadge.conf
139-
# Memory management for 256MB system
140-
vm.swappiness=100
141-
vm.page-cluster=0
142-
vm.watermark_scale_factor=125
143-
vm.compact_memory=1
144-
vm.vfs_cache_pressure=150
145-
vm.dirty_background_ratio=5
146-
vm.dirty_ratio=10
147-
vm.min_free_kbytes=8192
148-
vm.overcommit_memory=1
149-
150-
# Minimize network buffers
151-
net.core.rmem_max=131072
152-
net.core.wmem_max=131072
153-
net.ipv4.tcp_rmem=4096 65536 262144
154-
net.ipv4.tcp_wmem=4096 16384 262144
138+
cat <<- EOF > "${SDCARD}"/etc/sysctl.d/99-beaglebadge.conf
139+
# Memory management for 256MB system
140+
vm.swappiness=100
141+
vm.page-cluster=0
142+
vm.watermark_scale_factor=125
143+
vm.compact_memory=1
144+
vm.vfs_cache_pressure=150
145+
vm.dirty_background_ratio=5
146+
vm.dirty_ratio=10
147+
vm.min_free_kbytes=8192
148+
vm.overcommit_memory=1
149+
150+
# Minimize network buffers
151+
net.core.rmem_max=131072
152+
net.core.wmem_max=131072
153+
net.ipv4.tcp_rmem=4096 65536 262144
154+
net.ipv4.tcp_wmem=4096 16384 262144
155155
EOF
156156

157-
grep -q '^optargs=' "${SDCARD}"/boot/uEnv.txt \
158-
&& sed -i "/zswap\.enabled=0/! s/^optargs=.*/& zswap.enabled=0/" "${SDCARD}"/boot/uEnv.txt \
159-
|| echo "optargs=zswap.enabled=0" >> "${SDCARD}"/boot/uEnv.txt
157+
grep -q '^optargs=' "${SDCARD}"/boot/uEnv.txt &&
158+
sed -i "/zswap\.enabled=0/! s/^optargs=.*/& zswap.enabled=0/" "${SDCARD}"/boot/uEnv.txt ||
159+
echo "optargs=zswap.enabled=0" >> "${SDCARD}"/boot/uEnv.txt
160160
}

config/boards/dg-svr-865-tiny.conf

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,25 +31,25 @@ function qcom-dg-svr-865-tiny_is_userspace_supported() {
3131
}
3232

3333
function qcom-dg-svr-865-tiny_is_userspace_supported_alert() {
34-
if ! qcom-dg-svr-865-tiny_is_userspace_supported; then
35-
if [[ "${RELEASE}" != "" ]]; then
36-
display_alert "Missing userspace for ${BOARD}" "${RELEASE} does not have the userspace necessary to support the ${BOARD}" "warn"
37-
fi
38-
return 1
39-
fi
40-
return 0
34+
if ! qcom-dg-svr-865-tiny_is_userspace_supported; then
35+
if [[ "${RELEASE}" != "" ]]; then
36+
display_alert "Missing userspace for ${BOARD}" "${RELEASE} does not have the userspace necessary to support the ${BOARD}" "warn"
37+
fi
38+
return 1
39+
fi
40+
return 0
4141
}
4242

4343
function post_family_tweaks_bsp__qcom-dg-svr-865-tiny_add_services() {
4444
qcom-dg-svr-865-tiny_is_userspace_supported_alert || return 0
4545

4646
display_alert "$BOARD" "Add services" "info"
4747

48-
# Bluetooth MAC addr setup service
49-
mkdir -p $destination/usr/local/bin/
50-
mkdir -p $destination/usr/lib/systemd/system/
51-
install -Dm655 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.sh $destination/usr/local/bin/
52-
install -Dm644 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.service $destination/usr/lib/systemd/system/
48+
# Bluetooth MAC addr setup service
49+
mkdir -p $destination/usr/local/bin/
50+
mkdir -p $destination/usr/lib/systemd/system/
51+
install -Dm655 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.sh $destination/usr/local/bin/
52+
install -Dm644 $SRC/packages/bsp/generate-bt-mac-addr/bt-fixed-mac.service $destination/usr/lib/systemd/system/
5353
}
5454

5555
function post_family_tweaks__qcom-dg-svr-865-tiny_enable_services() {
@@ -102,8 +102,8 @@ function post_family_tweaks_bsp__qcom-dg-svr-865-tiny_bsp_firmware_in_initrd() {
102102
add_firmware "${f#/lib/firmware/}"
103103
done
104104
add_firmware "qcom/sm8250/a650_zap.mbn" # Extra one for dpu
105-
add_firmware "qcom/a650_sqe.fw" # Extra one for dpu
106-
add_firmware "qcom/a650_gmu.bin" # Extra one for gpu
105+
add_firmware "qcom/a650_sqe.fw" # Extra one for dpu
106+
add_firmware "qcom/a650_gmu.bin" # Extra one for gpu
107107
FIRMWARE_HOOK
108108
run_host_command_logged chmod -v +x "${file_added_to_bsp_destination}"
109109
}

config/boards/dusun-dsom-010r.csc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ BOOT_FDT_FILE="rockchip/rk3328-dusun-dsom-010r.dtb"
99
KERNEL_TARGET="current,edge"
1010
KERNEL_TEST_TARGET="current"
1111
DEFAULT_CONSOLE="serial"
12-
DEFAULT_OVERLAYS="dusun-010r-rp3328b" # Enable, by default, the RP3328B carrier board devices
12+
DEFAULT_OVERLAYS="dusun-010r-rp3328b" # Enable, by default, the RP3328B carrier board devices
1313
BOOTBRANCH_BOARD="tag:v2026.04"
1414
BOOTPATCHDIR="v2026.04"
1515
BOOT_SCENARIO="binman-atf-mainline"
1616
DDR_BLOB="rk33/rk3328_ddr_933MHz_v1.16.bin"
17-

0 commit comments

Comments
 (0)