hiratazx / android_kernel_samsung_a7y18lte

Kernel Source for Galaxy A7 (2018)
Other
0 stars 1 forks source link

Request for Build Instructions and Dependencies for Kernel Source #1

Open DeadPool-4422 opened 5 months ago

DeadPool-4422 commented 5 months ago

Hello,

I'm looking to build the kernel from this source and have a few questions regarding the process:

  1. Toolchain Requirements:

    • Which toolchain is recommended or required for building?
    • Are there specific versions or platforms (e.g., ARM, x86_64) preferences for the toolchain?
  2. Package Dependencies:

    • Can you list the package dependencies needed for the build?
    • Are specific versions of these packages required for compatibility?
  3. Configuration Steps:

    • Are there specific configuration steps or flags recommended during the build?
    • How should one handle different configurations or targets, if applicable?
  4. Building for Different Environments:

    • Any additional steps or considerations for targeting specific environments (e.g., hardware platforms, operating systems)?

Your guidance will not only help me but also support others in the community facing similar build challenges.

Thanks for your assistance.

DeadPool-4422 commented 5 months ago

i tried to compile using the gcc linaro toolchain

https://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/aarch64-linux-gnu/

but it failed as for why it failed The log is attached below

$ ./build_kernel.sh
arch/arm64/configs/exynos7885-a40_defconfig:235:warning: override: CC_STACKPROTECTOR_STRONG changes choice state
#
# configuration written to .config
#
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
security/samsung/defex_lsm/Makefile:13: [DEFEX] INTEGRITY_ENABLE
security/samsung/defex_lsm/Makefile:118: [DEFEX] VTS false
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[1]: 'include/generated/vdso-offsets.h' is up to date.
  CHK     include/generated/compile.h
security/samsung/defex_lsm/Makefile:13: [DEFEX] INTEGRITY_ENABLE
security/samsung/defex_lsm/Makefile:118: [DEFEX] VTS false
  CHK     kernel/config_data.h
  CC      drivers/gpu/arm/b_r19p0/platform/exynos/gpu_custom_interface.o
  CC      drivers/staging/android/ion/exynos/exynos_ion.o
drivers/gpu/arm/b_r19p0/platform/exynos/gpu_custom_interface.c:22:33: fatal error: linux/sysfs_helpers.h: No such file or directory
 #include <linux/sysfs_helpers.h>
                                 ^
compilation terminated.
make[6]: *** [scripts/Makefile.build:278: drivers/gpu/arm/b_r19p0/platform/exynos/gpu_custom_interface.o] Error 1
make[5]: *** [scripts/Makefile.build:484: drivers/gpu/arm/b_r19p0/platform/exynos] Error 2
make[4]: *** [scripts/Makefile.build:484: drivers/gpu/arm/b_r19p0/platform] Error 2
make[3]: *** [scripts/Makefile.build:484: drivers/gpu/arm/b_r19p0] Error 2
make[2]: *** [scripts/Makefile.build:484: drivers/gpu/arm] Error 2
make[1]: *** [scripts/Makefile.build:484: drivers/gpu] Error 2
make[1]: *** Waiting for unfinished jobs....
drivers/staging/android/ion/exynos/exynos_ion.c: In function ‘ion_system_heap_size_notifier’:
drivers/staging/android/ion/exynos/exynos_ion.c:645:2: error: implicit declaration of function ‘show_ion_system_heap_size’ [-Werror=implicit-function-declaration]
  show_ion_system_heap_size((struct seq_file *)data);
  ^
drivers/staging/android/ion/exynos/exynos_ion.c: In function ‘ion_system_heap_pool_size_notifier’:
drivers/staging/android/ion/exynos/exynos_ion.c:656:2: error: implicit declaration of function ‘show_ion_system_heap_pool_size’ [-Werror=implicit-function-declaration]
  show_ion_system_heap_pool_size((struct seq_file *)data);
  ^
cc1: all warnings being treated as errors
make[5]: *** [scripts/Makefile.build:277: drivers/staging/android/ion/exynos/exynos_ion.o] Error 1
make[4]: *** [scripts/Makefile.build:484: drivers/staging/android/ion/exynos] Error 2
make[3]: *** [scripts/Makefile.build:484: drivers/staging/android/ion] Error 2
make[2]: *** [scripts/Makefile.build:484: drivers/staging/android] Error 2
make[1]: *** [scripts/Makefile.build:484: drivers/staging] Error 2
make: *** [Makefile:1043: drivers] Error 2