1 Star 0 Fork 37

金凯/BookOS

forked from 小骨头/BookOS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
mk2 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
小骨头 提交于 2021-03-13 22:42 . refactor: xtk surface resize clear buf
# MIT License
# Copyright (c) 2020 Jason Hu, Zhu Yu
# support bochs and vbox
FATFS_DIR = tools/fatfs
# System environment variable.
ifeq ($(OS),Windows_NT)
FATFS_BIN := fatfs
else
FATFS_BIN := $(FATFS_DIR)/fatfs
endif
# images and rom
IMAGE_DIR = develop/image
HDA_VHD = $(IMAGE_DIR)/c.vhd
HDB_VHD = $(IMAGE_DIR)/d.vhd
HDA_VMDK = $(IMAGE_DIR)/c-flat.vmdk
HDB_VMDK = $(IMAGE_DIR)/d-flat.vmdk
ROM_DIR = develop/rom
# virtual machine
BOCHS = bochs
BOCHSDBG = bochsdbg
VBOX_MANAGE = VBoxManage
# scripts dir
SCRIPTS_DIR = scripts
# bochs development dir
BOCHS_DIR = $(SCRIPTS_DIR)/bochs/
BXRC_WIN = $(BOCHS_DIR)bochsrc.win # bochsrc for windows
BXRC_LINUX = $(BOCHS_DIR)bochsrc.linux # bochsrc for linux
VBOX_NAME = "BookOS" # virtual box 虚拟机名称
# 参数
.PHONY: all bochs bochsdbg vbox vmware
bochs:
ifeq ($(OS),Windows_NT)
$(BOCHS) -q -f $(BXRC_WIN)
else
$(BOCHS) -q -f $(BXRC_LINUX)
endif
bochsdbg:
ifeq ($(OS),Windows_NT)
$(BOCHSDBG) -q -f $(BXRC_WIN)
else
$(BOCHSDBG) -q -f $(BXRC_LINUX)
endif
# virtual box
vbox: vbox_disk
$(VBOX_MANAGE) startvm $(VBOX_NAME) --type gui
vbox_disk:
$(FATFS_BIN) $(HDB_VHD) $(ROM_DIR) 0
vmware:
$(FATFS_BIN) $(HDB_VMDK) $(ROM_DIR) 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jinkai719/BookOS.git
git@gitee.com:jinkai719/BookOS.git
jinkai719
BookOS
BookOS
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385