2 Star 1 Fork 45

李杨/Linux 0.11 Lab

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.08 KB
一键复制 编辑 原始数据 按行查看 历史
# Comment this to use me in host
DOCKER ?= yes
ifeq ($(DOCKER),yes)
# Check running envrionment
LAB_ENV_ID=/home/ubuntu/Desktop/lab.desktop
ifneq ($(LAB_ENV_ID),$(wildcard $(LAB_ENV_ID)))
ifneq (../../configs/linux-0.11-lab, $(wildcard ../../configs/linux-0.11-lab))
$(error ERR: No 'Cloud Lab' found, please refer to 'Download the lab' part of README.md)
else
$(error ERR: Please not try Linux 0.11 Lab in local host, but use it with 'Cloud Lab', please refer to 'Install the environment' part of README.md)
endif
endif
endif
include Makefile.head
all: Image
$(LINUX_SRC): $(LINUX_VERSION)
$(Q)rm -rf $@
$(Q)ln -sf $< $@
Image: $(LINUX_SRC)
$(Q)(cd $(LINUX_SRC); make $@)
clean: $(LINUX_SRC)
$(Q)(cd $(ROOTFS_DIR); make $@)
$(Q)(cd $(CALLGRAPH_DIR); make $@)
$(Q)(cd $(LINUX_SRC); make $@)
$(Q)rm -rf bochsout.txt
distclean: clean
$(Q)(cd $(LINUX_SRC); make $@)
# Test on emulators with different prebuilt rootfs
include Makefile.emu
# Tags for source code reading
include Makefile.tags
# For Call graph generation
include Makefile.cg
# For help
include Makefile.help
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/hellokernel/linux-0.11-lab.git
git@gitee.com:hellokernel/linux-0.11-lab.git
hellokernel
linux-0.11-lab
Linux 0.11 Lab
dev

搜索帮助