Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions DEVELOPERS
Original file line number Diff line number Diff line change
Expand Up @@ -612,6 +612,7 @@ F: package/qoriq-cadence-dp-firmware/

N: Chen Pei <cp0613@linux.alibaba.com>
F: package/iniparser/
F: package/ndctl/

N: Chris Packham <judge.packham@gmail.com>
F: package/coremark/
Expand Down
1 change: 1 addition & 0 deletions package/Config.in
Original file line number Diff line number Diff line change
Expand Up @@ -2838,6 +2838,7 @@ menu "System tools"
source "package/monit/Config.in"
source "package/multipath-tools/Config.in"
source "package/ncdu/Config.in"
source "package/ndctl/Config.in"
source "package/nerdctl/Config.in"
source "package/netifrc/Config.in"
source "package/numactl/Config.in"
Expand Down
4 changes: 2 additions & 2 deletions package/harfbuzz/harfbuzz.hash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# From https://github.com/harfbuzz/harfbuzz/releases/tag/13.1.1
sha256 e7f3b8bac3fdcc529985be8e84fbd65c675ac47ee58512b15a5dd620c79ffe2a harfbuzz-13.1.1.tar.xz
# From https://github.com/harfbuzz/harfbuzz/releases/tag/13.2.1
sha256 6695da3eb7e1be0aa3092fe4d81433a33b47f4519259c759d729e3a9a55c1429 harfbuzz-13.2.1.tar.xz
# Locally computed
sha256 ba8f810f2455c2f08e2d56bb49b72f37fcf68f1f4fade38977cfd7372050ad64 COPYING
2 changes: 1 addition & 1 deletion package/harfbuzz/harfbuzz.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
################################################################################

HARFBUZZ_VERSION = 13.1.1
HARFBUZZ_VERSION = 13.2.1
HARFBUZZ_SITE = https://github.com/harfbuzz/harfbuzz/releases/download/$(HARFBUZZ_VERSION)
HARFBUZZ_SOURCE = harfbuzz-$(HARFBUZZ_VERSION).tar.xz
HARFBUZZ_LICENSE = MIT, ISC (ucdn library)
Expand Down
25 changes: 25 additions & 0 deletions package/ndctl/Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
config BR2_PACKAGE_NDCTL
bool "ndctl"
depends on BR2_PACKAGE_HAS_UDEV
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 # __struct_group()
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU
select BR2_PACKAGE_INIPARSER
select BR2_PACKAGE_JSON_C
select BR2_PACKAGE_KEYUTILS
select BR2_PACKAGE_KMOD
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBS
select BR2_PACKAGE_UTIL_LINUX_LIBUUID
help
A "device memory" enabling project encompassing tools and
libraries for CXL, NVDIMMs, DAX, memory tiering and other
platform memory device topics.

https://github.com/pmem/ndctl

comment "ndctl needs udev /dev management, a toolchain headers >= 5.10"
depends on BR2_USE_MMU
depends on !BR2_PACKAGE_HAS_UDEV \
|| !BR2_TOOLCHAIN_HAS_THREADS \
|| !BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
7 changes: 7 additions & 0 deletions package/ndctl/ndctl.hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# locally computed
sha256 dd4b9b9a9dc0a15e980670b6f889e910a80ad60f2309e03bfd9cc6071d14dd30 ndctl-83.tar.gz
sha256 1334f22048052d69647860fe9fb24997dc3b33737cb494297d68949f589fa1cf COPYING
sha256 5c37e41135091a39821cfb306ad8516625b0bb49510ce56ad85c347bbc46df29 LICENSES/other/CC0-1.0
sha256 89807acf2309bd285f033404ee78581602f3cd9b819a16ac2f0e5f60ff4a473e LICENSES/other/MIT
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 LICENSES/preferred/GPL-2.0
sha256 9397d01be0ec93d29384447ba18e532ab7b01af8c8b582ece9f10ad45b9568db LICENSES/preferred/LGPL-2.1
51 changes: 51 additions & 0 deletions package/ndctl/ndctl.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
################################################################################
#
# ndctl
#
################################################################################

NDCTL_VERSION = 83
NDCTL_SITE = $(call github,pmem,ndctl,v$(NDCTL_VERSION))
NDCTL_LICENSE = \
CC0-1.0 (helper routines), \
GPL-2.0+ (tools), \
LGPL-2.1+ (libraries), \
MIT (helper routines)
NDCTL_LICENSE_FILES = \
COPYING \
LICENSES/other/CC0-1.0 \
LICENSES/other/MIT \
LICENSES/preferred/GPL-2.0 \
LICENSES/preferred/LGPL-2.1

NDCTL_DEPENDENCIES = \
iniparser \
json-c \
keyutils \
kmod \
udev \
util-linux-libs

# Currently, disabling keyutils or fwctl support will cause builds to
# fail. Therefore, always pass the -Dfwctl=enabled and -Dkeyutils=enabled.
NDCTL_CONF_OPTS = \
-Ddocs=disabled \
-Dfwctl=enabled \
-Dkeyutils=enabled \
-Diniparserdir=$(STAGING_DIR)/usr/include/iniparser

ifeq ($(BR2_PACKAGE_LIBTRACEFS)$(BR2_PACKAGE_LIBTRACEEVENT),yy)
NDCTL_CONF_OPTS += -Dlibtracefs=enabled
NDCTL_DEPENDENCIES += libtraceevent libtracefs
else
NDCTL_CONF_OPTS += -Dlibtracefs=disabled
endif

ifeq ($(BR2_PACKAGE_SYSTEMD),y)
NDCTL_CONF_OPTS += -Dsystemd=enabled
NDCTL_DEPENDENCIES += systemd
else
NDCTL_CONF_OPTS += -Dsystemd=disabled
endif

$(eval $(meson-package))
11 changes: 8 additions & 3 deletions support/testing/tests/package/test_aichat.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def test_run(self):
llama_opts = "--log-file /tmp/llama-server.log"
# We set a fixed seed, to reduce variability of the test
llama_opts += " --seed 123456789"
# We disable prompt caching to reduce RAM usage
llama_opts += " --cache-ram 0"
llama_opts += f" --hf-repo {hf_model}"

# We start a llama-server in background, which will expose an
Expand All @@ -91,9 +93,12 @@ def test_run(self):
if ret == 0:
models_json = "".join(out)
models = json.loads(models_json)
model_name = models['models'][0]['name']
if model_name == hf_model:
break
try:
model_name = models['models'][0]['name']
if model_name == hf_model:
break
except KeyError:
pass
else:
self.fail("Timeout while waiting for llama-server.")

Expand Down