.stamp 文件用处一瞥

8.3. Understanding how to rebuild packages
One of the most common questions asked by Buildroot users is how to rebuild a given package or how to remove a package without rebuilding everything from scratch.
Removing a package is unsupported by Buildroot without rebuilding from scratch. This is because Buildroot doesn’t keep track of which package installs what files in the output/staging and output/target directories, or which package would be compiled differently depending on the availability of another package.
The easiest way to rebuild a single package from scratch is to remove its build directory in output/build. Buildroot will then re-extract, re-configure, re-compile and re-install this package from scratch. You can ask buildroot to do this with the make < package >-dirclean command.
On the other hand, if you only want to restart the build process of a package from its compilation step, you can run make < package >-rebuild, followed by make or make . It will restart the compilation and installation of the package, but not from scratch: it basically re-executes make and make install inside the package, so it will only rebuild files that changed.
If you want to restart the build process of a package from its configuration step, you can run make < package >-reconfigure, followed by make or make < package >. It will restart the configuration, compilation and installation of the package.
Internally, Buildroot creates so-called stamp files to keep track of which build steps have been completed for each package. They are stored in the package build directory, output/build/< package >-< version >/ and are named .stamp_< step-name >. The commands detailed above simply manipulate these stamp files to force Buildroot to restart a specific set of steps of a package build process.
Further details about package special make targets are explained in Section 8.12.5, “Package-specific make targets”.

上面提到说 Buildroot 这个工具会创建 stamp 文件来追踪某个包编译过程进行到了哪一步,上面那些命令就是修改了 stamp 文件来强制对特定包的编译重新开始。

同理,删除 stamp 文件应该可能会导致相应的模块被重新编译。

这里写图片描述

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

深海Enoch

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值