Skip to contentSkip to conversation

icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC

PATCH In review Martin Jansa 2 participants 4 messages Jul 17, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC

* without this we cause nativesdk-linux-libc-headers to depend on target specific KERNEL_CC (through icecc_get_tool -> icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH -> TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by bitbake-diffsigs:

OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata* /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

  OE qemux86@ ~/build/oe-core $ bitbake-diffsigs /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  basehash changed from 39774238b66763c598153132e87a2c1a to aa2d66e770bf533e312536eb0a401c4c
  Variable TARGET_CC_KERNEL_ARCH value changed from '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''
---
 meta/classes/icecc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/icecc.bbclass +1 -0
index 8a3308bdda..1cc1c4ddb0 100644
@@ -42,6 +42,7 @@ def icecc_dep_prepend(d):
 
 DEPENDS_prepend += "${@icecc_dep_prepend(d)} "
 
+get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
 def get_cross_kernel_cc(bb,d):
     kernel_cc = d.getVar('KERNEL_CC', False)
 
Signature · 1 line
2.13.3
#1 lore raw

icecc in OE (Was: [PATCH] icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC)

Hi Martin,

which version of icecc are you using?

We were trying 1.1rc2, but we had to patch icecc-create-env script in oe.

Tomas

Quoted 31 lines · On Mon, 17 Jul 2017 16:04:50 +0200 Martin Jansa <[email protected]> wrote:

* without this we cause nativesdk-linux-libc-headers to depend on target specific KERNEL_CC (through icecc_get_tool -> icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH -> TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by bitbake-diffsigs:

OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata* /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux-libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

  OE qemux86@ ~/build/oe-core $ bitbake-diffsigs /OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*
  basehash changed from 39774238b66763c598153132e87a2c1a to aa2d66e770bf533e312536eb0a401c4c
  Variable TARGET_CC_KERNEL_ARCH value changed from '${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''
---
 meta/classes/icecc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/icecc.bbclass +1 -0
index 8a3308bdda..1cc1c4ddb0 100644
@@ -42,6 +42,7 @@ def icecc_dep_prepend(d):
 
 DEPENDS_prepend += "${@icecc_dep_prepend(d)} "
 
+get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
 def get_cross_kernel_cc(bb,d):
     kernel_cc = d.getVar('KERNEL_CC', False)
 
#2 lore raw

Re: icecc in OE (Was: [PATCH] icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC)

Hi Tomas,

last time we were more actively using 1.0.1-1 (with Ubuntu 12.04), but nowadays icecc.bbclass is mostly just historic relic for us, we still inherit it in our DISTROs (with 99.9999% builds running with ICECC_DISABLED = "1"), so that if someone enables icecc again he will get the same sstate signatures as our jenkins builds - to reuse already prepopulated sstate-cache.

We also use own version of icecc-create-env, still the same as long time ago in:
https://github.com/openwebos/meta-webos/tree/master/recipes-upstreamable/icecc-create-env

Regards,

Quoted 53 lines · Tomas Novotny

Hi Martin,

which version of icecc are you using?

We were trying 1.1rc2, but we had to patch icecc-create-env script in oe.

Tomas

Quoted 7 lines · On Mon, 17 Jul 2017 16:04:50 +0200 Martin Jansa <[email protected]> wrote:

* without this we cause nativesdk-linux-libc-headers to depend on target specific KERNEL_CC (through icecc_get_tool -> icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH -> TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by bitbake-diffsigs:

OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/

sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*

Quoted 1 line

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/

qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux- libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f

Quoted 1 line

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/

qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux- libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

Quoted 2 lines

OE qemux86@ ~/build/oe-core $ bitbake-diffsigs

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/* sdk*/*/*do_configure.sigdata*

Quoted 1 line

basehash changed from 39774238b66763c598153132e87a2c1a to

aa2d66e770bf533e312536eb0a401c4c

Quoted 1 line

Variable TARGET_CC_KERNEL_ARCH value changed from

'${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''

Quoted 18 lines
---
 meta/classes/icecc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/icecc.bbclass +1 -0
index 8a3308bdda..1cc1c4ddb0 100644
@@ -42,6 +42,7 @@ def icecc_dep_prepend(d):
 
 DEPENDS_prepend += "${@icecc_dep_prepend(d)} "
 
+get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
 def get_cross_kernel_cc(bb,d):
     kernel_cc = d.getVar('KERNEL_CC', False)
 
#3 lore raw

Re: icecc in OE (Was: [PATCH] icecc.bbclass: prevent nativesdk builds depending on target specific KERNEL_CC)

Hi Martin,

Quoted 8 lines · On Mon, 17 Jul 2017 17:35:46 +0200 Martin Jansa <[email protected]> wrote:

Hi Tomas,

last time we were more actively using 1.0.1-1 (with Ubuntu 12.04), but nowadays icecc.bbclass is mostly just historic relic for us, we still inherit it in our DISTROs (with 99.9999% builds running with ICECC_DISABLED = "1"), so that if someone enables icecc again he will get the same sstate signatures as our jenkins builds - to reuse already prepopulated sstate-cache.

so it looks like that there is only a few active users of icecc in oe...

Quoted 3 lines

We also use own version of icecc-create-env, still the same as long time ago in:
https://github.com/openwebos/meta-webos/tree/master/recipes-upstreamable/icecc-create-env

yes, I found it during my initial tests, but I was not sure if it used (because of age).

Thanks for the information,

Tomas

Quoted 57 lines

Regards,

Quoted 53 lines · Tomas Novotny

Hi Martin,

which version of icecc are you using?

We were trying 1.1rc2, but we had to patch icecc-create-env script in oe.

Tomas

Quoted 7 lines · On Mon, 17 Jul 2017 16:04:50 +0200 Martin Jansa <[email protected]> wrote:

* without this we cause nativesdk-linux-libc-headers to depend on target specific KERNEL_CC (through icecc_get_tool -> icecc_is_kernel -> KERNEL_CC -> HOST_CC_KERNEL_ARCH -> TARGET_CC_KERNEL_ARCH -> TUNE_FEATURES(thumb) as shown by bitbake-diffsigs:

OE qemux86@ ~/build/oe-core $ ls /OE/build/oe-core/tmp-glibc/

sstate-diff/1499859497/qemu*/*sdk*/*/*do_configure.sigdata*

Quoted 1 line

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/

qemuarm/x86_64-nativesdk-oesdk-linux/nativesdk-linux- libc-headers/4.10-r0.do_configure.sigdata.3a9a423878d56524e0ee8e42eba1804f

Quoted 1 line

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/

qemux86/x86_64-nativesdk-oesdk-linux/nativesdk-linux- libc-headers/4.10-r0.do_configure.sigdata.401071dbaa88903ece37d35a47965ff2

Quoted 2 lines

OE qemux86@ ~/build/oe-core $ bitbake-diffsigs

/OE/build/oe-core/tmp-glibc/sstate-diff/1499859497/qemu*/* sdk*/*/*do_configure.sigdata*

Quoted 1 line

basehash changed from 39774238b66763c598153132e87a2c1a to

aa2d66e770bf533e312536eb0a401c4c

Quoted 1 line

Variable TARGET_CC_KERNEL_ARCH value changed from

'${@bb.utils.contains('TUNE_FEATURES', 'thumb', '-mno-thumb-interwork-marm', '', d)} TUNE_FEATURES{thumb} = Set' to ''

Quoted 18 lines
---
 meta/classes/icecc.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/icecc.bbclass +1 -0
index 8a3308bdda..1cc1c4ddb0 100644
@@ -42,6 +42,7 @@ def icecc_dep_prepend(d):
 
 DEPENDS_prepend += "${@icecc_dep_prepend(d)} "
 
+get_cross_kernel_cc[vardepsexclude] += "KERNEL_CC"
 def get_cross_kernel_cc(bb,d):
     kernel_cc = d.getVar('KERNEL_CC', False)