@ -28,7 +28,7 @@
else " - - f m a p - f i l e ${ final . fmap } " ;
else " - - f m a p - f i l e ${ final . fmap } " ;
flashromScript = moreFlags : ''
flashromScript = moreFlags : ''
set - euo pipefail
set - euo pipefail
$ { final . flashrom } /bin/flashrom - p internal $ { layoutFlags } $ { moreFlags }
$ { final . flashrom } /bin/flashrom - p internal $ @ $ { moreFlags }
'' ;
'' ;
flashromWriteScript = moreFlags :
flashromWriteScript = moreFlags :
flashromScript " - w ${ final . coreboot } / c o r e b o o t . r o m ${ moreFlags } " ;
flashromScript " - w ${ final . coreboot } / c o r e b o o t . r o m ${ moreFlags } " ;
@ -38,8 +38,8 @@
'' ;
'' ;
in prev . scripts // {
in prev . scripts // {
flashrom = flashromScript " $ @ " ;
flashrom = flashromScript " $ @ " ;
flash-write-fallback = flashromWriteScript " - i F A L L B A C K " ;
flash-write-fallback = flashromWriteScript " ${ layoutFlags } - i F A L L B A C K " ;
flash-write-normal = flashromWriteScript " - i N O R M A L " ;
flash-write-normal = flashromWriteScript " ${ layoutFlags } - i N O R M A L " ;
flash-write-all = flashromWriteScript " " ;
flash-write-all = flashromWriteScript " " ;
nextboot-use-fallback = nvramToolScript " - w b o o t _ o p t i o n = F a l l b a c k " ;
nextboot-use-fallback = nvramToolScript " - w b o o t _ o p t i o n = F a l l b a c k " ;
nextboot-use-normal = nvramToolScript " - w b o o t _ o p t i o n = N o r m a l " ;
nextboot-use-normal = nvramToolScript " - w b o o t _ o p t i o n = N o r m a l " ;