mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
make fallback size a symbolic constant
This commit is contained in:
parent
4b5164fdfa
commit
c1328a341d
1 changed files with 7 additions and 2 deletions
|
@ -270,12 +270,17 @@ option PYRO_SERIAL=1
|
||||||
##
|
##
|
||||||
expr USE_OPTION_TABLE=!USE_FALLBACK_IMAGE
|
expr USE_OPTION_TABLE=!USE_FALLBACK_IMAGE
|
||||||
|
|
||||||
|
##
|
||||||
|
## how much size to allow for the fallback image. Default value
|
||||||
|
##
|
||||||
|
|
||||||
|
option FALLBACK_IMAGE_SIZE=65536
|
||||||
##
|
##
|
||||||
## Compute the location and size of where this firmware image
|
## Compute the location and size of where this firmware image
|
||||||
## (linuxBIOS plus bootloader) will live in the boot rom chip.
|
## (linuxBIOS plus bootloader) will live in the boot rom chip.
|
||||||
##
|
##
|
||||||
expr ROM_SECTION_SIZE =(USE_FALLBACK_IMAGE*65536)+(USE_NORMAL_IMAGE*(ROM_SIZE - 65536))
|
expr ROM_SECTION_SIZE =(USE_FALLBACK_IMAGE*FALLBACK_IMAGE_SIZE)+(USE_NORMAL_IMAGE*(ROM_SIZE - FALLBACK_IMAGE_SIZE))
|
||||||
expr ROM_SECTION_OFFSET=(USE_FALLBACK_IMAGE*(ROM_SIZE-65536))+(USE_NORMAL_IMAGE*0)
|
expr ROM_SECTION_OFFSET=(USE_FALLBACK_IMAGE*(ROM_SIZE-FALLBACK_IMAGE_SIZE))+(USE_NORMAL_IMAGE*0)
|
||||||
|
|
||||||
|
|
||||||
##
|
##
|
||||||
|
|
Loading…
Add table
Reference in a new issue