core/catalyst/fglrx_supported
Samir 9694e35721 move chd id creation to drivers
nvidia_supported and fglrx_supported will be downloaded from git once the repo is created.
2012-07-22 16:32:52 +00:00

22 lines
568 B
Bash

#!/bin/sh
# copy this needed file from the catalyst build dir /pkgbuilds/catalyst/src/archive_files/common/lib/modules/fglrx/build_mod/fglrxko_pci_ids.h
# and place in th same dir as this script
set -e
filename="$1"
[ -e "$filename" ] || {
echo "USAGE: $0 path/to/fglrxko_pci_ids.h" >&2
exit 1
}
echo "# Listing generated by fglrx_supported_chakra-20120703."
echo "# Do not edit manually."
echo "# (C) 2012 The Chakra Project Team"
grep "0x" "$filename" | \
sed -n 's/FGL_ASIC_ID(0x\([0-9A-F]\{4\}\)),$/0x\1/p' | \
sort | uniq | sed -e 's/^[ \t]*//'