Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ $(ROM_OUT): $(COREBOOT_OUT)
$(VPD_TOOL) -f "$<" -O -i RO_VPD -s internal_versions="`cat $(FINAL_CONFIG_OUT)`"
[ -z "$(VERSION)" ] || $(VPD_TOOL) -f "$<" -i RO_VPD -s firmware_version=$(VERSION)
$(VPD_TOOL) -f "$<" -O -i RW_VPD || true # Format RW_VPD region, if present.
[ -f "$(CURDIR)/vpd.sh" ] && bash "$(CURDIR)/vpd.sh" || echo "$(CURDIR)/vpd.sh doesn't exist"
cp "$<" "$@"
@echo '***' >&2
@echo '*** Build done, $@' >&2
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ Entire build requires `PLATFORM` to be defined, this specifies the platform for
* `make wipe` will wipe everything, including downloaded deps.
* `make wipe-coreboot` and `make wipe-kernel` will clean just the coreboot and kernel components.
* Note that toolchain cache survives wipe and will be used in the next build.
* You can place a shell script vpd.sh under your project folder which would be executed for your customized actions such as setting your VPD key-value pairs to your coreboot image.

## License

Expand Down
9 changes: 9 additions & 0 deletions examples/qemu/vpd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
VPD="../../tools/vpd"
ROM="build/qemu-x86_64/coreboot/build/coreboot.rom"

#Or don't add '-O' that reformats the RO_VPD created by osf-builder/Makefile.inc
$VPD -f $ROM -O -i RO_VPD -s fsp_log_enable=0
$VPD -f $ROM -i RO_VPD -s test_key=123
$VPD -f $ROM -O -i RW_VPD