[zeus,8/8] vpp-core: install startup.conf

Submitted by C.R. Guo on Nov. 8, 2019, 2 a.m. | Patch ID: 166778

Details

Message ID 20191108020008.10396-8-chunrong.guo@nxp.com
State New
Headers show

Commit Message

C.R. Guo Nov. 8, 2019, 2 a.m.
From: Chunrong Guo <chunrong.guo@nxp.com>

* fix missing startup.conf

Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
---
 recipes-extended/vpp-core/vpp-core.bb | 5 +++++
 1 file changed, 5 insertions(+)

Patch hide | download patch | download mbox

diff --git a/recipes-extended/vpp-core/vpp-core.bb b/recipes-extended/vpp-core/vpp-core.bb
index b2b721a5..53437d1a 100644
--- a/recipes-extended/vpp-core/vpp-core.bb
+++ b/recipes-extended/vpp-core/vpp-core.bb
@@ -38,6 +38,11 @@  EXTRA_OECONF = " \
 
 CFLAGS += " -mtls-dialect=trad -DCLIB_LOG2_CACHE_LINE_BYTES=6 -I${OPENSSL_PATH}/usr/include  -L${OPENSSL_PATH}/lib"
 
+do_install_append() {
+        mkdir -p ${D}/etc/vpp
+        cp ${S}/src/vpp/conf/startup.conf ${D}/etc/vpp/startup.conf
+}
+
 include vpp-pkgs.inc
 
 BBCLASSEXTEND = "native nativesdk"

Comments

Andrey Zhizhikin Nov. 8, 2019, 9:39 a.m.
On Fri, Nov 8, 2019 at 3:14 AM C.r. Guo <chunrong.guo@nxp.com> wrote:
>
> From: Chunrong Guo <chunrong.guo@nxp.com>
>
> * fix missing startup.conf
>
> Signed-off-by: Chunrong Guo <chunrong.guo@nxp.com>
> ---
>  recipes-extended/vpp-core/vpp-core.bb | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/recipes-extended/vpp-core/vpp-core.bb b/recipes-extended/vpp-core/vpp-core.bb
> index b2b721a5..53437d1a 100644
> --- a/recipes-extended/vpp-core/vpp-core.bb
> +++ b/recipes-extended/vpp-core/vpp-core.bb
> @@ -38,6 +38,11 @@ EXTRA_OECONF = " \
>
>  CFLAGS += " -mtls-dialect=trad -DCLIB_LOG2_CACHE_LINE_BYTES=6 -I${OPENSSL_PATH}/usr/include  -L${OPENSSL_PATH}/lib"
>
> +do_install_append() {
> +        mkdir -p ${D}/etc/vpp
> +        cp ${S}/src/vpp/conf/startup.conf ${D}/etc/vpp/startup.conf
> +}
> +

What is the reason install command not used here?

>  include vpp-pkgs.inc
>
>  BBCLASSEXTEND = "native nativesdk"
> --
> 2.23.0
>
> --
> _______________________________________________
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale