V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
rancent
V2EX  ›  Android

请教一下安卓内核的编译问题

  •  
  •   rancent · Sep 13, 2019 · 16469 views
    This topic created in 2418 days ago, the information mentioned may be changed or developed.

    仿照这 https://v2ex.com/t/355256 编译的

    源:https://github.com/flar2/android_kernel_oneplus_msm8996

    如图 https://imgchr.com/i/ns0ZOP

    编译要么卡在 gcc 要么卡在 dtc 编译脚本错误


    export PATH=/root/aarch64-linux-android-4.9/bin/:$PATH export ARCH=arm64 export SUBARCH=arm64 export CROSS_COMPILE=aarch64-linux-android- mkdir -p out make O=out clean make O=out mrproper make O=out elementalx_defconfig make O=out -j4

    10 replies    2019-09-15 12:40:01 +08:00
    zeroDev
        1
    zeroDev  
       Sep 13, 2019 via Android
    要不你看看这个 https://xzos.net/fedora-ubuntu-lineageos/ (我写的)吧,如果有问题可以截图出来看看
    phoebuss
        2
    phoebuss  
       Sep 14, 2019 via Android
    看图像是被墙了…你能访问 android.googlesource.com?
    rancent
        3
    rancent  
    OP
       Sep 14, 2019
    @zeroDev 博客先收藏了,那我编译 mokee 就可以魔法了
    phoebuss
        5
    phoebuss  
       Sep 14, 2019 via Android
    咦,奇怪了?这 make 怎么把 deprecated warning 当作命令去执行了…
    rancent
        6
    rancent  
    OP
       Sep 14, 2019
    @phoebuss 是的很奇葩,我正尝试用 clang 编译了
    rancent
        7
    rancent  
    OP
       Sep 14, 2019
    @phoebuss
    @zeroDev
    谢谢,问题解决了,换了编译器,从 7.4 一路试到 4.9,能编译了..
    https://releases.linaro.org/components/toolchain/binaries/

    放个编译结果..这个应该成功了吧..5 分钟都不到就完事了..
    https://sm.ms/image/8uXiNm1B5DpQzgC
    Bugrun
        8
    Bugrun  
       Sep 15, 2019
    @我也报错编译的 mi8 的能带带我么
    Bugrun
        9
    Bugrun  
       Sep 15, 2019
    @rancent 可以带带么按官方 wiki 编译一直报错
    rancent
        10
    rancent  
    OP
       Sep 15, 2019
    @Bugrun 环境变量+依赖项+编译器(不要用谷歌提供的)+内核源码,这我邮箱 base64:cmFuY2VudEB2aXAucXEuY29t
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6128 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 02:10 · PVG 10:10 · LAX 19:10 · JFK 22:10
    ♥ Do have faith in what you're doing.