From 66ec773cc8cab4a64f77c66d8a135f5d60b5afa8 Mon Sep 17 00:00:00 2001 From: Henning Schild Date: Wed, 27 Mar 2019 11:11:44 +0100 Subject: jailhouse: allow building without a config Signed-off-by: Henning Schild Signed-off-by: Ola Redell --- recipes-jailhouse/jailhouse/jailhouse.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes-jailhouse/jailhouse/jailhouse.inc b/recipes-jailhouse/jailhouse/jailhouse.inc index e916196..961e707 100644 --- a/recipes-jailhouse/jailhouse/jailhouse.inc +++ b/recipes-jailhouse/jailhouse/jailhouse.inc @@ -30,7 +30,10 @@ do_configure() { cp "${STAGING_DIR_HOST}/${CELLCONF_DIR}/"*.c ${S}/configs/ fi - cp -av ${JH_CONFIG} ${S}/include/jailhouse/config.h + if [ ! -z ${JH_CONFIG} ]; + then + cp -av ${JH_CONFIG} ${S}/include/jailhouse/config.h + fi } USER_SPACE_CFLAGS = '${CFLAGS} -DLIBEXECDIR=\\\"${libexecdir}\\\" \ -- cgit v1.2.3-54-g00ecf