summaryrefslogtreecommitdiffstats
path: root/tools/tools/drm/radeon/firmwares/encode-firmwares
blob: e95c0d2393f6eb204947e1c37e9fc17ae8352fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
# $FreeBSD$

set -e

scriptdir=$(cd $(dirname $0) && pwd)
fwdir="$scriptdir/../../../../../sys/contrib/dev/drm2/radeonkmsfw"
srcdir=$1

if [ -z "$srcdir" -o ! -d "$srcdir" ]; then
	echo "Syntax: $(basename $0) <path to original firmwares>" 1>&2
	exit
fi

for file in "$srcdir"/*.bin; do
	uuencode -o "$fwdir"/$(basename $file).uu $file $(basename $file)
done
OpenPOWER on IntegriCloud