From 99d3ac64957842a94fdf45f0380d0075ff37781a Mon Sep 17 00:00:00 2001 From: Denys Dmytriyenko Date: Mon, 15 Jul 2019 19:45:04 +0000 Subject: jailhouse: combine 2 __anonymous() functions, clean tabs Fixes WARNING: python should use 4 spaces indentation, but found tabs in jailhouse_git.bb, line 85 Reported-by: Khem Raj Signed-off-by: Denys Dmytriyenko --- recipes-kernel/jailhouse/jailhouse_git.bb | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'recipes-kernel/jailhouse') diff --git a/recipes-kernel/jailhouse/jailhouse_git.bb b/recipes-kernel/jailhouse/jailhouse_git.bb index 753664ed..dc35262c 100644 --- a/recipes-kernel/jailhouse/jailhouse_git.bb +++ b/recipes-kernel/jailhouse/jailhouse_git.bb @@ -81,13 +81,6 @@ do_compile() { oe_runmake V=1 ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} KDIR=${STAGING_KERNEL_BUILDDIR} } -python __anonymous () { - d.appendVarFlag('do_install', 'depends', ' virtual/kernel:do_deploy') - initrd = d.getVar('INITRAMFS_IMAGE', True) - if initrd: - d.appendVarFlag('do_install', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') -} - do_install() { oe_runmake ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} KDIR=${STAGING_KERNEL_BUILDDIR} DESTDIR=${D} install @@ -121,7 +114,6 @@ do_install() { fi } - PACKAGE_BEFORE_PN = "kernel-module-jailhouse" FILES_${PN} = "${base_libdir}/firmware ${libexecdir} ${sbindir} ${JH_DATADIR} /boot" @@ -133,7 +125,12 @@ KERNEL_MODULE_AUTOLOAD += "jailhouse" CELLS = "" python __anonymous () { - # Setup DEPENDS and RDEPENDS to included cells" + d.appendVarFlag('do_install', 'depends', ' virtual/kernel:do_deploy') + initrd = d.getVar('INITRAMFS_IMAGE', True) + if initrd: + d.appendVarFlag('do_install', 'depends', ' ${INITRAMFS_IMAGE}:do_image_complete') + + # Setup DEPENDS and RDEPENDS to included cells cells = d.getVar('CELLS', True) or "" for cell in cells.split(): d.appendVar('DEPENDS', ' ' + cell) -- cgit v1.2.3-54-g00ecf