osv project makefile生成loader.img, 不过这个makefile比较复杂,具体生成这个image的详细流程,以后看完或者看懂后再写。这应该是个base image(dirosv/build/release.x64), 这个image就是上一篇文章中提到的,操作系统启动中的image
$(out)/loader.img: $(out)/preboot.bin $(out)/loader-stripped.elf
$(call quiet, dd if=$(out)/preboot.bin of=$@ > /dev/null 2>&1, DD $@ preboot.bin)$(call quiet, dd if=$(out)/loader-stripped.elf of=$@ conv=notrunc obs=4096 seek=16 > /dev/null 2>&1, DD $@ loader-stripped.elf)
$(call quiet, scripts/imgedit.py setargs $@ $(cmdline), IMGEDIT $@)
eg: netperf
root@bamboo-VirtualBox:~/osv# ./scripts/build image=netperf
Building into build/release.x64
GEN gen/include/osv/version.h
No such image configu