Skip to contentSkip to conversation

package/llama.cpp: bump to version b8117

PATCH Applied Joseph Kogut 2 participants 2 messages Feb 24 – Mar 18

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 package/llama.cpp: bump to version b8117

Release notes: https://github.com/ggml-org/llama.cpp/releases

Merge BR2_PACKAGE_LLAMA_CPP_SERVER into BR2_PACKAGE_LLAMA_CPP_TOOLS, as both of these options must be enabled to build tools like llama-cli and llama-server.

https://github.com/ggml-org/llama.cpp/commit/a180ba78c710f52af7c7edee562fbe98c36d6ddd

---
Changes in v2:
- Fix LICENSE hash
- Merge BR2_PACKAGE_LLAMA_CPP_SERVER into BR2_PACKAGE_LLAMA_CPP_TOOLS
- Deprecate BR2_PACKAGE_LLAMA_CPP_SERVER
- Link to v1: https://lore.kernel.org/r/[email protected]

---
 Config.in.legacy                 |  9 +++++++++
 package/llama-cpp/Config.in      |  8 ++------
 package/llama-cpp/llama-cpp.hash |  4 ++--
 package/llama-cpp/llama-cpp.mk   | 14 +++++---------
 4 files changed, 18 insertions(+), 17 deletions(-)
Config.in.legacy +9 -0
index 4f5275b917..be32c1bca7 100644
@@ -146,6 +146,15 @@ endif
 
 comment "Legacy options removed in 2026.02"
 
+config BR2_PACKAGE_LLAMA_CPP_SERVER
+	bool "llama-cpp option removed"
+	select BR2_PACKAGE_LLAMA_CPP_TOOLS
+	select BR2_LEGACY
+	help
+	  Several tools (server, cli) now require building both
+	  tools and server, so enable both with the same config
+	  BR2_PACKAGE_LLAMA_CPP_TOOLS
+
 config BR2_BINUTILS_VERSION_2_43_X
 	bool "binutils 2.43 has been removed"
 	select BR2_LEGACY
package/llama-cpp/Config.in +2 -6
index c3eaa2a4ea..fa7da609de 100644
@@ -25,12 +25,8 @@ if BR2_PACKAGE_LLAMA_CPP
 config BR2_PACKAGE_LLAMA_CPP_TOOLS
 	bool "Enable tools"
 	help
-	  Build CLI tools like llama-cli, llama-bench, etc.
-
-config BR2_PACKAGE_LLAMA_CPP_SERVER
-	bool "Enable server"
-	help
-	  Build OpenAI API-compatible web server, llama-server.
+	  Build CLI tools like llama-cli, llama-server, llama-bench,
+	  etc.
 
 config BR2_PACKAGE_LLAMA_CPP_VULKAN
 	bool "Vulkan support"
package/llama-cpp/llama-cpp.hash +2 -2
index 765025f180..3967bc2fbc 100644
@@ -1,4 +1,4 @@
 # Locally calculated
-sha256  b2c4c89b6282c4ddc7c9c00c79af77d84811b6092aa47838a194e8a2981fa104  b7271.tar.gz
+sha256  4f9fdf018339783722936d537573d40cca596262e42714f597b1c93299113cea  b8117.tar.gz
 # License
-sha256  e562a2ddfaf8280537795ac5ecd34e3012b6582a147ef69ba6a6a5c08c84757d  LICENSE
+sha256  94f29bbed6a22c35b992c5c6ebf0e7c92f13b836b90f36f461c9cf2f0f1d010d  LICENSE
package/llama-cpp/llama-cpp.mk +5 -9
index 5112022656..c450820747 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-LLAMA_CPP_VERSION = b7271
+LLAMA_CPP_VERSION = b8117
 LLAMA_CPP_SOURCE = $(LLAMA_CPP_VERSION).tar.gz
 LLAMA_CPP_SITE = https://github.com/ggml-org/llama.cpp/archive/refs/tags
 LLAMA_CPP_LICENSE = MIT
@@ -42,15 +42,11 @@ LLAMA_CPP_CONF_OPTS += -DLLAMA_CURL=OFF
 endif
 
 ifeq ($(BR2_PACKAGE_LLAMA_CPP_TOOLS),y)
-LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_TOOLS=ON
+LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_TOOLS=ON \
+		       -DLLAMA_BUILD_SERVER=ON
 else
-LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_TOOLS=OFF
-endif
-
-ifeq ($(BR2_PACKAGE_LLAMA_CPP_SERVER),y)
-LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_SERVER=ON
-else
-LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_SERVER=OFF
+LLAMA_CPP_CONF_OPTS += -DLLAMA_BUILD_TOOLS=OFF \
+		       -DLLAMA_BUILD_SERVER=OFF
 endif
 
 ifeq ($(BR2_PACKAGE_LLAMA_CPP_VULKAN),y)

---
base-commit: 6c83a0b8e5658b901dd35ae23217075f035af998
change-id: 20260220-llama-cpp-b8117-e23d56923b35

Best regards,

Signature · 6 lines
Joseph Kogut <[email protected]>

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 9 lines · Joseph Kogut

Release notes: https://github.com/ggml-org/llama.cpp/releases

Merge BR2_PACKAGE_LLAMA_CPP_SERVER into BR2_PACKAGE_LLAMA_CPP_TOOLS, as both of these options must be enabled to build tools like llama-cli and llama-server.

https://github.com/ggml-org/llama.cpp/commit/a180ba78c710f52af7c7edee562fbe98c36d6ddd

Applied to master, thanks. For info, I did few minor changes. See:
https://gitlab.com/buildroot.org/buildroot/-/commit/05c36d5d875713521f99b7bad48be316dcde2510

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot