Skip navigation

如何在make install的时候将boot sector安装到软盘的引导区呢?这里要用一个dos的小技巧。首先,我们建立一个叫做installa.script文件内容为:

w 100 0 0 1
q

之后在makefile的install section里加入

@debug boot144.bin > installa.script

这样一来installa.script的内容会自动在debug进入的时候执行了。另外也不用使用额外的partcopy之类的工具了。

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>