Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SSH binaries for arm64 #14

Merged
merged 2 commits into from
Mar 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions ssh-server/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
IMAGE_NAME := dropbear_ssh_builder
CONTAINER_NAME := dropbear_ssh_runner

.PHONY: all
all: amd64 arm64

.PHONY: amd64 arm64
amd64 arm64:
mkdir -p $@
docker build --platform linux/$@ -t $(IMAGE_NAME) .
docker run --platform linux/$@ -it --rm -d --name $(CONTAINER_NAME) $(IMAGE_NAME) bash
docker cp $(CONTAINER_NAME):/tmp/dropbear/dropbear $@/dropbear
chmod +x $@/dropbear
docker cp $(CONTAINER_NAME):/usr/bin/scp $@/scp
chmod +x $@/scp
docker stop $(CONTAINER_NAME)
5 changes: 5 additions & 0 deletions ssh-server/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
To cross-build on x86\_64, following QEMU packages are required:

```
sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user-static qemu-system-i386
```
Binary file added ssh-server/amd64/dropbear
Binary file not shown.
File renamed without changes.
Binary file added ssh-server/arm64/dropbear
Binary file not shown.
Binary file added ssh-server/arm64/scp
Binary file not shown.
10 changes: 0 additions & 10 deletions ssh-server/build.sh

This file was deleted.

Binary file removed ssh-server/dropbear
Binary file not shown.