【问题标题】:How do I change the path while executing make file_defconfig Android kernel?执行 make file_defconfig Android 内核时如何更改路径?
【发布时间】:2016-07-07 01:42:17
【问题描述】:

在以下几行之后:

export CROSS_COMPILE=/home/yourusername/NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-

make clean && make mrproper

ma​​ke maker.defconfig 给我这个错误:

找不到默认配置“arch/x86/configs/filename_defconfig”。

它在 x86/configs/filename_defconfig 而不是 arm/configs/filename_defconfig 中搜索。如何更改路径?

【问题讨论】:

    标签: android-kernel


    【解决方案1】:

    你只是缺少一个export

    export ARCH=arm //Or whatever architecture you're compiling for
    export CROSS_COMPILE=/home/yourusername/NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-
    make clean && make mrproper
    

    请注意,您只是以这种方式清理内核构建,要实际编译它,请将 make 命令替换为这些命令(您仍然需要导出):

    make <target config file>
    make -j<number of cores you wish to use for compilation>
    

    您也可以将export 行直接添加到 make 命令中,如下所示:

    make ARCH=arm CROSS_COMPILE=/home/yourusername/NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- <make target>
    

    【讨论】:

      猜你喜欢
      • 2017-10-07
      • 2011-09-10
      • 2020-06-20
      • 1970-01-01
      • 2013-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多