wifi/build.sh

46 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
VERSION="23.05.4"
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'
for ap_dir in specific_config/ath79/dlink_dap-2695-a1/*
do
customization_name="$(basename ${ap_dir})"
tmpdir="tmp/${customization_name}"
mkdir -p "${tmpdir}"
cp -rvp generic_config/ath79/dlink_dap-2695-a1/* "${tmpdir}/"
cp -rvp "${ap_dir}"/* "${tmpdir}/"
podman run \
--rm \
-ti \
-v "$(pwd)/bin:/out:z" \
-v "$(pwd)/${tmpdir}:/files:z" \
-v "$(pwd)/tmp/dl:/builder/dl:z" \
"ghcr.io/openwrt/imagebuilder:ath79-generic-${VERSION}" \
bash -c "\
chown -R buildbot:buildbot /out /builder/dl &&
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 \
EXTRA_IMAGE_NAME=\"${customization_name}\"\
V=sc"
done
rm -rf "tmp"