meson: Add firmware-dir option

It might require custom firmware dir for cases like 'usr merge'.

Change-Id: Icaacd3fa26a8ff5bb2e7b8413c6e165b331ab16b
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
This commit is contained in:
Jeffy Chen 2023-11-07 10:36:45 +08:00
parent bd6bb09578
commit f450951d02
2 changed files with 4 additions and 1 deletions

View file

@ -331,7 +331,8 @@ endif
# Install firmwares
if gpu == 'valhall-g610'
install_data('firmware/g610/mali_csffw.bin', install_dir : '/lib/firmware')
install_data('firmware/g610/mali_csffw.bin',
install_dir : get_option('firmware-dir'))
endif
if vendor_package

View file

@ -22,3 +22,5 @@ option('wrappers', type: 'feature', value: 'auto',
description: 'Install with wrappers (default: auto)')
option('optimize-level', type: 'combo', choices: ['O0', 'O1', 'O2', 'O3', 'Os', 'Ofast', 'Og'], value: 'O3',
description: 'Optimize level (default: O3)')
option('firmware-dir', type: 'string', value: '/lib/firmware',
description: 'Firmware DIR (default: /lib/firmware)')