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.
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