1
0
mirror of https://github.com/OpenIntelWireless/itlwm.git synced 2024-11-25 20:46:27 +00:00
itlwm/scripts/fw_gen.sh
2022-04-17 16:34:54 +08:00

25 lines
431 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/zlib_compress_fw.py"
python3 "${script_file}" "${target_file}" "${fw_files}"