MiCode / Xiaomi_Kernel_OpenSource

Xiaomi Mobile Phone Kernel OpenSource
8.72k stars 3.22k forks source link

DTC question about How to compile kernel standalone wiki page #2239

Open Klamath233 opened 3 years ago

Klamath233 commented 3 years ago

How to compile kernel standalone wikipage states:

dtc must be from aosp source code(pie-release)

However, dtc is not part of the gcc prebuilts, please check: https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/x86/x86_64-linux-android-4.9/+/refs/heads/pie-release

Why won't the dtc shipped with any Linux distribution work? If the prebuilt binary doesn't exist, are we supposed to build https://android.googlesource.com/platform/external/dtc/+/refs/heads/pie-release?

Squida commented 3 years ago

From what I understand, You get the DTC binary from AOSP's KERNEL or ROM repo. its located in prebuilts-master>misc or prebuilts>kernel-build-tools. For the ROM repo, you find all files needed in prebuilts folder.

for example, for the master branch. https://android.googlesource.com/platform/prebuilts/misc/+/refs/heads/master