Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
xbook2是一个基于x86处理器的32位操作系统,这次是新的尝试,使用混内核结构,添加一些新的内容进来。 spread retract

Clone or download
mk2 778 Bytes
Copy Edit Web IDE Raw Blame History
胡自成 authored 2020-07-09 14:45 . fix xbuild bug in kernel
# MIT License
# Copyright (c) 2020 Jason Hu, Zhu Yu
# support bochs and vbox
# 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 = "xbook" # virtual box 虚拟机名称
# 参数
.PHONY: all bochs bochsdbg vbox
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_MANAGE) startvm $(VBOX_NAME) --type gui

Comment ( 0 )

Sign in for post a comment