<p>Zheng Bao has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/29158">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Macro for adding raw integer into CBFS.<br><br>To add integer into CBFS, just add lines like below.<br>cbfs-files-y += etc/boot-menu-wait<br>etc/boot-menu-wait-file := $(call int2cbfs,500)<br>etc/boot-menu-wait-type := raw<br><br>Change-Id: Id82950031063e1b0ceee80fff0553ea93dfa331a<br>Signed-off-by: Zheng Bao <fishbaozi@gmail.com><br>---<br>M Makefile.inc<br>1 file changed, 14 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/29158/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Makefile.inc b/Makefile.inc</span><br><span>index 1e58967..1acc253 100644</span><br><span>--- a/Makefile.inc</span><br><span>+++ b/Makefile.inc</span><br><span>@@ -1120,6 +1120,20 @@</span><br><span> bootsplash$(BOOTSPLASH_SUFFIX)-file := $(call strip_quotes,$(CONFIG_BOOTSPLASH_FILE))</span><br><span> bootsplash$(BOOTSPLASH_SUFFIX)-type := bootsplash</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+int2hex=$(shell printf %016x $(call _toint,$(1)))</span><br><span style="color: hsl(120, 100%, 40%);">+splithex=$(shell echo $(call int2hex,$(1)) | sed -e 's/../& /g')</span><br><span style="color: hsl(120, 100%, 40%);">+int2cbfs = $(obj)/int2cbfs_$(1).bin \</span><br><span style="color: hsl(120, 100%, 40%);">+   $(eval $(obj)/int2cbfs_$(1).bin: $(obj)/config.h; \</span><br><span style="color: hsl(120, 100%, 40%);">+           printf \\$(shell printf %03o 0x$(word 8,$(call splithex,$(1)))) > $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+          printf \\$(shell printf %03o 0x$(word 7,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 6,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 5,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 4,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 3,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 2,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              printf \\$(shell printf %03o 0x$(word 1,$(call splithex,$(1)))) >> $(obj)/int2cbfs_$(1).bin.tmp; \</span><br><span style="color: hsl(120, 100%, 40%);">+              mv $(obj)/int2cbfs_$(1).bin.tmp $(obj)/int2cbfs_$(1).bin )</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> # Ensure that no payload segment overlaps with memory regions used by ramstage</span><br><span> # (not for x86 since it can relocate itself in that case)</span><br><span> ifneq ($(CONFIG_ARCH_X86),y)</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29158">change 29158</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/29158"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Id82950031063e1b0ceee80fff0553ea93dfa331a </div>
<div style="display:none"> Gerrit-Change-Number: 29158 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Zheng Bao <fishbaozi@gmail.com> </div>