android-sdk-tools icon indicating copy to clipboard operation
android-sdk-tools copied to clipboard

请问一下,如果我想指定交叉编译工具链怎么如何操作

Open TheSaltwaterRoom opened this issue 3 months ago • 2 comments

目标:交叉编译android adb,放到海思芯片嵌入式板子上面执行

android源码已经下载好

mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo

repo init --partial-clone -b android-latest-release -u https://android.googlesource.com/platform/manifest

repo sync -c -j8

packages/modules/adb 目录下面新版的asop已经没有Android.mk,只有Android.bp

我的交叉编译工具链路径为:/opt/hisi-linux/x86-arm/aarch64-mix410-linux/bin/aarch64-mix410-linux-gcc

TheSaltwaterRoom avatar Sep 05 '25 05:09 TheSaltwaterRoom

可以参考这个仓库进行自定义工具链设置https://github.com/HomuHomu833/android-sdk-custom

lzhiyong avatar Sep 12 '25 09:09 lzhiyong

I think this issue can be closed

HomuHomu833 avatar Sep 16 '25 14:09 HomuHomu833