Skip to content

Commit

Permalink
Change signing method according to new SBL requirement
Browse files Browse the repository at this point in the history
SBL requires commandline image while builidng container image

Tracked-On: OAM-110987
Signed-off-by: Chen, Gang G <[email protected]>
  • Loading branch information
GangSecurity authored and sysopenci committed Jul 3, 2023
1 parent bf28706 commit 06ffbde
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/definitions.mk
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ $(hide)$(IAFW_STRIP) --strip-all $(@:.sbl=.sym.elf) -o $(@:.sbl=.elf)

$(hide) cp $(@:.sbl=.elf) $@


python3 $(INTEL_PATH_BUILD)/containertool/GenContainer.py create -t NORMAL -cl ELF1:$@ -k $(INTEL_PATH_BUILD)/testkeys/OS1_TestKey_Priv_RSA2048.pem -o $(PRODUCT_OUT)/sbl_os

$(hide)rm -rf $(PRODUCT_OUT)/cmdline1
$(hide)touch $(PRODUCT_OUT)/cmdline1
python3 $(INTEL_PATH_BUILD)/containertool/GenContainer.py create -t MULTIBOOT -cl CMD1:$(PRODUCT_OUT)/cmdline1 ELF1:$@ -k $(INTEL_PATH_BUILD)/testkeys/OS1_TestKey_Priv_RSA3072.pem -o $(PRODUCT_OUT)/sbl_os

$(hide) if [ "$(PRIVATE_MODULE:debug=)" = fb4sbl-user ]; then \
zip -juy $(FB4SBL_SYMBOLS_ZIP) $(@:.sbl=.map) $(@:.sbl=.sym.elf); \
Expand Down
40 changes: 40 additions & 0 deletions testkeys/OS1_TestKey_Priv_RSA3072.pem
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
-----BEGIN PRIVATE KEY-----
MIIG/gIBADANBgkqhkiG9w0BAQEFAASCBugwggbkAgEAAoIBgQCRwOwudCNiJugn
G+6tcVwqO40dr6srJnGPC6pt3Fdv4GOXnaHclJWcTlHs9UABTsKIhBltBpkDtOo9
s8s5ZTPff3bhbzEPBAU4IAFwl4W+9A2djelb49r/gljzzpefZdh5Ys97o5U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