Skip to content

Commit

Permalink
feat: adds measured boot recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
fnerdman committed Jul 5, 2024
1 parent 14c5503 commit 0506acb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
18 changes: 18 additions & 0 deletions recipes-attestation/measured-boot/measured-boot_dev.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
inherit go-mod
LICENSE = "CLOSED"

GO_IMPORT = "github.com/flashbots/measured-boot"
SRC_URI = "git://${GO_IMPORT};protocol=https;branch=main"
SRCREV = "${AUTOREV}"

GO_LINKSHARED = ""

# reproducible builds
INHIBIT_PACKAGE_DEBUG_SPLIT = '1'
INHIBIT_PACKAGE_STRIP = '1'
GO_EXTRA_LDFLAGS:append = " -s -w -buildid="

RDEPENDS:${PN}-dev += "bash"

do_compile[network] = "1"

3 changes: 3 additions & 0 deletions recipes-core/images/cvm-image-azure.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ CONVERSION_CMD:vhd:prepend = "truncate -s %1MiB ${IMAGE_NAME}.wic; \
qemu-img convert -O vpc -o subformat=fixed,force_size ${IMAGE_NAME}.wic ${IMAGE_NAME}.wic.vhd; \
echo "

DEPENDS = "measured-boot"
IMAGE_CMD:wic:prepend = "measured-boot ${IMGDEPLOYDIR}/${IMAGE_NAME}.wic ${IMGDEPLOYDIR}/measurements.json"


IMAGE_FEATURES[validitems] += "hyperv"
IMAGE_FEATURES = "hyperv"
Expand Down

0 comments on commit 0506acb

Please sign in to comment.