[oe] [meta-oe][PATCH] nvme-cli: defer host ID generation to post installation

Khem Raj raj.khem at gmail.com
Sat Oct 12 15:37:05 UTC 2019


Stefan

Please rebase it on top of latest master and resend please. Since half
of this patch is already merged.

On Sat, 2019-10-12 at 14:44 +0200, Stefan Wiehler wrote:
> Signed-off-by: Stefan Wiehler <
> stefan.wiehler at missinglinkelectronics.com>
> ---
>  meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 
> diff --git a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb b/meta-
> oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb
> index 256d83f03..061c7a0fe 100644
> --- a/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb
> +++ b/meta-oe/recipes-bsp/nvme-cli/nvme-cli_1.9.bb
> @@ -4,7 +4,7 @@ HOMEPAGE = "https://github.com/linux-nvme/nvme-cli"
>  SECTION = "console/utils"
>  LICENSE = "GPLv2"
>  LIC_FILES_CHKSUM =
> "file://LICENSE;md5=8264535c0c4e9c6c335635c4026a8022"
> -DEPENDS = "util-linux util-linux-native"
> +DEPENDS = "util-linux"
>  PV .= "+git${SRCPV}"
>  
>  SRC_URI = "git://github.com/linux-nvme/nvme-cli.git"
> @@ -15,15 +15,18 @@ S = "${WORKDIR}/git"
>  inherit bash-completion systemd
>  
>  do_install() {
> -    oe_runmake install DESTDIR=${D} PREFIX=${prefix} \
> +    oe_runmake install-spec DESTDIR=${D} PREFIX=${prefix} \
>          UDEVDIR=${nonarch_base_libdir}/udev
> SYSTEMDDIR=${systemd_unitdir}
>  }
>  
>  pkg_postinst_ontarget_${PN}() {
>      ${sbindir}/nvme gen-hostnqn > ${sysconfdir}/nvme/hostnqn
> +    ${bindir}/uuidgen > ${sysconfdir}/nvme/hostid
>  }
>  
>  PACKAGES =+ "${PN}-dracut ${PN}-zsh-completion"
>  
>  FILES_${PN}-dracut = "${libdir}/dracut/dracut.conf.d"
>  FILES_${PN}-zsh-completion = "${datadir}/zsh/site-functions"
> +
> +RDEPENDS_${PN} = "util-linux-uuidgen"
> -- 
> 2.19.2
> 



More information about the Openembedded-devel mailing list