ananjaser1211 / Cronos_8890

Exynos8890 Kernel for Galaxy 7 Series | OneUI 1.0/2.5
Other
46 stars 21 forks source link

Building Cronos #5

Open V3rB0se opened 11 months ago

V3rB0se commented 11 months ago

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.

ananjaser1211 commented 11 months ago
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

2) Reset hard to pre-deprecation

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

V3rB0se commented 11 months ago

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"

ananjaser1211 commented 11 months ago

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

V3rB0se commented 11 months ago

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