optee: Rework include files
RFC 1/1 optee: Rework include files
Minor rework of the TI include files used to override both SRCREV and other settings in the optee recipes for TI SOC parts. The intent is to make it more clear when we are changing SRCREVs versus changing other items, and allow for sharing the SRCREV changes for optee-os-tadevkit which should track the optee-os SRCREV.
---
...optee-client-ti.inc => optee-client-ti-srcrev.inc} | 0
.../recipes-security/optee/optee-client_%.bbappend | 6 +++---
...e-examples-ti.inc => optee-examples-ti-srcrev.inc} | 0
.../recipes-security/optee/optee-examples_%.bbappend | 6 +++---
.../optee/optee-os-tadevkit-ti-overrides.inc | 1 +
.../optee/optee-os-tadevkit_%.bbappend | 11 ++++++++---
.../{optee-os-ti.inc => optee-os-ti-overrides.inc} | 8 --------
...ptee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} | 2 --
.../recipes-security/optee/optee-os_%.bbappend | 11 ++++++++---
.../{optee-test-ti.inc => optee-test-ti-srcrev.inc} | 0
.../recipes-security/optee/optee-test_%.bbappend | 6 +++---
11 files changed, 26 insertions(+), 25 deletions(-)
rename meta-ti-bsp/recipes-security/optee/{optee-client-ti.inc => optee-client-ti-srcrev.inc} (100%)
rename meta-ti-bsp/recipes-security/optee/{optee-examples-ti.inc => optee-examples-ti-srcrev.inc} (100%)
create mode 100644 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc
rename meta-ti-bsp/recipes-security/optee/{optee-os-ti.inc => optee-os-ti-overrides.inc} (86%)
rename meta-ti-bsp/recipes-security/optee/{optee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} (87%)
rename meta-ti-bsp/recipes-security/optee/{optee-test-ti.inc => optee-test-ti-srcrev.inc} (100%)meta-ti-bsp/recipes-security/optee/optee-client-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +0 -0
meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +3 -3
@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}
meta-ti-bsp/recipes-security/optee/optee-examples-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +0 -0
meta-ti-bsp/recipes-security/optee/optee-examples_%.bbappend +3 -3
@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc new file +1 -0
@@ -0,0 +1 @@ +EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
meta-ti-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend +8 -3
@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "optee-os-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}
meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +0 -8
@@ -1,11 +1,3 @@ -PV = "4.0.0+git${SRCPV}" -SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" - -# Fixes for pointing to 4.0.0 before upstream meta-arm -FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" -SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" -SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - # Use TI SECDEV for signing inherit ti-secdev
meta-ti-bsp/recipes-security/optee/optee-os-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +0 -2
@@ -5,5 +5,3 @@ SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - -EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"
meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +8 -3
@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}
meta-ti-bsp/recipes-security/optee/optee-test-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +0 -0
meta-ti-bsp/recipes-security/optee/optee-test_%.bbappend +3 -3
@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}
Signature · 1 line
2.17.1
I like the -overrides naming. Not so sure about -srcrev one. Maybe -ver or -version?
Quoted 150 lines · Ryan Eatmon via lists.yoctoproject.org
Minor rework of the TI include files used to override both SRCREV and other settings in the optee recipes for TI SOC parts. The intent is to make it more clear when we are changing SRCREVs versus changing other items, and allow for sharing the SRCREV changes for optee-os-tadevkit which should track the optee-os SRCREV.
Signed-off-by Ryan Eatmon <[email protected]>--- ...optee-client-ti.inc => optee-client-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-client_%.bbappend | 6 +++--- ...e-examples-ti.inc => optee-examples-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-examples_%.bbappend | 6 +++--- .../optee/optee-os-tadevkit-ti-overrides.inc | 1 + .../optee/optee-os-tadevkit_%.bbappend | 11 ++++++++--- .../{optee-os-ti.inc => optee-os-ti-overrides.inc} | 8 -------- ...ptee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} | 2 -- .../recipes-security/optee/optee-os_%.bbappend | 11 ++++++++--- .../{optee-test-ti.inc => optee-test-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-test_%.bbappend | 6 +++--- 11 files changed, 26 insertions(+), 25 deletions(-) rename meta-ti-bsp/recipes-security/optee/{optee-client-ti.inc => optee-client-ti-srcrev.inc} (100%) rename meta-ti-bsp/recipes-security/optee/{optee-examples-ti.inc => optee-examples-ti-srcrev.inc} (100%) create mode 100644 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc rename meta-ti-bsp/recipes-security/optee/{optee-os-ti.inc => optee-os-ti-overrides.inc} (86%) rename meta-ti-bsp/recipes-security/optee/{optee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} (87%) rename meta-ti-bsp/recipes-security/optee/{optee-test-ti.inc => optee-test-ti-srcrev.inc} (100%)meta-ti-bsp/recipes-security/optee/optee-client-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}meta-ti-bsp/recipes-security/optee/optee-examples-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-examples_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"meta-ti-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend +8
-3@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "optee-os-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +0
-8@@ -1,11 +1,3 @@ -PV = "4.0.0+git${SRCPV}" -SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" - -# Fixes for pointing to 4.0.0 before upstream meta-arm -FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" -SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" -SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - # Use TI SECDEV for signing inherit ti-secdevmeta-ti-bsp/recipes-security/optee/optee-os-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +0
-2@@ -5,5 +5,3 @@ SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - -EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +8
-3@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}meta-ti-bsp/recipes-security/optee/optee-test-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-test_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}Signature · 1 line
2.17.1
I can make that change. I'll send out another RFC with that change later.
Quoted 155 lines · Denys Dmytriyenko
I like the -overrides naming. Not so sure about -srcrev one. Maybe -ver or -version?
Quoted 150 lines · Ryan Eatmon via lists.yoctoproject.org
Minor rework of the TI include files used to override both SRCREV and other settings in the optee recipes for TI SOC parts. The intent is to make it more clear when we are changing SRCREVs versus changing other items, and allow for sharing the SRCREV changes for optee-os-tadevkit which should track the optee-os SRCREV.
Signed-off-by Ryan Eatmon <[email protected]>--- ...optee-client-ti.inc => optee-client-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-client_%.bbappend | 6 +++--- ...e-examples-ti.inc => optee-examples-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-examples_%.bbappend | 6 +++--- .../optee/optee-os-tadevkit-ti-overrides.inc | 1 + .../optee/optee-os-tadevkit_%.bbappend | 11 ++++++++--- .../{optee-os-ti.inc => optee-os-ti-overrides.inc} | 8 -------- ...ptee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} | 2 -- .../recipes-security/optee/optee-os_%.bbappend | 11 ++++++++--- .../{optee-test-ti.inc => optee-test-ti-srcrev.inc} | 0 .../recipes-security/optee/optee-test_%.bbappend | 6 +++--- 11 files changed, 26 insertions(+), 25 deletions(-)rename meta-ti-bsp/recipes-security/optee/{optee-client-ti.inc => optee-client-ti-srcrev.inc} (100%) rename meta-ti-bsp/recipes-security/optee/{optee-examples-ti.inc => optee-examples-ti-srcrev.inc} (100%) create mode 100644 meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc rename meta-ti-bsp/recipes-security/optee/{optee-os-ti.inc => optee-os-ti-overrides.inc} (86%) rename meta-ti-bsp/recipes-security/optee/{optee-os-tadevkit-ti.inc => optee-os-ti-srcrev.inc} (87%) rename meta-ti-bsp/recipes-security/optee/{optee-test-ti.inc => optee-test-ti-srcrev.inc} (100%)
meta-ti-bsp/recipes-security/optee/optee-client-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-client-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-client_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}meta-ti-bsp/recipes-security/optee/optee-examples-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-examples-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-examples_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti-overrides.inc new file +1
-0@@ -0,0 +1 @@ +EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"meta-ti-bsp/recipes-security/optee/optee-os-tadevkit_%.bbappend +8
-3@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "optee-os-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}meta-ti-bsp/recipes-security/optee/optee-os-ti-overrides.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-ti.inc +0
-8@@ -1,11 +1,3 @@ -PV = "4.0.0+git${SRCPV}" -SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" - -# Fixes for pointing to 4.0.0 before upstream meta-arm -FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" -SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" -SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - # Use TI SECDEV for signing inherit ti-secdevmeta-ti-bsp/recipes-security/optee/optee-os-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-os-tadevkit-ti.inc +0
-2@@ -5,5 +5,3 @@ SRCREV = "2a5b1d1232f582056184367fb58a425ac7478ec6" FILESEXTRAPATHS:prepend := "${THISDIR}/optee-os-4.0.0:" SRC_URI:remove = "file://0002-core-Define-section-attributes-for-clang.patch" SRC_URI:append = " file://0002ti-core-Define-section-attributes-for-clang.patch" - -EXTRA_OEMAKE:remove = "CFG_MAP_EXT_DT_SECURE=y"meta-ti-bsp/recipes-security/optee/optee-os_%.bbappend +8
-3@@ -1,4 +1,9 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV} + +OPTEE_TI_OVERRIDES = "" +OPTEE_TI_OVERRIDES:ti-soc = "${BPN}-ti-overrides.inc" + +require ${OPTEE_TI_OVERRIDES}meta-ti-bsp/recipes-security/optee/optee-test-ti-srcrev.inc renamed from meta-ti-bsp/recipes-security/optee/optee-test-ti.inc +0
-0meta-ti-bsp/recipes-security/optee/optee-test_%.bbappend +3
-3@@ -1,4 +1,4 @@ -OPTEE_TI = "" -OPTEE_TI:ti-soc = "${BPN}-ti.inc" +OPTEE_TI_SRCREV = "" +OPTEE_TI_SRCREV:ti-soc = "${BPN}-ti-srcrev.inc" -require ${OPTEE_TI} +require ${OPTEE_TI_SRCREV}Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS