【问题标题】:replace Makefile to _Makefile in Makefile将 Makefile 替换为 Makefile 中的 _Makefile
【发布时间】:2020-08-10 16:54:01
【问题描述】:

https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-extended/ethtool/ethtool_5.4.bb#n32

do_install_ptest () {
   cp ${B}/Makefile                 ${D}${PTEST_PATH}
   install ${B}/test-cmdline        ${D}${PTEST_PATH}
   install ${B}/test-features       ${D}${PTEST_PATH}
   install ${B}/ethtool             ${D}${PTEST_PATH}/ethtool
   sed -i 's/^Makefile/_Makefile/'  ${D}${PTEST_PATH}/Makefile
}

在最后一行:

   sed -i 's/^Makefile/_Makefile/'  ${D}${PTEST_PATH}/Makefile

我不知道在Makefile中将'Makefile'替换为'_Makefile'的目的是什么。

【问题讨论】:

    标签: sed makefile yocto bitbake openembedded


    【解决方案1】:

    这可能是有关 Makefile 本身如何工作的一些细节,您必须详细阅读 Makefile 才能解决。

    【讨论】:

      猜你喜欢
      • 2012-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-08-15
      • 2023-01-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多