Use utk nvram-compact and invalidate

So building with UTK also cleanup the NVRAM on winterfell

Signed-off-by: Julien Viard de Galbert <julien.viard-de-galbert@itrenew.com>
This commit is contained in:
Julien Viard de Galbert 2020-02-07 11:42:48 +01:00
parent 4e32a2c2c8
commit fb21e254c8
3 changed files with 11 additions and 0 deletions

View File

@ -144,6 +144,7 @@ $(BUILD)/linuxboot.rom: bin/utk $(DXE_FFS)
$(ROM) \
remove_dxes_except boards/$(BOARD)/image-files.txt \
$(foreach ffs,$(DXE_FFS), insert_dxe $(ffs)) \
$(UTK_EXTRA_OPS) \
save $@
endif

View File

@ -64,3 +64,10 @@ $(BUILD)/nvram1.ffs: $(NVRAM1_FFS)
$(BUILD)/nvram2.ffs: $(NVRAM2_FFS)
./bin/nvram-compact < $< > $@
#
# UTK Compact the NVRAM region
#
nvram-nvar-keep := boards/$(BOARD)/nvar-keep.txt
UTK_EXTRA_OPS := invalidate_nvar_except $(nvram-nvar-keep) nvram-compact

View File

@ -0,0 +1,3 @@
StdDefaults
CpuS3Resume
Setup