Skip to contentSkip to conversation

ti-display-sharing-fw: Do not strip during staging sysroot stage

PATCH In review Khem Raj 2 participants 7 messages Jul 13, 2019 – Jul 17, 2019

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/4 ti-display-sharing-fw: Do not strip during staging sysroot stage

Fixes build with non arm architectures

Subprocess output:x86_64-yoe-linux-strip: Unable to recognise the format of the input file `TOPDIR/build/tmpfs/work/qemux86_64-yoe-linux/ti-display-sharing-fw/00.09.00.00-gitAUTOINC+4a86f16df9-r0/sysroot-destdir/lib/firmware/ti-display-sharing-j721e.bin'

---
 recipes-bsp/ti-display-sharing-fw/ti-display-sharing-fw_git.bb | 2 ++
 1 file changed, 2 insertions(+)
recipes-bsp/ti-display-sharing-fw/ti-display-sharing-fw_git.bb +2 -0
index 675b3f2c..db095d90 100644
@@ -36,6 +36,8 @@ ALTERNATIVE_PRIORITY = "9"
 
 # This is used to prevent the build system to strip the executables
 INHIBIT_PACKAGE_STRIP = "1"
+INHIBIT_SYSROOT_STRIP = "1"
+
 # This is used to prevent the build system to split the debug info in a separate file
 INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
 # As it likely to be a different arch from the Yocto build, disable checking by adding "arch" to INSANE_SKIP
Signature · 1 line
2.22.0
author
#1 lore raw

PATCH 2/4 jailhouse: Limit OE architectures to supported ones

Fixes
ERROR: cannot map 'mips' to a jailhouse supported architecture

---
 recipes-kernel/jailhouse/jailhouse-arch.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-kernel/jailhouse/jailhouse-arch.inc +3 -0
index e06ec231..0546fa26 100644
@@ -18,3 +18,6 @@ def map_jh_arch(a, d):
         bb.error("cannot map '%s' to a jailhouse supported architecture" % a)
 
 export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}"
+
+COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
+
Signature · 1 line
2.22.0
#2 lore raw

Re: [PATCH 2/4] jailhouse: Limit OE architectures to supported ones

Quoted 13 lines · Khem Raj

Fixes
ERROR: cannot map 'mips' to a jailhouse supported architecture

---
 recipes-kernel/jailhouse/jailhouse-arch.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-kernel/jailhouse/jailhouse-arch.inc +0 -0
index e06ec231..0546fa26 100644

recipes-kernel/jailhouse/jailhouse-arch.inc def map_jh_arch(a, d): · line 23

Quoted 6 lines
recipes-kernel/jailhouse/jailhouse-arch.inc +3 -0
@@ -18,3 +18,6 @@ def map_jh_arch(a, d):
         bb.error("cannot map '%s' to a jailhouse supported architecture" % a)
 
 export JH_ARCH = "${@map_jh_arch(d.getVar('TARGET_ARCH', True), d)}"
+
+COMPATIBLE_HOST = "(i.86|x86_64|arm|aarch64).*-linux"
+

Applying: jailhouse: Limit OE architectures to supported ones .git/rebase-apply/patch:15: new blank line at EOF. +
warning: 1 line adds whitespace errors.

I'll fix it myself.

Quoted 8 lines
Signature · 7 lines
2.22.0

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#3 lore raw

PATCH 3/4 jailhouse: Replace tabs with spaces in python code

In reply to Khem Raj

Fixes
WARNING: python should use 4 spaces indentation, but found tabs in jailhouse_git.bb, line 85

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-kernel/jailhouse/jailhouse_git.bb +4 -4
index 753664ed..db31bb7d 100644
@@ -82,10 +82,10 @@ do_compile() {
 }
 
 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')
+        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() {
Signature · 1 line
2.22.0
#4 lore raw

Re: [PATCH 3/4] jailhouse: Replace tabs with spaces in python code

I had to do this one differently, all others are now in "next" for testing. Thanks.

Denys

Quoted 35 lines · Khem Raj

Fixes
WARNING: python should use 4 spaces indentation, but found tabs in jailhouse_git.bb, line 85

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-kernel/jailhouse/jailhouse_git.bb +4 -4
index 753664ed..db31bb7d 100644
@@ -82,10 +82,10 @@ do_compile() {
 }
 
 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')
+        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() {
Signature · 7 lines
2.22.0

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
author
#5 lore raw

Re: [PATCH 3/4] jailhouse: Replace tabs with spaces in python code

Ok, thanks. it works.

Quoted 43 lines · Denys Dmytriyenko

I had to do this one differently, all others are now in "next" for testing. Thanks.

Denys

Quoted 35 lines · Khem Raj

Fixes
WARNING: python should use 4 spaces indentation, but found tabs in jailhouse_git.bb, line 85

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
recipes-kernel/jailhouse/jailhouse_git.bb +4 -5
index 753664ed..db31bb7d 100644
@@ -82,10 +82,10 @@ do_compile() {
 }
 
 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')
+        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() {
--

2.22.0

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti

author
#6 lore raw

PATCH 4/4 jailhouse: Pin to TI SOCs

In reply to Khem Raj

This needs to be ported and tested with non-TI SOCs its better to limit this to just TI SOCs as of now this makes sure that meta-ti can be used in a multi-BSP distro

---
 recipes-kernel/jailhouse/jailhouse_git.bb | 1 +
 1 file changed, 1 insertion(+)
recipes-kernel/jailhouse/jailhouse_git.bb +1 -0
index db31bb7d..919c75d9 100644
@@ -32,6 +32,7 @@ require jailhouse-arch.inc
 inherit module pythonnative bash-completion deploy
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
+COMPATIBLE_MACHINE = "(ti-soc)"
 
 JH_DATADIR ?= "${datadir}/jailhouse"
 JH_EXEC_DIR ?= "${libexecdir}/jailhouse"
Signature · 1 line
2.22.0