| # Scan the /lib/firmware directory of the target and delete any firmware |
| # binaries that are not in our whitelist |
| # A whitelist of entire directories or specific binary files. The trailing |
| 'bnx2x/bnx2x-e2-7.13.1.0.fw' |
| 'cxgb4/t4fw-1.16.63.0.bin' |
| 'qed/qed_init_values_zipped-8.37.2.0.bin' |
| if [ -z "${TARGET_DIR}" ] ; then |
| echo "TARGET_DIR not defined, setting to $1" |
| files=$(find ${TARGET_DIR}/lib/firmware/*) |
| for item in ${whitelist[@]}; |
| if [ "${file/${item}}" != "${file}" ] ; then |
| if [ "${found}" -ne "1" ] ; then |