rpm: do not fail when no firmware was built

This commit is contained in:
Marek Marczykowski-Górecki 2014-07-08 02:05:19 +02:00
parent fe3441e052
commit a784eee66f

View File

@ -331,6 +331,8 @@ exit 1
fi
if [ "%{build_flavor}" == "pvops" ]; then
# in case of no firmware built - place empty dir
mkdir -p %buildroot/lib/firmware
mv %buildroot/lib/firmware %buildroot/lib/firmware-all
mkdir -p %buildroot/lib/firmware
mv %buildroot/lib/firmware-all %buildroot/lib/firmware/%kernelrelease