aboutsummaryrefslogtreecommitdiff
path: root/Makefile.main
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2016-11-17 19:33:59 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-11-24 16:47:16 +1100
commit833b1e6bb2aef485226f8bc48ec1b45c422b2152 (patch)
treeb5c1a063c60566f509c501e84af882bcbefdff05 /Makefile.main
parentf5d14f81b51f38c47aa565979c626706888f8434 (diff)
downloadskiboot-833b1e6bb2aef485226f8bc48ec1b45c422b2152.zip
skiboot-833b1e6bb2aef485226f8bc48ec1b45c422b2152.tar.gz
skiboot-833b1e6bb2aef485226f8bc48ec1b45c422b2152.tar.bz2
stb: create-container and wrap skiboot in Secure/Trusted Boot container
We produce **UNSIGNED** skiboot.lid.stb and skiboot.lid.xz.stb as build artifacts These are suitable blobs for flashing onto Trusted Boot enabled op-build builds *WITH* the secure boot jumpers *ON* (i.e. *NOT* in secure mode). It's just enough of the Secure and Trusted Boot container format to make Hostboot behave. Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com> Tested-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'Makefile.main')
-rw-r--r--Makefile.main7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.main b/Makefile.main
index 62a659d..a2b0bcd 100644
--- a/Makefile.main
+++ b/Makefile.main
@@ -166,6 +166,7 @@ pflash-coverity:
(cd external/pflash; ./build-all-arch.sh)
all: $(SUBDIRS) $(TARGET).lid $(TARGET).lid.xz $(TARGET).map extract-gcov
+all: $(TARGET).lid.stb $(TARGET).lid.xz.stb
OBJS := $(ASM) $(CORE) $(HW) $(PLATFORMS) $(LIBFDT) $(LIBFLASH) $(LIBSTB)
ifeq ($(PORE),1)
@@ -184,6 +185,12 @@ $(TARGET).lid.xz: $(TARGET).lid
$(TARGET).lid: $(TARGET).elf
$(call Q,OBJCOPY, $(OBJCOPY) -O binary -S $^ $@, $@)
+$(TARGET).lid.stb: $(TARGET).lid libstb/create-container
+ $(call Q,STB-UNSIGNED-CONTAINER,./libstb/create-container $< $@,$@)
+
+$(TARGET).lid.xz.stb: $(TARGET).lid.xz libstb/create-container
+ $(call Q,STB-UNSIGNED-CONTAINER,./libstb/create-container $< $@,$@)
+
$(TARGET).tmp.elf: $(ALL_OBJS_1) $(TARGET).lds $(KERNEL)
$(call Q,LD, $(CC) $(LDFLAGS) -T $(TARGET).lds $(ALL_OBJS_1) -o $@, $@)