summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-core/openjdk/openjdk-8-cross.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 46f13fd..03cab11 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -105,5 +105,21 @@ EXTRA_OEMAKE_append = '\
105 images \ 105 images \
106' 106'
107 107
108python remove_debuglink() {
109 dvar = d.getVar('PKGD', True)
110 objcopy = d.getVar("OBJCOPY", True)
111
112 # Remove the previous debuglink if it has existed, because it has a different file name with that we will add.
113 if d.getVar('PN', True).find("jre") != -1:
114 file = dvar + d.getVar("JRE_HOME", True) + "/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so"
115 else:
116 file = dvar + d.getVar("JDK_HOME", True) + "/jre/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so"
117
118 cmd = "'%s' --remove-section .gnu_debuglink '%s'" % (objcopy, file)
119 oe.utils.getstatusoutput(cmd)
120}
121
122PACKAGE_PREPROCESS_FUNCS += "remove_debuglink"
123
108# There is a symlink to a .so but this one is valid. 124# There is a symlink to a .so but this one is valid.
109INSANE_SKIP_${PN} = "dev-so" 125INSANE_SKIP_${PN} = "dev-so"