27 Star 21 Fork 15

openKylin/kylin-jailhouse

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.52 KB
一键复制 编辑 原始数据 按行查看 历史
chenyangping 提交于 2022-12-08 09:49 . add source code
#
# Jailhouse, a Linux-based partitioning hypervisor
#
# Copyright (c) Siemens AG, 2013, 2014
#
# Authors:
# Jan Kiszka <jan.kiszka@siemens.com>
#
# This work is licensed under the terms of the GNU GPL, version 2. See
# the COPYING file in the top-level directory.
#
# Check make version
need := 3.82
ifneq ($(need),$(firstword $(sort $(MAKE_VERSION) $(need))))
$(error Too old make version $(MAKE_VERSION), at least $(need) required)
endif
# no recipes above this one (also no includes)
all: modules
# includes installation-related variables and definitions
include scripts/include.mk
# out-of-tree build for our kernel-module, firmware and inmates
KDIR ?= /lib/modules/`uname -r`/build
INSTALL_MOD_PATH ?= $(DESTDIR)
export INSTALL_MOD_PATH
DOXYGEN ?= doxygen
kbuild = -C $(KDIR) M=$$PWD $@
ifneq ($(DESTDIR),)
PIP_ROOT = --root=$(shell readlink -f $(DESTDIR))
endif
modules clean:
$(Q)$(MAKE) $(kbuild)
# documentation, build needs to be triggered explicitly
docs:
$(DOXYGEN) Documentation/Doxyfile
modules_install: modules
$(Q)$(MAKE) $(kbuild)
firmware_install: $(DESTDIR)$(firmwaredir) modules
$(INSTALL_DATA) hypervisor/jailhouse*.bin $<
tool_inmates_install: $(DESTDIR)$(libexecdir)/jailhouse
$(INSTALL_DATA) inmates/tools/$(ARCH)/*.bin $<
install: modules_install firmware_install tool_inmates_install
$(Q)$(MAKE) -C tools $@ src=.
ifeq ($(strip $(PYTHON_PIP_USABLE)), yes)
$(PIP) install --upgrade --force-reinstall $(PIP_ROOT) .
endif
.PHONY: modules_install install clean firmware_install modules tools docs \
docs_clean
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openkylin/kylin-jailhouse.git
git@gitee.com:openkylin/kylin-jailhouse.git
openkylin
kylin-jailhouse
kylin-jailhouse
master

搜索帮助