Skip to contentSkip to conversation

openjdk-8: Don't set TOPDIR bitbake variable

PATCH In review Jacob Kroon 2 participants 2 messages Feb 8, 2020 – Feb 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 openjdk-8: Don't set TOPDIR bitbake variable

It is used to set the default sstate cache location. Just export it to the environment.

Richard, feel free to squash this or someting similar into the openjdk-8 update commit.

---
 recipes-core/openjdk/openjdk-8-common.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-core/openjdk/openjdk-8-common.inc +4 -1
index 0ef4750..d8b30b8 100644
@@ -12,7 +12,6 @@ FILESPATH =. "${FILE_DIRNAME}/patches-openjdk-8:"
 
 # for weird openjdk-common.inc
 S = "${WORKDIR}/${OPENJDK_HG_U}-${OPENJDK_CHANGESET}"
-export TOPDIR="${S}"
 
 SRC_URI = "\
     ${OPENJDK_URI} \
@@ -27,6 +26,10 @@ SRC_URI = "\
     ${PATCHES_URI} \
 "
 
+do_configure_prepend () {
+    export TOPDIR=${S}
+}
+
 do_unpack_extract_submodules () {
     cd "${S}"
     # tar --transform
Signature · 1 line
2.24.1
#1 lore raw

Hi,
this is a note to let you know that I've just added this patch to the master-next branch of the meta-java repository at
git://git.yoctoproject.org/meta-java

As soon as it has gone through some more testing it will likely be merged to the master branch.

If you have any questions, please let me know.

regards;rl

Quoted 5 lines · Jacob Kroon

It is used to set the default sstate cache location. Just export it to the environment.

Richard, feel free to squash this or someting similar into the openjdk-8 update commit.

I just added in on top of master-next ;-)

Quoted 37 lines
---
 recipes-core/openjdk/openjdk-8-common.inc | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
recipes-core/openjdk/openjdk-8-common.inc +4 -1
index 0ef4750..d8b30b8 100644
@@ -12,7 +12,6 @@ FILESPATH =. "${FILE_DIRNAME}/patches-openjdk-8:"
 
 # for weird openjdk-common.inc
 S = "${WORKDIR}/${OPENJDK_HG_U}-${OPENJDK_CHANGESET}"
-export TOPDIR="${S}"
 
 SRC_URI = "\
     ${OPENJDK_URI} \
@@ -27,6 +26,10 @@ SRC_URI = "\
     ${PATCHES_URI} \
 "
 
+do_configure_prepend () {
+    export TOPDIR=${S}
+}
+
 do_unpack_extract_submodules () {
     cd "${S}"
     # tar --transform
Signature · 7 lines
2.24.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel