52b43a1247
The last Jailhouse tag is v0.12. It dates from 2020-02-04, which is 4 years old. This version no longer compiles with recent Kernels. This commit updates Jailhouse to the latest commit e57d1ef, which dates from 2023-01-10. For commit logs, see: https://github.com/siemens/jailhouse/commits/master/ Signed-off-by: Julien Olivain <ju.o@free.fr> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# jailhouse
|
|
#
|
|
################################################################################
|
|
|
|
JAILHOUSE_VERSION = e57d1eff6d55aeed5f977fe4e2acfb6ccbdd7560
|
|
JAILHOUSE_SITE = $(call github,siemens,jailhouse,$(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)" \
|
|
prefix=/usr
|
|
|
|
ifeq ($(BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS),y)
|
|
JAILHOUSE_DEPENDENCIES += \
|
|
host-python-mako \
|
|
host-python-setuptools
|
|
JAILHOUSE_MAKE_OPTS += \
|
|
HAS_PYTHON_MAKO="yes" \
|
|
PYTHON_PIP_USABLE="yes"
|
|
else
|
|
JAILHOUSE_MAKE_OPTS += \
|
|
HAS_PYTHON_MAKO="no" \
|
|
PYTHON_PIP_USABLE="no"
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_JAILHOUSE_HELPER_SCRIPTS),y)
|
|
define JAILHOUSE_BUILD_HELPER_SCRIPTS
|
|
cd $(@D) && \
|
|
$(PKG_PYTHON_SETUPTOOLS_ENV) \
|
|
$(HOST_DIR)/bin/python setup.py \
|
|
build
|
|
endef
|
|
define JAILHOUSE_INSTALL_HELPER_SCRIPTS
|
|
cd $(@D) && \
|
|
$(PKG_PYTHON_SETUPTOOLS_ENV) \
|
|
$(HOST_DIR)/bin/python setup.py \
|
|
install --no-compile \
|
|
$(PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS) \
|
|
--root=$(TARGET_DIR))
|
|
endef
|
|
endif
|
|
|
|
define JAILHOUSE_BUILD_CMDS
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(JAILHOUSE_MAKE_OPTS) -C $(@D)
|
|
|
|
$(JAILHOUSE_BUILD_HELPER_SCRIPTS)
|
|
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/libexec/jailhouse/demos
|
|
$(INSTALL) -D -m 0755 $(@D)/inmates/demos/*/*.bin $(TARGET_DIR)/usr/libexec/jailhouse/demos
|
|
|
|
$(JAILHOUSE_INSTALL_HELPER_SCRIPTS)
|
|
endef
|
|
|
|
$(eval $(generic-package))
|