如何使用 build.sh 将 Bash 包含在 NetBSD 的交叉编译中?
我正在寻找使用 build.sh 脚本将 GNU Bash 包含在 NetBSD 交叉编译中的最佳实践。现在,我的计划是将其包含在 usr/src/gnu/dist 中,然后在 usr/src/gnu/usr.bin 中创建相关的 Makefile,但我想知道是否有更简单/更好的方法来做到这一点?
I'm looking for the best practice for including GNU Bash in the cross-compilation of NetBSD using the build.sh script. Right now, my plan is to include it in usr/src/gnu/dist and then create the relevant Makefiles in usr/src/gnu/usr.bin but I was wondering if there was an easier/better way to do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
新的方式是将文件放在 src/external// 下。对于 bash,它是 src/external/gpl3/bash。 (此目录以下称为 ${EXTTOPDIR.bash}。)
原始源代码按原样扩展到 ${EXTTOPDIR}/dist 中。其他文件和目录在 ${EXTTOPDIR} 处创建。例如,从复制 src/external/gpl2/xcvs 开始。 (BSD)(在原始源之外)放置的 makefile 称为“reach-over”;这意味着构建过程的保留不会影响原始来源。这有助于简化原始来源的维护。 (不,不幸的是,所有这些都没有记录在案。)
如果您需要将构建挂钩为“工具”,您将需要更多的东西来关心。该过程也没有记录。只要从源头学习就可以了。
如果您在官方 NetBSD 树上工作,那么您需要了解更多关于 CVS 的知识;使用供应商分支等。HTH
,
正男
The new way is to place files under src/external//. For bash, it's src/external/gpl3/bash. (This directory is called ${EXTTOPDIR.bash} hereafter.)
The original source is expanded into ${EXTTOPDIR}/dist as is. Other files and directories are made at ${EXTTOPDIR}. Start with copying src/external/gpl2/xcvs for example. (BSD) makefiles that are placed (out of the original source) are called "reach-over"; meaning that build procedures are kept without disturbing the original source. This helps to ease maintaining of the original source. (And no, all of these are not documented at all, unfortunately.)
If you need to hook the build as "tools", you'll need something more to care. The procedure is also not documented. Just learn from the source.
If you work on the official NetBSD tree, you have something more to learn about CVS; use vendor branch, etc.
HTH,
Masao