Refactor build_artifacts.sh and makefile
- Move everything to .data, .vendor, .artifacts and .bin in order to cleanly separate build input and output.
- Sprinkle some subshells on build_artifacts.sh to make it fail more gracefully.
- Fix fetch_third_party.sh check.
- GOBUILD make helper.
- Dockerfile with build dependencies.
Test Plan:
Ran `make clean` and build steps described in README.md, it boots:
{P84}
X-Origin-Diff: phab/D195
GitOrigin-RevId: 4106534c7248931b79e93e2a13153482033cd0d8
diff --git a/scripts/fetch_third_party.sh b/scripts/fetch_third_party.sh
index c9edaca..537b19a 100755
--- a/scripts/fetch_third_party.sh
+++ b/scripts/fetch_third_party.sh
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -euo pipefail
-mkdir -p third_party/linux
-curl -L https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.72.tar.xz | tar -xJf - -C third_party/linux --strip-components 1
-ln -fs ../../kernel/linux-smalltown.config third_party/linux/.config
\ No newline at end of file
+mkdir -p .vendor/linux
+curl -L https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.72.tar.xz | tar -xJf - -C .vendor/linux --strip-components 1
+ln -rfs kernel/linux-smalltown.config .vendor/linux/.config