????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.3 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/firmware/scripts/ |
Upload File : |
#!/bin/bash
#
# Check that the firmware files in the kernel match those in this
# repository. Conversely, check that the firmware files in the
# firmware repository are also referenced in a kernel MODULE_FIRMWARE
# definition.
#
if [ ! -f WHENCE ]
then
echo This script must be run from the root of the
echo linux-firmware repository.
exit 1
fi
if [ "${KSRC}" = "" ] || [ ! -f "${KSRC}/MAINTAINERS" ]
then
echo You must set a path to the kernel source tree.
echo Example: KSRC=../linux-2.6 $0
exit 1
fi
#
# Intel IWL firmware file names just gotta be special. Ignore them
# in this check. Plenty of folks will complain if they're missing.
#
BLACKLIST="-e /IWL/d"
#
# Print a list of firmware files referenced in a MODULE_FIRMWARE instance
# that is missing in the linux-firmware repository.
#
let i=0
find ${KSRC} -type f -name "*.[ch]" | xargs grep MODULE_FIRMWARE | grep '"' | \
sed ${BLACKLIST} -e 's/^.*MODULE_FIRMWARE("//' -e 's/".*$//' | while read f
do
if [ ! -f "${f}" ]
then
echo Missing: $f
fi
names[${i#*:}]="$f"
let i=$i+1
done
WHITELIST="-e /LICENSE/d -e /LICENCE/d -e /WHENCE/d -e /\.git/d -e /iwlwifi/d"
#
# Print a list of files found in this linux-firmware repository that are not
# referenced in a MODULE_FIRMWARE instance.
#
find . -type f | sed ${WHITELIST} | while read f
do
let i=0
let found=0
while [ $i -lt ${#names[@]} ]
do
if [ "$f" = "${names[${i}]}"
then
let found=1
let i=${#names[@]}
fi
let i=$i+1
done
if [ ${found} -lt 1 ]
then
echo Could not find $f in any kernel MODULE_FIRMWARE definitions.
fi
done