3日目 harib00iのコンパイル - HobbyOSs/opennask GitHub Wiki

手順

参考のため、二つのプロジェクトのコンパイル済みバイナリを配置

image

  • おもむろに make を実行

エラーになる。make.batのパス指定がまずい。

image

  • make.bat の修正
--- a/make.bat
+++ b/make.bat
@@ -1 +1 @@
-..\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
\ No newline at end of file
+..\..\..\tolset\z_tools\make.exe %1 %2 %3 %4 %5 %6 %7 %8 %9
\ No newline at end of file
  • Makefile を以下のように置換
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-TOOLPATH = ../z_tools/
-INCPATH  = ../z_tools/haribote/
+TOOLPATH = ../../../tolset/z_tools/
+INCPATH  = ../../../tolset/z_tools/haribote/

 MAKE     = $(TOOLPATH)make.exe -r
 NASK     = $(TOOLPATH)nask.exe
@@ -47,7 +47,7 @@ haribote.sys : asmhead.bin bootpack.hrb Makefile
        copy /B asmhead.bin+bootpack.hrb haribote.sys

 haribote.img : ipl10.bin haribote.sys Makefile
-       $(EDIMG)   imgin:../z_tools/fdimg0at.tek \
+       $(EDIMG)   imgin:../../../tolset/z_tools/fdimg0at.tek \
                wbinimg src:ipl10.bin len:512 from:0 to:0 \
                copy from:haribote.sys to:@: \
                imgout:haribote.img
  • 以下のようなエラーになる。次はruleファイルの修正

image

  • tolset\z_tools\haribote\haribote.rul に同じようなやつがあるので同様に修正しておく