Skip to content

Commit 3f571cb

Browse files
committed
feat: allow building rproxy with features
1 parent a934861 commit 3f571cb

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

l2/_op_rbuilder/mkosi.build

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@ set -euxo pipefail
44

55
ENV_YAML="$SRCDIR/l2/_op_rbuilder/mkosi.extra/etc/flashbots/op-rbuilder.yaml"
66

7-
RUST_VERSION=$(mkosi-chroot yq -r .rust.version < "$ENV_YAML")
7+
RUST_VERSION=$(mkosi-chroot yq -r '.rust.version' < "$ENV_YAML")
88

9-
OP_RBUILDER_REF=$(mkosi-chroot yq -r .op_rbuilder.git_reference < "$ENV_YAML")
10-
TDX_QUOTE_PROVIDER_REF=$(mkosi-chroot yq -r .tdx_quote_provider.git_reference < "$ENV_YAML")
11-
RPROXY_REF=$(mkosi-chroot yq -r .rproxy.git_reference < "$ENV_YAML")
12-
NODE_HEALTHCHECKER_REF=$(mkosi-chroot yq -r .node_healthchecker.git_reference < "$ENV_YAML")
9+
OP_RBUILDER_REF=$(mkosi-chroot yq -r '.op_rbuilder.git_reference' < "$ENV_YAML")
10+
TDX_QUOTE_PROVIDER_REF=$(mkosi-chroot yq -r '.tdx_quote_provider.git_reference' < "$ENV_YAML")
11+
RPROXY_REF=$(mkosi-chroot yq -r '.rproxy.git_reference' < "$ENV_YAML")
12+
RPROXY_FEATURES=$(mkosi-chroot yq -r '.rproxy.features // ["default"] | sort | join(",")' < "$ENV_YAML")
13+
NODE_HEALTHCHECKER_REF=$(mkosi-chroot yq -r '.node_healthchecker.git_reference' < "$ENV_YAML")
1314

1415
export RUSTUP_HOME="/rustup"
1516
export CARGO_HOME="/cargo"
@@ -53,7 +54,7 @@ else
5354
"rproxy" \
5455
"${RPROXY_REF}" \
5556
"https://github.com/flashbots/rproxy.git" \
56-
'TARGET=x86_64-unknown-linux-gnu ./build.sh' \
57+
"FEATURES=${RPROXY_FEATURES} TARGET=x86_64-unknown-linux-gnu ./build.sh" \
5758
"target/x86_64-unknown-linux-gnu/release/rproxy:/usr/bin/rproxy"
5859
chmod +x $DESTDIR/usr/bin/rproxy
5960
fi

l2/mkosi.build

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set -euxo pipefail
44

55
ENV_YAML="$SRCDIR/l2/mkosi.extra/etc/flashbots/l2.yaml"
66

7-
VAULT_REF=$(mkosi-chroot yq -r .vault.git_reference < "$ENV_YAML")
8-
GOMPLATE_REF=$(mkosi-chroot yq -r .gomplate.git_reference < "$ENV_YAML")
9-
GCP_OPS_AGENT_REF=$(mkosi-chroot yq -r .gcp_ops_agent.git_reference < "$ENV_YAML")
7+
VAULT_REF=$(mkosi-chroot yq -r '.vault.git_reference' < "$ENV_YAML")
8+
GOMPLATE_REF=$(mkosi-chroot yq -r '.gomplate.git_reference' < "$ENV_YAML")
9+
GCP_OPS_AGENT_REF=$(mkosi-chroot yq -r '.gcp_ops_agent.git_reference' < "$ENV_YAML")
1010

1111
source scripts/make_git_package.sh
1212

0 commit comments

Comments
 (0)