poky: fixes backwards compatible for the SDKPATHINSTALL
PATCH 1/1 poky: fixes backwards compatible for the SDKPATHINSTALL
Previously the SDKPATH can be used to custumize the path of the SDK installation. Drop the SDKPATH and use SDKPATHINSTALL without that brokes backwards compatible for any distro with SDKPATH customized.
--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-poky/conf/distro/poky.conf +1 -1
@@ -24,7 +24,7 @@ DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}" PREFERRED_VERSION_linux-yocto ?= "5.4%" SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}" -SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}" +SDKPATHINSTALL = "${SDKPATH}" DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
Signature · 1 line
2.33.0
Quoted 15 lines · Jose Quaresma
Previously the SDKPATH can be used to custumize the path of the SDK installation. Drop the SDKPATH and use SDKPATHINSTALL without that brokes backwards compatible for any distro with SDKPATH customized.
Signed-off-by Jose Quaresma <[email protected]>--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-poky/conf/distro/poky.conf +0
-0
meta-poky/conf/distro/poky.conf DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}" · line 30
Quoted 8 lines
meta-poky/conf/distro/poky.conf +1
-1@@ -24,7 +24,7 @@ DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}" PREFERRED_VERSION_linux-yocto ?= "5.4%" SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}" -SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}" +SDKPATHINSTALL = "${SDKPATH}" DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"
Distros need to switch to use SDKPATHINSTALL.
This change breaks the poky default value instead of any distro that has customised and disables the SDK hard coded path fix which was the original point of the change.
Cheers,
Richard
Richard Purdie <[email protected]> escreveu no dia segunda, 20/09/2021 à(s) 11:57:
Quoted 28 lines · Jose Quaresma
Quoted 15 lines
Previously the SDKPATH can be used to custumize the path of the SDK installation. Drop the SDKPATH and use SDKPATHINSTALL without that brokes backwards compatible for any distro with SDKPATH customized.
Signed-off-by Jose Quaresma <[email protected]>--- meta-poky/conf/distro/poky.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-poky/conf/distro/poky.conf +0
-0meta-poky/conf/distro/poky.conf DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}" · line 30
Quoted 8 lines
meta-poky/conf/distro/poky.conf +1
-1@@ -24,7 +24,7 @@ DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${POKY_DEFAULT_DISTRO_FEATURES}" PREFERRED_VERSION_linux-yocto ?= "5.4%" SDK_NAME = "${DISTRO}-${TCLIBC}-${SDKMACHINE}-${IMAGE_BASENAME}-${TUNE_PKGARCH}-${MACHINE}" -SDKPATHINSTALL = "/opt/${DISTRO}/${SDK_VERSION}" +SDKPATHINSTALL = "${SDKPATH}" DISTRO_EXTRA_RDEPENDS += " ${POKY_DEFAULT_EXTRA_RDEPENDS}" DISTRO_EXTRA_RRECOMMENDS += " ${POKY_DEFAULT_EXTRA_RRECOMMENDS}"Distros need to switch to use SDKPATHINSTALL.
Quoted 11 lines
This change breaks the poky default value instead of any distro that has customised and disables the SDK hard coded path fix which was the original point of the change.
Cheers,
Richard
I understand that fixing this on a customized distro is easy and we only need to overwrite SDKPATHINSTALL if needed.
So, to take advantage of the:
sdk: Decouple default install path from built in path
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&id=6fef2a1c2ca8a4450c8a4b49e6eb5e01f80ef97b
The dunfell users need to avoid the usage versions strings in SDKPATH because they change over time and
customize the SDKPATHINSTALL as well, having version strings in the last is not a problem.
All distros need to do what poky distro does at:
poky: Use SDKPATHINSTALL instead of SDKPATH
https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?h=dunfell&id=67dbe8a1c2b485d0cec174d28107b0ac8ea77d5f
You can drop this patch.
Signature · 3 lines
Best regards, José Quaresma