aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Adam Duskett <Aduskett@gmail.com>2020-06-15 17:12:43 -0700
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2020-06-17 22:01:20 +0200
commit9815f143ff31816329c02d6449ad253fe3af8963 (patch)
tree60852503246f38bbb0cb56d2342ecf413a5c1843
parent25168d220a29915a92bd213c062a8505bc0ec623 (diff)
downloadbuildroot-9815f143ff31816329c02d6449ad253fe3af8963.tar.gz
buildroot-9815f143ff31816329c02d6449ad253fe3af8963.tar.bz2
package/openjdk: install header files to staging
These files are necessary for C or C++ programs to use the native java interface (JNI.) Signed-off-by: Adam Duskett <Aduskett@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/openjdk/openjdk.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/openjdk/openjdk.mk b/package/openjdk/openjdk.mk
index f3a4a616eb..22c9a777b5 100644
--- a/package/openjdk/openjdk.mk
+++ b/package/openjdk/openjdk.mk
@@ -20,6 +20,7 @@ endif
OPENJDK_LICENSE = GPL-2.0+ with exception
OPENJDK_LICENSE_FILES = LICENSE
+OPENJDK_INSTALL_STAGING = YES
# OpenJDK requires Alsa, cups, and X11 even for a headless build.
# host-zip is needed for the zip executable.
@@ -145,6 +146,12 @@ define OPENJDK_INSTALL_TARGET_CMDS
cd $(TARGET_DIR)/usr/bin && ln -snf ../..$(OPENJDK_INSTALL_BASE)/bin/* .
endef
+define OPENJDK_INSTALL_STAGING_CMDS
+ mkdir -p $(STAGING_DIR)/usr/include/jvm
+ cp -dpfr $(@D)/build/linux-*-release/jdk/include/* \
+ $(STAGING_DIR)/usr/include/jvm
+endef
+
# Demos and includes are not needed on the target
ifeq ($(BR2_PACKAGE_OPENJDK_FULL_JDK),y)
define OPENJDK_REMOVE_UNEEDED_JDK_DIRECTORIES