-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for darwin-arm64 chipset (#1169)
* Add support for darwin-arm64 chipset Signed-off-by: Domenico Luciani <[email protected]> * Split darwin builder into a separate module extracting the code for a more generic use Signed-off-by: Domenico Luciani <[email protected]> * Split darwin.mk to lifecycle.mk and launcher.mk Signed-off-by: Domenico Luciani <[email protected]> * Update launcher.mk with a better naming Co-authored-by: Natalie Arellano <[email protected]> Signed-off-by: Domenico Luciani <[email protected]> * Update lifecycle.mk with a better naming Co-authored-by: Natalie Arellano <[email protected]> Signed-off-by: Domenico Luciani <[email protected]> * Adjusted called function Signed-off-by: Domenico Luciani <[email protected]> --------- Signed-off-by: Domenico Luciani <[email protected]> Co-authored-by: Natalie Arellano <[email protected]>
- Loading branch information
1 parent
df9ae90
commit c72dc20
Showing
3 changed files
with
42 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
define build_launcher | ||
@echo "> Building launcher for $(TARGET)..." | ||
mkdir -p $(OUT_DIR) | ||
$(GOENV) $(GOBUILD) -o $(OUT_DIR)/launcher -a ./cmd/launcher | ||
test $$(du -m $(OUT_DIR)/launcher | cut -f 1) -le 4 | ||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
define build_lifecycle | ||
@echo "> Building lifecycle for $(TARGET)..." | ||
$(GOENV) $(GOBUILD) -o $(OUT_DIR)/lifecycle -a ./cmd/lifecycle | ||
@echo "> Creating lifecycle symlinks for $(1)..." | ||
ln -sf lifecycle $(OUT_DIR)/detector | ||
ln -sf lifecycle $(OUT_DIR)/analyzer | ||
ln -sf lifecycle $(OUT_DIR)/restorer | ||
ln -sf lifecycle $(OUT_DIR)/builder | ||
ln -sf lifecycle $(OUT_DIR)/exporter | ||
ln -sf lifecycle $(OUT_DIR)/rebaser | ||
endef |