From c8e1094f1abd9af5e623e0e1a3d187e6cd349e26 Mon Sep 17 00:00:00 2001 From: Eljakim Herrewijnen Date: Fri, 17 May 2024 14:59:52 +0200 Subject: [PATCH] added ndk for building --- Makefile | 5 +++++ README.md | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 88426ed..8144e37 100755 --- a/Makefile +++ b/Makefile @@ -1,4 +1,9 @@ +ifeq ($(ANDROID_NDK_ROOT),) +$(error Error : Set the env variable 'ANDROID_NDK_ROOT' with the path of the Android NDK (version 20)) +endif +#ARM thumb mode +DEVKITARM := $(TOOLCHAINENV)/gcc-arm-none-eabi-10-2020-q4-major CC = $(DEVKITARM)/bin/arm-none-eabi-gcc LD = $(DEVKITARM)/bin/arm-none-eabi-ld diff --git a/README.md b/README.md index fdd6cef..8e696a4 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,9 @@ A fork of early commit of [hekate](https://github.com/CTCaer/hekate/). I am studying its process. ## Build -### **Archlinux** + ```shell -sudo pacman -S arm-none-eabi-newlib arm-none-eabi-gcc arm-none-eabi-binutils #Build Toolchain -mkdir build +mkdir -p build +export ANDROID_NDK_ROOT=$TOOLCHAINENV/android-ndk-r21_Linux make -...#Run the payload ```