开发者

How can I include Bash in the cross-compilation of NetBSD using build.sh?

I'm looking for the best practice for including GNU Bash in the cross-compilation of NetBSD using the build.sh script. Ri开发者_开发知识库ght 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?


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜