#!/usr/bin/env bash # SPDX-License-Identifier: GPL-2.0-only # Created by Tobias Powalowski build () { # add firmware files and licenses map add_full_dir "/lib/firmware" "/usr/share/licenses/linux-firmware" # remove not used firmware rm -rf ${BUILDROOT}/lib/firmware/{v4l*,dvb*,bnx2,cxgb*,sb16,yamaha} find ${BUILDROOT}/lib/firmware -type f -name "*txt*" -exec rm {} \; find ${BUILDROOT}/lib/firmware -type f -name "*README*" -exec rm {} \; } help () { cat<