mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
optional argument for generated ROMFS file path.
existing headerfile path is used when argument is missing. Signed-off-by: Yanfeng Liu <yfliu2008@qq.com>
This commit is contained in:
parent
ba075747be
commit
4d9f2e3692
1 changed files with 6 additions and 0 deletions
|
|
@ -36,6 +36,12 @@ fsdir=${topdir}/bin
|
|||
romfsimg=romfs.img
|
||||
headerfile=boot_romfsimg.h
|
||||
|
||||
if [ -n "$1" ]; then # output file path
|
||||
_path=$(dirname "$1")
|
||||
# ensure output path exists
|
||||
mkdir -p $_path 2>/dev/null && headerfile=$1
|
||||
fi
|
||||
|
||||
# Sanity checks
|
||||
|
||||
if [ ! -d "${fsdir}" ]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue