mirror of
https://github.com/OpenIntelWireless/IntelBluetoothFirmware.git
synced 2024-11-25 05:36:13 +00:00
25 lines
494 B
Bash
Executable File
25 lines
494 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# fw_gen.sh
|
|
# itlwm
|
|
#
|
|
# Created by qcwap on 2020/3/10.
|
|
# Copyright © 2020 钟先耀. All rights reserved.
|
|
target_file="${PROJECT_DIR}/include/FwBinary.cpp"
|
|
if [ -f "$target_file" ]; then
|
|
exit 0
|
|
fi
|
|
while [ $# -gt 0 ];
|
|
do
|
|
case $1 in
|
|
-P) fw_files=$2
|
|
shift
|
|
;;
|
|
|
|
esac
|
|
shift
|
|
done
|
|
|
|
script_file="${PROJECT_DIR}/scripts/"
|
|
python3 -c 'import sys;sys.path.append("'$script_file'");from zlib_compress_fw import *;process_files("'${target_file}'", "'$fw_files'")'
|