From 82077efed8ce673641d2b55f44af69a6ea677a69 Mon Sep 17 00:00:00 2001 From: clearbluejar <3752074+clearbluejar@users.noreply.github.com> Date: Mon, 15 Aug 2022 18:21:25 +0000 Subject: [PATCH] add Ghidra native binary support for arm64 os --- .devcontainer/devcontainer.json | 3 ++- .devcontainer/post-create.sh | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index deb2a10..4e851ae 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -62,6 +62,7 @@ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode", "features": { - "java": "11" + "java": "11", + "gradle": "latest" } } diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index 8b88e36..d4a3fb0 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -24,4 +24,9 @@ pip install ghidra_bridge python -m ghidra_bridge.install_server .ghidra_bridge # Install pyhdira -pip install pyhidra \ No newline at end of file +pip install pyhidra + +# If arm64 os, need to build native binaries for Ghidra +if uname -a | grep -q 'aarch64'; then + $GHIDRA_INSTALL_DIR/support/buildNatives +fi \ No newline at end of file