All of lore.kernel.org
 help / color / mirror / Atom feed
From: Denys Dmytriyenko <denys@ti.com>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-ti@yoctoproject.org, lokeshvutla@ti.com
Subject: Re: [master/thud][PATCH v2 2/3] jailhouse: provide tools package
Date: Fri, 30 Aug 2019 12:03:24 -0400	[thread overview]
Message-ID: <20190830160324.GB3307@beryl> (raw)
In-Reply-To: <1566324672-29395-2-git-send-email-j-stiffler@ti.com>

On Tue, Aug 20, 2019 at 02:11:11PM -0400, Jacob Stiffler wrote:
> Create a package containing the jailhouse tools which are used to work
> with the cells and inmates. This recipe provides a good example for

Should it be s/recipe/package/ here ^^^?


> using the jailhouse-cell-linux tool.
> 
> The tools require the pyjailhouse python modules, so package them as
> well.

Any specific reason to package into own "pyjailhouse" package instead of 
bundling with ${PN}-tools, as it's the only consumer now?


> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
>  recipes-kernel/jailhouse/jailhouse_git.bb | 24 ++++++++++++++++++++----
>  1 file changed, 20 insertions(+), 4 deletions(-)
> 
> diff --git a/recipes-kernel/jailhouse/jailhouse_git.bb b/recipes-kernel/jailhouse/jailhouse_git.bb
> index d637d51..5d572d0 100644
> --- a/recipes-kernel/jailhouse/jailhouse_git.bb
> +++ b/recipes-kernel/jailhouse/jailhouse_git.bb
> @@ -29,7 +29,7 @@ RDEPENDS_${PN} += "\
>  S = "${WORKDIR}/git"
>  
>  require jailhouse-arch.inc
> -inherit module pythonnative bash-completion deploy
> +inherit module pythonnative bash-completion deploy setuptools
>  
>  PACKAGE_ARCH = "${MACHINE_ARCH}"
>  COMPATIBLE_MACHINE = "(ti-soc)"
> @@ -78,12 +78,21 @@ USER_SPACE_CFLAGS = '${CFLAGS} -DLIBEXECDIR=\\\"${libexecdir}\\\" \
>  TOOLS_SRC_DIR = "${S}/tools"
>  TOOLS_OBJ_DIR = "${S}/tools"
>  
> +EXTRA_OEMAKE = "ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} KDIR=${STAGING_KERNEL_BUILDDIR}"
> +
> +
>  do_compile() {
> -	oe_runmake V=1 ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} KDIR=${STAGING_KERNEL_BUILDDIR}
> +	oe_runmake V=1
>  }
>  
>  do_install() {
> -	oe_runmake ARCH=${JH_ARCH} CROSS_COMPILE=${TARGET_PREFIX} KDIR=${STAGING_KERNEL_BUILDDIR} DESTDIR=${D} install
> +	# Install pyjailhouse python modules needed by the tools
> +	distutils_do_install
> +
> +	# We want to install the python tools, but we do not want to use pip...
> +	# At least with v0.10, we can work around this with
> +	# 'PIP=":" PYTHON_PIP_USEABLE=yes'
> +	oe_runmake PIP=: PYTHON_PIP_USEABLE=yes DESTDIR=${D} install
>  
>  	install -d ${D}${CELL_DIR}
>  	install -m 0644 ${B}/configs/${JH_ARCH}/${JH_CELL_FILES} ${D}${CELL_DIR}/
> @@ -115,8 +124,15 @@ do_install() {
>  	fi
>  }
>  
> -PACKAGE_BEFORE_PN = "kernel-module-jailhouse"
> +PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse ${PN}-tools"
>  FILES_${PN} = "${base_libdir}/firmware ${libexecdir} ${sbindir} ${JH_DATADIR} /boot"
> +FILES_pyjailhouse = "${PYTHON_SITEPACKAGES_DIR}"
> +FILES_${PN}-tools = "${libexecdir}/${BPN}/${BPN}-*"
> +
> +RDEPENDS_${PN}-tools = "pyjailhouse python-mmap python-math python-argparse python-datetime python-curses python-compression"
> +RDEPENDS_pyjailhouse = "python-core python-ctypes python-fcntl python-shell"
> +
> +RRECCOMMENDS_${PN} = "${PN}-tools"
>  
>  INSANE_SKIP_${PN} = "ldflags"
>  
> -- 
> 2.7.4
> 
> -- 
> _______________________________________________
> meta-ti mailing list
> meta-ti@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-ti


  parent reply	other threads:[~2019-08-30 16:03 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-20 18:11 [master/thud][PATCH v2 1/3] jailhouse: update to ti2019.03-rc2 Jacob Stiffler
2019-08-20 18:11 ` [master/thud][PATCH v2 2/3] jailhouse: provide tools package Jacob Stiffler
2019-08-29  8:41   ` Nikhil Devshatwar
2019-08-30 16:05     ` Denys Dmytriyenko
2019-08-30 16:08       ` Jacob Stiffler
2019-08-30 16:03   ` Denys Dmytriyenko [this message]
2019-08-30 16:10     ` Jacob Stiffler
2019-08-30 16:16       ` Denys Dmytriyenko
2019-08-20 18:11 ` [master/thud][PATCH v2 3/3] jailhouse: use ramfs for linux-demo Jacob Stiffler
2019-08-29  8:51   ` Nikhil Devshatwar
2019-08-30 16:23     ` Denys Dmytriyenko
2019-08-30 16:26       ` Jacob Stiffler
2019-08-30 16:31         ` Denys Dmytriyenko
2019-08-30 16:42           ` Jacob Stiffler
2019-08-30 16:50             ` Denys Dmytriyenko
2019-08-30 16:53               ` Jacob Stiffler
2019-08-30 16:13   ` Denys Dmytriyenko
2019-08-30 16:23     ` Jacob Stiffler
2019-08-30 16:29       ` Denys Dmytriyenko
2019-08-30 16:30         ` Jacob Stiffler
2019-08-30 15:57 ` [master/thud][PATCH v2 1/3] jailhouse: update to ti2019.03-rc2 Denys Dmytriyenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190830160324.GB3307@beryl \
    --to=denys@ti.com \
    --cc=j-stiffler@ti.com \
    --cc=lokeshvutla@ti.com \
    --cc=meta-ti@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.