-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give full ROM builds a proper feature option
Co-authored-by: Dusk Banks <[email protected]>
- Loading branch information
Showing
4 changed files
with
18 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
option('full_rom', type: 'feature', description: 'Whether to enable full ROM builds (Qoob Pro support)') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
fs = import('fs') | ||
|
||
if fs.is_file('ipl.rom') | ||
ipl_rom = files('ipl.rom') | ||
else | ||
ipl_rom = files() | ||
ipl_rom_name = 'ipl.rom' | ||
full_rom_opt = get_option('full_rom') | ||
if full_rom_opt.allowed() | ||
full_rom_opt = full_rom_opt.require( | ||
fs.is_file(ipl_rom_name), | ||
error_message: 'IPL ROM file @0@ not found, can\'t build Qoob Pro image!'.format(ipl_rom_name), | ||
) | ||
if full_rom_opt.allowed() | ||
ipl_rom = files(ipl_rom_name) | ||
endif | ||
endif | ||
summary( | ||
'Qoob Pro support', | ||
full_rom_opt.allowed(), | ||
bool_yn: true, | ||
) | ||
|
||
qoob_sx_updater = files('qoob_sx_13c_upgrade.elf') |