UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. manit_c
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 1
    • Groups 0

    manit_c

    @manit_c

    2
    Reputation
    3
    Profile views
    1
    Posts
    0
    Followers
    0
    Following
    Joined
    Last Online

    manit_c Unfollow Follow

    Best posts made by manit_c

    • RE: How to compile ONLY a kernel

      @doniks Thanks for the post, it gave me clues on my issue.

      This is an old thread but wanted to add to your post because it took me so long to get it to compile. Having never compiled an Android Kernel before I think I spent 2 days on it.

      Using Ubuntu 18, gcc-4.8 was not available through apt. I ended up download the AOSP8 source. The source contains gcc for the android version located in prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android

      Looking at the build.config.aarch64 file https://android.googlesource.com/kernel/common/+/a5d10f0defc377d43672b304e31e37a517fbf0bf/build.config.aarch64

      I found the variables, needed for the kernel source.

      ARCH=arm64
      CLANG_TRIPLE=aarch64-linux-gnu-
      CROSS_COMPILE=aarch64-linux-androidkernel-
      CROSS_COMPILE_COMPAT=arm-linux-androidkernel-
      LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
      LINUX_GCC_CROSS_COMPILE_COMPAT_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/

      There were a lot of other dependencies I had to install but that took care of the correct gcc version.

      Hope this helps someone.

      posted in Porting
      M
      manit_c

    Latest posts made by manit_c

    • RE: How to compile ONLY a kernel

      @doniks Thanks for the post, it gave me clues on my issue.

      This is an old thread but wanted to add to your post because it took me so long to get it to compile. Having never compiled an Android Kernel before I think I spent 2 days on it.

      Using Ubuntu 18, gcc-4.8 was not available through apt. I ended up download the AOSP8 source. The source contains gcc for the android version located in prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android

      Looking at the build.config.aarch64 file https://android.googlesource.com/kernel/common/+/a5d10f0defc377d43672b304e31e37a517fbf0bf/build.config.aarch64

      I found the variables, needed for the kernel source.

      ARCH=arm64
      CLANG_TRIPLE=aarch64-linux-gnu-
      CROSS_COMPILE=aarch64-linux-androidkernel-
      CROSS_COMPILE_COMPAT=arm-linux-androidkernel-
      LINUX_GCC_CROSS_COMPILE_PREBUILTS_BIN=prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin
      LINUX_GCC_CROSS_COMPILE_COMPAT_PREBUILTS_BIN=prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/

      There were a lot of other dependencies I had to install but that took care of the correct gcc version.

      Hope this helps someone.

      posted in Porting
      M
      manit_c