summaryrefslogtreecommitdiffstats
path: root/util/qualcomm/scripts/cmm/debug_cb_common.cmm
diff options
context:
space:
mode:
Diffstat (limited to 'util/qualcomm/scripts/cmm/debug_cb_common.cmm')
-rw-r--r--util/qualcomm/scripts/cmm/debug_cb_common.cmm18
1 files changed, 15 insertions, 3 deletions
diff --git a/util/qualcomm/scripts/cmm/debug_cb_common.cmm b/util/qualcomm/scripts/cmm/debug_cb_common.cmm
index bdb0097cd3b7..5959ee11e6a5 100644
--- a/util/qualcomm/scripts/cmm/debug_cb_common.cmm
+++ b/util/qualcomm/scripts/cmm/debug_cb_common.cmm
@@ -104,6 +104,10 @@ ENTRY &TargetPkg &srcpath &xblsrcpath &ImageName
if &BBStage
(
+ IF "&debug"==""
+ (
+ d.load.binary build/coreboot.rom 0xA0000000
+ )
&imgpath="build\cbfs\fallback\bootblock.elf"
if (&RAMLoad)
d.load.elf &imgpath /strippart "coreboot" /sourcepath &srcpath
@@ -114,9 +118,17 @@ ENTRY &TargetPkg &srcpath &xblsrcpath &ImageName
;b.s run_romstage /o
;d.set &PreRamConsoleAddr++0x8000 0
d.dump &PreRamConsoleAddr /spotlight
- print %String "Now the control is in BootBlock, press enter after debugging to go to next stage"
- print %String "Press enter to go to next stage"
- enter
+ IF (STR.CP("&debug","DEBUG"))
+ (
+ print %String "Now the control is in BootBlock, press enter after debugging to go to next stage"
+ print %String "Press enter to go to next stage"
+ enter
+ )
+ ELSE
+ (
+ go
+ enddo
+ )
)
go &VEREntryAddr