From: Bernd Kuhls <bernd@kuhls.net>
To: buildroot@buildroot.org
Subject: [Buildroot] [PATCH 2/3] package/kodi: depend on host-openjdk-bin instead of selecting BR2_NEEDS_HOST_JAVA
Date: Thu, 9 Apr 2026 20:40:47 +0200 [thread overview]
Message-ID: <20260409184048.3180731-2-bernd@kuhls.net> (raw)
In-Reply-To: <20260409184048.3180731-1-bernd@kuhls.net>
This patch removes the dependency on java being installed on the host,
instead we make use of our host-openjdk-bin package.
Build-tested using this defconfig
BR2_x86_64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_KODI=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SOFTPIPE=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y
BR2_PACKAGE_PYTHON3=y
BR2_PACKAGE_PYTHON3_PY_ONLY=y
by running 'utils/docker-run make kodi'.
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
---
package/kodi/Config.in | 2 +-
package/kodi/kodi.mk | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/package/kodi/Config.in b/package/kodi/Config.in
index 9661ab47bc..391a687cbd 100644
--- a/package/kodi/Config.in
+++ b/package/kodi/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_KODI_ARCH_SUPPORTS
bool
default y if BR2_PACKAGE_FFMPEG_ARCH_SUPPORTS
+ default y if BR2_PACKAGE_HOST_OPENJDK_BIN_ARCH_SUPPORTS
# i386: needs sse (see upstream PR 10351)
depends on !(BR2_i386 && !BR2_X86_CPU_HAS_SSE)
depends on BR2_USE_MMU # libcdio, and others
@@ -66,7 +67,6 @@ menuconfig BR2_PACKAGE_KODI
depends on BR2_PACKAGE_KODI_PLATFORM_SUPPORTS
depends on BR2_PACKAGE_PYTHON3
depends on !BR2_PACKAGE_PYTHON3_PYC_ONLY
- select BR2_NEEDS_HOST_JAVA
select BR2_HOST_CMAKE_AT_LEAST_3_24
select BR2_PACKAGE_FFMPEG
select BR2_PACKAGE_FFMPEG_GPL
diff --git a/package/kodi/kodi.mk b/package/kodi/kodi.mk
index 02feb17b4d..8c4666c2cb 100644
--- a/package/kodi/kodi.mk
+++ b/package/kodi/kodi.mk
@@ -33,6 +33,7 @@ KODI_DEPENDENCIES = \
host-kodi-jsonschemabuilder \
host-kodi-texturepacker \
host-nasm \
+ host-openjdk-bin \
host-swig \
host-xmlstarlet \
jpeg \
@@ -100,6 +101,7 @@ KODI_CONF_OPTS += \
-DDEPENDS_PATH=$(STAGING_DIR)/usr \
-DENABLE_TESTING=OFF \
-DENABLE_DEBUGFISSION=OFF \
+ -DJAVA_HOME=$(HOST_OPENJDK_BIN_ROOT_DIR) \
-DPYTHON_EXECUTABLE=$(HOST_DIR)/bin/python \
-DPYTHON_INCLUDE_DIRS=$(STAGING_DIR)/usr/include/python$(PYTHON3_VERSION_MAJOR) \
-DPYTHON_PATH=$(STAGING_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR) \
--
2.47.3
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-04-09 18:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-09 18:40 [Buildroot] [PATCH 1/3] package/kodi: fix wayland build Bernd Kuhls
2026-04-09 18:40 ` Bernd Kuhls [this message]
2026-04-09 18:40 ` [Buildroot] [PATCH 3/3] Config.in: remove BR2_NEEDS_HOST_JAVA Bernd Kuhls
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260409184048.3180731-2-bernd@kuhls.net \
--to=bernd@kuhls.net \
--cc=buildroot@buildroot.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox