blob: e5c8015a0c8a97c82de71876b9340d4267c1bd6b [file] [log] [blame]
[
{
"cmd": [],
"name": "checkout edk2"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/edk2"
],
"infra_step": true,
"name": "checkout edk2.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"init"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"remote",
"add",
"origin",
"https://fuchsia.googlesource.com/third_party/edk2"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git remote",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.set fetch.uriprotocols",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout edk2.cache",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/edk2",
"infra_step": true,
"name": "checkout edk2.cache.write guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[CACHE]/git/fuchsia.googlesource.com-third_party-edk2"
],
"cwd": "[START_DIR]/edk2",
"infra_step": true,
"name": "checkout edk2.cache.makedirs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"init",
"--bare"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-edk2",
"name": "checkout edk2.cache.git init",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"remote.origin.url",
"https://fuchsia.googlesource.com/third_party/edk2"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-edk2",
"name": "checkout edk2.cache.remote set-url",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"fetch.uriprotocols",
"https"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-edk2",
"name": "checkout edk2.cache.set fetch.uriprotocols",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"config",
"--replace-all",
"remote.origin.fetch",
"+refs/heads/*:refs/heads/*",
"\\+refs/heads/\\*:.*"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-edk2",
"name": "checkout edk2.cache.replace fetch configs",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--prune",
"--tags",
"origin"
],
"cwd": "[CACHE]/git/fuchsia.googlesource.com-third_party-edk2",
"name": "checkout edk2.cache.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"ensure-directory",
"--mode",
"0777",
"[START_DIR]/edk2/.git/objects/info"
],
"cwd": "[START_DIR]/edk2",
"infra_step": true,
"name": "checkout edk2.cache.makedirs object/info",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[CACHE]/git/fuchsia.googlesource.com-third_party-edk2/objects\n",
"[START_DIR]/edk2/.git/objects/info/alternates"
],
"cwd": "[START_DIR]/edk2",
"infra_step": true,
"name": "checkout edk2.cache.alternates",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@",
"@@@STEP_LOG_LINE@alternates@[CACHE]/git/fuchsia.googlesource.com-third_party-edk2/objects@@@",
"@@@STEP_LOG_END@alternates@@@"
]
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"remove",
"[CACHE]/git/.GUARD_FILE"
],
"cwd": "[START_DIR]/edk2",
"infra_step": true,
"name": "checkout edk2.cache.remove guard file",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"fetch",
"--tags",
"origin",
"main"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git fetch",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"checkout",
"-f",
"FETCH_HEAD"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git checkout",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"rev-parse",
"HEAD"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git rev-parse",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"clean",
"-f",
"-d",
"-x"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.git clean",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [],
"name": "checkout edk2.submodule",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@"
]
},
{
"cmd": [
"git",
"submodule",
"sync"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.submodule.git submodule sync",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"git",
"submodule",
"update",
"--init",
"--jobs",
"4"
],
"cwd": "[START_DIR]/edk2",
"name": "checkout edk2.submodule.git submodule update",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@2@@@"
]
},
{
"cmd": [
"make",
"-C",
"BaseTools"
],
"cwd": "[START_DIR]/edk2",
"name": "build BaseTools"
},
{
"cmd": [
"./OvmfPkg/build.sh",
"--arch=X64",
"--buildtarget=RELEASE"
],
"cwd": "[START_DIR]/edk2",
"name": "build OVMF binaries"
},
{
"cmd": [
"vpython",
"-u",
"RECIPE_MODULE[recipe_engine::file]/resources/fileutil.py",
"--json-output",
"/path/to/tmp/json",
"copy",
"[START_DIR]/edk2/License.txt",
"[START_DIR]/edk2/Build/OvmfX64/RELEASE_GCC5/FV"
],
"infra_step": true,
"name": "relocate License"
},
{
"cmd": [],
"name": "cipd",
"~followup_annotations": [
"@@@SET_BUILD_PROPERTY@git_revision@\"deadbeef\"@@@",
"@@@SET_BUILD_PROPERTY@instance_id@\"40-chars-fake-of-the-package-instance_id\"@@@",
"@@@SET_BUILD_PROPERTY@package@\"fuchsia/firmware/ovmf/amd64\"@@@"
]
},
{
"cmd": [
"cipd",
"search",
"fuchsia/firmware/ovmf/amd64",
"-tag",
"git_revision:deadbeef",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.cipd search fuchsia/firmware/ovmf/amd64 git_revision:deadbeef",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": []@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@"
]
},
{
"cmd": [
"cipd",
"create",
"-pkg-def",
"{\"data\": [{\"dir\": \".\", \"exclude\": []}, {\"version_file\": \".versions/ovmf.cipd_version\"}], \"install_mode\": \"copy\", \"package\": \"fuchsia/firmware/ovmf/amd64\", \"root\": \"[START_DIR]/edk2/Build/OvmfX64/RELEASE_GCC5/FV\"}",
"-hash-algo",
"sha256",
"-ref",
"latest",
"-tag",
"git_revision:deadbeef",
"-metadata",
"bbid:0",
"-metadata",
"git_repository:https://fuchsia.googlesource.com/third_party/edk2",
"-json-output",
"/path/to/tmp/json"
],
"name": "cipd.create fuchsia/firmware/ovmf/amd64",
"~followup_annotations": [
"@@@STEP_NEST_LEVEL@1@@@",
"@@@STEP_LOG_LINE@json.output@{@@@",
"@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
"@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
"@@@STEP_LOG_LINE@json.output@ \"package\": \"fuchsia/firmware/ovmf/amd64\"@@@",
"@@@STEP_LOG_LINE@json.output@ }@@@",
"@@@STEP_LOG_LINE@json.output@}@@@",
"@@@STEP_LOG_END@json.output@@@",
"@@@STEP_LINK@40-chars-fake-of-the-package-instance_id@https://chrome-infra-packages.appspot.com/p/fuchsia/firmware/ovmf/amd64/+/40-chars-fake-of-the-package-instance_id@@@"
]
},
{
"name": "$result"
}
]