This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMDS64GPEVM:定制 defconfig

Guru**** 537930 points
Other Parts Discussed in Thread: TMDS64GPEVM
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1215188/tmds64gpevm-custom-defconfig

器件型号:TMDS64GPEVM

大家好

对于我们的定制电路板、我们 希望 基于 TMDS64GPEVM defconfig 为内核提供定制 defconfig。 我将使用 Yocto 构建映像。 在 meta-ti/recips-kernel/Linux 中、我发现了 负责创建 defconfig 的脚本 setup-defconfig.inc。 在脚本的第一行中、我看到命令。  

 cp ${WORKDIR}/defconfig ${B}/.config

因此、在我的内核.bbappend Yocto 方法中、我添加了以下函数:

do_configure:prepend() {
        bbnote "Applying PUMA kernel defconfig..."
        cp ${WORKDIR}/puma_linux_kernel_defconfig ${S}/arch/${ARCH}/configs/
        ln -sfr ${WORKDIR}/puma_linux_kernel_defconfig ${WORKDIR}/defconfig
}

 

我的 defconfig 只是在 TI 内核源树中找到的 defconfig 副本:  /arch/arm64/configs/defconfig.  将上述功能添加到配方构建的图像后、大小增加了一倍。 为什么?

使用默认 defconfig 构建相同的图像会导致图像尺寸减小两倍。

感谢您的帮助

Br

雅各布