2023-10-23 18:34:28 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2024-09-19 01:38:27 +03:00
|
|
|
VERSION="23.05.4"
|
2023-10-23 18:34:28 +03:00
|
|
|
|
2024-09-19 01:38:27 +03:00
|
|
|
mkdir -p "tmp/dl"
|
|
|
|
mkdir -p "bin"
|
|
|
|
|
|
|
|
podman run \
|
|
|
|
--rm \
|
|
|
|
-ti \
|
|
|
|
-v "$(pwd)/bin:/out" \
|
|
|
|
-v "$(pwd)/tmp/dl:/builder/dl" \
|
|
|
|
-u root \
|
|
|
|
"ghcr.io/openwrt/imagebuilder:ath79-generic-$VERSION" \
|
|
|
|
bash -c 'chown -R buildbot:buildbot /out /builder/dl'
|
2023-10-23 18:34:28 +03:00
|
|
|
|
2023-10-29 12:44:21 +02:00
|
|
|
for ap_dir in specific_config/ath79/dlink_dap-2695-a1/*
|
2023-10-23 18:34:28 +03:00
|
|
|
do
|
2023-10-29 12:44:21 +02:00
|
|
|
customization_name="$(basename ${ap_dir})"
|
2023-10-23 18:34:28 +03:00
|
|
|
tmpdir="tmp/${customization_name}"
|
|
|
|
|
|
|
|
mkdir -p "${tmpdir}"
|
2024-09-19 01:38:27 +03:00
|
|
|
|
2023-10-29 12:44:21 +02:00
|
|
|
cp -rvp generic_config/ath79/dlink_dap-2695-a1/* "${tmpdir}/"
|
|
|
|
cp -rvp "${ap_dir}"/* "${tmpdir}/"
|
2023-10-23 18:34:28 +03:00
|
|
|
|
|
|
|
podman run \
|
|
|
|
--rm \
|
|
|
|
-ti \
|
|
|
|
-v "$(pwd)/bin:/out:z" \
|
|
|
|
-v "$(pwd)/${tmpdir}:/files:z" \
|
2024-09-19 01:38:27 +03:00
|
|
|
-v "$(pwd)/tmp/dl:/builder/dl:z" \
|
|
|
|
"ghcr.io/openwrt/imagebuilder:ath79-generic-${VERSION}" \
|
|
|
|
bash -c "\
|
|
|
|
chown -R buildbot:buildbot /out /builder/dl &&
|
2023-10-23 18:34:28 +03:00
|
|
|
make image PROFILE=dlink_dap-2695-a1 \
|
|
|
|
PACKAGES='kmod-ath10k -kmod-ath10k-ct -ath10k-firmware-qca988x-ct ath10k-firmware-qca988x -wpad-basic-mbedtls wpad-wolfssl usteer tcpdump-mini mtr iperf3 ethtool bwm-ng luci ebtables ip-bridge socat' \
|
|
|
|
DISABLED_SERVICES='dnsmasq odhcpd firewall' \
|
|
|
|
BIN_DIR=/out \
|
|
|
|
FILES=/files \
|
2024-09-19 01:38:27 +03:00
|
|
|
EXTRA_IMAGE_NAME=\"${customization_name}\"\
|
|
|
|
V=sc"
|
2023-10-23 18:34:28 +03:00
|
|
|
done
|
|
|
|
|
|
|
|
rm -rf "tmp"
|