Cronos_8890 icon indicating copy to clipboard operation
Cronos_8890 copied to clipboard

Building Cronos

Open V3rB0se opened this issue 2 years ago • 4 comments

Hello, I've tried building with various toolchains but none of them worked. could you share the toolchain you're using? I've tried clang-r399163 [11.0.4] mentioned in the build script but it didn't work either.

V3rB0se avatar Nov 25 '23 21:11 V3rB0se

CR_GCC4=~/Android/Toolchains/aarch64-linux-android-4.9/bin/aarch64-linux-android-
CR_LINARO=~/Android/Toolchains/aarch64-linaro-4.9.4-linux-gnu/bin/aarch64-linux-gnu-

Linaro and GCC4 are the only "stable" ones, the rest have been abandoned.

Linaro : https://releases.linaro.org/components/toolchain/binaries/latest-4/aarch64-linux-gnu/gcc-linaro-4.9.4-2017.01-x86_64_aarch64-linux-gnu.tar.xz

or to get GCC4.9 from google :

  1. Clone the toolchain

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9

  1. Reset hard to pre-deprecation

cd aarch64-linux-android-4.9 git reset --hard 74ea98e3cc5a4b49be2df0f070b814fff7ab140b

ananjaser1211 avatar Nov 25 '23 21:11 ananjaser1211

so the linaro toolchain works fine now its just this kernelsu error showing up when building

ksud.c:6:37: fatal error: linux/input-event-codes.h: No such file or directory #include "linux/input-event-codes.h"

V3rB0se avatar Nov 26 '23 05:11 V3rB0se

so the linaro toolchain works fine now its just this kernelsu error showing up when building

ksud.c:6:37: fatal error: linux/input-event-codes.h: No such file or directory #include "linux/input-event-codes.h"

Try manually executing the ksu fetcher script, we patch that along side few other headers and issues inside the script itself

https://github.com/ananjaser1211/Cronos_8890/blob/cronos/scripts/fetch-latest-kernelsu.sh#L43

./scripts/fetch-latest-kernelsu.su

ananjaser1211 avatar Nov 26 '23 15:11 ananjaser1211

so the linaro toolchain works fine now its just this kernelsu error showing up when building ksud.c:6:37: fatal error: linux/input-event-codes.h: No such file or directory #include "linux/input-event-codes.h"

Try manually executing the ksu fetcher script, we patch that along side few other headers and issues inside the script itself

https://github.com/ananjaser1211/Cronos_8890/blob/cronos/scripts/fetch-latest-kernelsu.sh#L43

./scripts/fetch-latest-kernelsu.su

still the same i guess the script is broken, as it doesn't replace input-event-codes.h with input.h

V3rB0se avatar Nov 29 '23 18:11 V3rB0se