Compare commits

...

2 Commits

Author SHA1 Message Date
Andreas Gnau
ad3b1c83ab asdf 2025-01-24 14:54:28 +01:00
Andreas Gnau
e8b05c67c6 iop: Remove license_report
A CycloneDX SBOM is generated by the OpenWrt build system. It the same
license information as the license report. Remove the license report
script.

Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>
2024-10-17 19:22:57 +02:00
2 changed files with 2 additions and 37 deletions

View File

@@ -260,7 +260,7 @@ function ssh_upgrade {
fi
fi
if [ ! -f $upd_fw ]; then
if [ ! -f "$upd_fw" ]; then
echo "Firmware file $firmware does not exist."
exit 1
fi
@@ -276,7 +276,7 @@ function ssh_upgrade {
-o ConnectTimeout=60 \
-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
root@"$upd_host" \
sh -c "cat > '/tmp/$upd_fw_base' && (set -x && sysupgrade -v $extra_args /tmp/$upd_fw_base)" ||
sh -c "cat > '/tmp/$upd_fw_base' && (set -x && sysupgrade -v $extra_args '/tmp/$upd_fw_base')" ||
echo "Sysupgrade failed" >&2 && return 1
}

View File

@@ -1,35 +0,0 @@
#!/bin/sh
function license_report {
LICDIR="/tmp/licenses-generator/"
LICBIN="${LICDIR}/bin"
dpkg -s python3 python3-requests python3-yaml python3-mako python3-six &> /dev/null
if [ $? -ne 0 ]
then
echo "Missing dependencies"
sudo apt-get update
sudo apt-get install python3 python3-requests python3-yaml python3-mako python3-six
else
echo "Dependecy check passed"
fi
if [ -d "$LICDIR" ]; then
### Take action if $DIR exists ###
echo "Creating json licences file and html formated report"
else
### Control will jump here if $DIR does NOT exists ###
echo "Error: licenses-generator not found. getting from iopsys repo"
git clone git@dev.iopsys.eu:iopsys/licenses-generator.git $LICDIR
fi
LICGET=`${LICBIN}/licenses-generator gen-License bin/`
echo $LICGET
${LICBIN}/licenses-generator gen-licrprt $LICGET
exit 0
}
register_command "license_report" "Generate a Licence report on latest build in json format and html under reports"