diff mbox series

[kirkstone] meta-ti-extras: Update jailhouse recipe to delete irrevelant files

Message ID 20231221092215.2598739-1-p-bhagat@ti.com
State Accepted
Delegated to: Ryan Eatmon
Headers show
Series [kirkstone] meta-ti-extras: Update jailhouse recipe to delete irrevelant files | expand

Commit Message

Paresh Bhagat Dec. 21, 2023, 9:22 a.m. UTC
Remove config files from /usr/share/jailhouse as they are not required.
Package only the cell files for respective devices and not all k3 files.
Update FILES:PN to use wildcard.

Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
---
 .../recipes-ti/jailhouse/jailhouse_git.bb     | 34 +++++--------------
 1 file changed, 9 insertions(+), 25 deletions(-)

Comments

Denys Dmytriyenko Dec. 21, 2023, 11:28 p.m. UTC | #1
"irrevelant" typo?


On Thu, Dec 21, 2023 at 02:52:15PM +0530, Paresh Bhagat via lists.yoctoproject.org wrote:
> Remove config files from /usr/share/jailhouse as they are not required.
> Package only the cell files for respective devices and not all k3 files.
> Update FILES:PN to use wildcard.
> 
> Signed-off-by: Paresh Bhagat <p-bhagat@ti.com>
> ---
>  .../recipes-ti/jailhouse/jailhouse_git.bb     | 34 +++++--------------
>  1 file changed, 9 insertions(+), 25 deletions(-)
> 
> diff --git a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
> index 387b0806..70d6a0b6 100644
> --- a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
> +++ b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
> @@ -46,6 +46,8 @@ INMATES_DIR ?= "${JH_DATADIR}/inmates"
>  
>  JH_CELL_FILES ?= "*.cell"
>  JH_CELL_FILES:k3 ?= "k3-*.cell"
> +JH_CELL_FILES:am62xx ?= "k3-am625-*.cell"
> +JH_CELL_FILES:am62pxx ?= "k3-am62p5-*.cell"
>  
>  JH_INMATE_DTB ?= ""
>  JH_INMATE_DTB:am62xx ?= "inmate-k3-am625-sk.dtb"
> @@ -147,6 +149,8 @@ do_install() {
>  		chmod +x ${D}${JH_DATADIR}/linux-demo.sh
>  	fi
>  
> +	rm ${D}${JH_DATADIR}/root-cell-config.c.tmpl
> +	rm ${D}${JH_DATADIR}/jailhouse-config-collect.tmpl
>  }
>  
>  PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse ${PN}-tools"
> @@ -181,30 +185,10 @@ python __anonymous () {
>  
>  
>  FILES:${PN} = " \
> -    /boot \
> +    /boot/* \
>      /usr/libexec \
> -    /usr/sbin/ivshmem-demo \
> -    /usr/sbin/jailhouse \
> -    /usr/libexec/jailhouse \
> -    /usr/libexec/jailhouse/jailhouse-config-check \
> -    /usr/libexec/jailhouse/jailhouse-config-collect \
> -    /usr/libexec/jailhouse/jailhouse-hardware-check \
> -    /usr/libexec/jailhouse/jailhouse-cell-stats \
> -    /usr/libexec/jailhouse/linux-loader.bin \
> -    /usr/libexec/jailhouse/jailhouse-cell-linux \
> -    /usr/libexec/jailhouse/jailhouse-config-create \
> -    /usr/share/jailhouse \
> -    /usr/share/jailhouse/linux-demo.sh \
> -    /usr/share/jailhouse/inmate-k3-am625-sk.dtb \
> -    /usr/share/jailhouse/inmates \
> -    /usr/share/jailhouse/cells \
> -    /usr/share/jailhouse/inmates/gic-demo.bin \
> -    /usr/share/jailhouse/inmates/ivshmem-demo.bin \
> -    /usr/share/jailhouse/inmates/uart-demo.bin \
> -    /usr/share/jailhouse/cells/k3-am625-sk.cell \
> -    /usr/share/jailhouse/cells/k3-am625-sk-inmate-demo.cell \
> -    /usr/share/jailhouse/cells/k3-am625-sk-linux-demo.cell \
> -    /lib/firmware \
> -    /lib/firmware/jailhouse.bin \
> -    /boot/tisdk-tiny-image-am62xx-evm.cpio \
> +    /usr/sbin/* \
> +    /usr/libexec/* \
> +    /usr/share/* \
> +    /lib/firmware/* \
>  "
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
index 387b0806..70d6a0b6 100644
--- a/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
+++ b/meta-ti-extras/recipes-ti/jailhouse/jailhouse_git.bb
@@ -46,6 +46,8 @@  INMATES_DIR ?= "${JH_DATADIR}/inmates"
 
 JH_CELL_FILES ?= "*.cell"
 JH_CELL_FILES:k3 ?= "k3-*.cell"
+JH_CELL_FILES:am62xx ?= "k3-am625-*.cell"
+JH_CELL_FILES:am62pxx ?= "k3-am62p5-*.cell"
 
 JH_INMATE_DTB ?= ""
 JH_INMATE_DTB:am62xx ?= "inmate-k3-am625-sk.dtb"
@@ -147,6 +149,8 @@  do_install() {
 		chmod +x ${D}${JH_DATADIR}/linux-demo.sh
 	fi
 
+	rm ${D}${JH_DATADIR}/root-cell-config.c.tmpl
+	rm ${D}${JH_DATADIR}/jailhouse-config-collect.tmpl
 }
 
 PACKAGE_BEFORE_PN = "kernel-module-jailhouse pyjailhouse ${PN}-tools"
@@ -181,30 +185,10 @@  python __anonymous () {
 
 
 FILES:${PN} = " \
-    /boot \
+    /boot/* \
     /usr/libexec \
-    /usr/sbin/ivshmem-demo \
-    /usr/sbin/jailhouse \
-    /usr/libexec/jailhouse \
-    /usr/libexec/jailhouse/jailhouse-config-check \
-    /usr/libexec/jailhouse/jailhouse-config-collect \
-    /usr/libexec/jailhouse/jailhouse-hardware-check \
-    /usr/libexec/jailhouse/jailhouse-cell-stats \
-    /usr/libexec/jailhouse/linux-loader.bin \
-    /usr/libexec/jailhouse/jailhouse-cell-linux \
-    /usr/libexec/jailhouse/jailhouse-config-create \
-    /usr/share/jailhouse \
-    /usr/share/jailhouse/linux-demo.sh \
-    /usr/share/jailhouse/inmate-k3-am625-sk.dtb \
-    /usr/share/jailhouse/inmates \
-    /usr/share/jailhouse/cells \
-    /usr/share/jailhouse/inmates/gic-demo.bin \
-    /usr/share/jailhouse/inmates/ivshmem-demo.bin \
-    /usr/share/jailhouse/inmates/uart-demo.bin \
-    /usr/share/jailhouse/cells/k3-am625-sk.cell \
-    /usr/share/jailhouse/cells/k3-am625-sk-inmate-demo.cell \
-    /usr/share/jailhouse/cells/k3-am625-sk-linux-demo.cell \
-    /lib/firmware \
-    /lib/firmware/jailhouse.bin \
-    /boot/tisdk-tiny-image-am62xx-evm.cpio \
+    /usr/sbin/* \
+    /usr/libexec/* \
+    /usr/share/* \
+    /lib/firmware/* \
 "