![Carlo Caione](/assets/img/avatar_default.png)
Jailhouse is a partitioning Hypervisor based on Linux. It is able to run bare-metal applications or (adapted) operating systems besides Linux. For this purpose, it configures CPU and device virtualization features of the hardware platform in a way that none of these domains, called "cells" here, can interfere with each other in an unacceptable way. For 32-bit ARM, it uses instructions from the armv7ve ISA. Since we don't have a Config.in symbol to represent this yet, exclude 32-bit ARM for now. Signed-off-by: Carlo Caione <ccaione@baylibre.com> [Arnout: - remove arm as supported architecture; - add architecture dependency to comment; - remove architecture comment; - move python dependencies to the condition.] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
49 lines
1.7 KiB
Makefile
49 lines
1.7 KiB
Makefile
################################################################################
|
|
#
|
|
# jailhouse
|
|
#
|
|
################################################################################
|
|
|
|
JAILHOUSE_VERSION = 0.10
|
|
JAILHOUSE_SITE = $(call github,siemens,jailhouse,v$(JAILHOUSE_VERSION))
|
|
JAILHOUSE_LICENSE = GPL-2.0
|
|
JAILHOUSE_LICENSE_FILES = COPYING
|
|
JAILHOUSE_DEPENDENCIES = \
|
|
linux
|
|
|
|
JAILHOUSE_MAKE_OPTS = \
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
|
ARCH="$(KERNEL_ARCH)" \
|
|
KDIR="$(LINUX_DIR)" \
|
|
DESTDIR="$(TARGET_DIR)"
|
|
|
|
ifeq ($(BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS),y)
|
|
JAILHOUSE_DEPENDENCIES += host-python-setuptools
|
|
JAILHOUSE_MAKE_OPTS += PYTHON_PIP_USABLE="yes"
|
|
else
|
|
JAILHOUSE_MAKE_OPTS += PYTHON_PIP_USABLE="no"
|
|
endif
|
|
|
|
define JAILHOUSE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(JAILHOUSE_MAKE_OPTS) -C $(@D)
|
|
|
|
$(if $(BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS), \
|
|
cd $(@D) && $(PKG_PYTHON_SETUPTOOLS_ENV) $(HOST_DIR)/bin/python setup.py build)
|
|
endef
|
|
|
|
define JAILHOUSE_INSTALL_TARGET_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(JAILHOUSE_MAKE_OPTS) -C $(@D) modules_install firmware_install tool_inmates_install
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(JAILHOUSE_MAKE_OPTS) -C $(@D)/tools src=$(@D)/tools install
|
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/jailhouse
|
|
$(INSTALL) -D -m 0644 $(@D)/configs/*/*.cell $(TARGET_DIR)/etc/jailhouse
|
|
|
|
$(INSTALL) -d -m 0755 $(TARGET_DIR)/usr/local/libexec/jailhouse/demos
|
|
$(INSTALL) -D -m 0755 $(@D)/inmates/demos/*/*.bin $(TARGET_DIR)/usr/local/libexec/jailhouse/demos
|
|
|
|
$(if $(BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS), \
|
|
cd $(@D) && $(PKG_PYTHON_SETUPTOOLS_ENV) $(HOST_DIR)/bin/python setup.py install --no-compile $(PKG_PYTHON_SETUPTOOLS_INSTALL_TARGET_OPTS))
|
|
endef
|
|
|
|
$(eval $(generic-package))
|