Skip to content

Commit befc8a3

Browse files
Add linux cross-compilation option for launcher (IBM#30)
Adds `install-launcher-linux` makefile target to cross-compile the launcher locally on an ARM chip and test remotely on an x86 machine. Signed-off-by: Prashant Gupta <[email protected]> Signed-off-by: Joe Runde <[email protected]> Co-authored-by: PRASHANT GUPTA <[email protected]>
1 parent c428b05 commit befc8a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ install-router:
2323
install-launcher:
2424
cd launcher && env GIT_COMMIT_HASH=$(GIT_COMMIT_HASH) cargo install --path .
2525

26+
.PHONY: install-launcher-linux
27+
install-launcher-linux:
28+
cd launcher && env GIT_COMMIT_HASH=$(GIT_COMMIT_HASH) CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc cargo install --path . --target=x86_64-unknown-linux-gnu
29+
2630
install: install-server install-router install-launcher install-custom-kernels
2731

2832
server-dev:

0 commit comments

Comments
 (0)