Skip to content

Commit

Permalink
[antlir][docs] fix exec_layer typos
Browse files Browse the repository at this point in the history
Summary: Found while using genrule_in_image for something

Test Plan: `buck build`

Reviewed By: vmagro

Differential Revision: D67601267

fbshipit-source-id: 68946cf9fd03f102c37834a1ee0acd2ebbf6a48e
  • Loading branch information
dafyddcrosby authored and facebook-github-bot committed Dec 23, 2024
1 parent 523793e commit 4ea6a01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions antlir/antlir2/docs/docs/recipes/genrule-in-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ script that will be run to produce the rule output. The same macro expansions

The main addition to the `buck_genrule` api is that `genrule_in_image` accepts
an attribute that controls the environment in which the script is run
(`exe_layer` or `layer`).
(`exec_layer` or `layer`).

## Cross-compilation

In most cases, you should use `exe_layer=` instead of `layer=` to choose what
In most cases, you should use `exec_layer=` instead of `layer=` to choose what
image layer your command will run in. This will give you a layer optimized for
your build host and should generally be more performant, since you'll be running
binaries built for your actual host architecture.
Expand Down Expand Up @@ -68,7 +68,7 @@ export_file(
genrule_in_image(
name = "uki",
out = "uki",
exe_layer = ":layer",
exec_layer = ":layer",
bash = """
systemd-ukify build \
--linux $(location :vmlinuz) \
Expand Down Expand Up @@ -109,7 +109,7 @@ genrule_in_image(
"uki": "uki",
"key": "key",
},
exe_layer = ":layer",
exec_layer = ":layer",
bash = """
systemd-ukify genkey --output $OUT/key
Expand Down

0 comments on commit 4ea6a01

Please sign in to comment.