mirror of
https://github.com/linuxboot/linuxboot
synced 2024-11-21 15:50:58 +00:00
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:
parent
4e32a2c2c8
commit
fb21e254c8
1
Makefile
1
Makefile
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
3
boards/winterfell/nvar-keep.txt
Normal file
3
boards/winterfell/nvar-keep.txt
Normal file
@ -0,0 +1,3 @@
|
||||
StdDefaults
|
||||
CpuS3Resume
|
||||
Setup
|
Loading…
Reference in New Issue
Block a user