Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From a84eece62edd46c1f4c8047f1052ac6181fc8b3e Mon Sep 17 00:00:00 2001
|
||||
From: Lucas Hecht <lucas.hecht@agdsn.de>
|
||||
Date: Tue, 26 May 2026 18:49:48 +0200
|
||||
Subject: [PATCH] backend: remove linux/prctl.h include to fix musl conflict
|
||||
|
||||
Building with musl fails due to a duplicate definition of prctl_mm_map.
|
||||
This is because musl redefines linux/prctl.h in sys/prctl.h.
|
||||
|
||||
This commit removes the linux/prctl.h include.
|
||||
|
||||
Fixes: #2096
|
||||
|
||||
Signed-off-by: Lucas Hecht <lucas.hecht@agdsn.de>
|
||||
|
||||
Upstream: https://github.com/axboe/fio/commit/a84eece62edd46c1f4c8047f1052ac6181fc8b3e
|
||||
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
backend.c | 1 -
|
||||
1 file changed, 1 deletion(-)
|
||||
|
||||
diff --git a/backend.c b/backend.c
|
||||
index f6023d0e..e2b33b14 100644
|
||||
--- a/backend.c
|
||||
+++ b/backend.c
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <pthread.h>
|
||||
|
||||
#ifdef CONFIG_LINUX
|
||||
-#include <linux/prctl.h>
|
||||
#include <sys/prctl.h>
|
||||
#endif
|
||||
|
||||
--
|
||||
2.47.3
|
||||
|
||||
20
package/fio/Config.in
Normal file
20
package/fio/Config.in
Normal file
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_FIO
|
||||
bool "fio"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5 # nvme_ioctl.h
|
||||
help
|
||||
fio is an I/O tool meant to be used both for benchmark
|
||||
and stress/hardware verification.
|
||||
|
||||
https://git.kernel.dk/cgit/fio/
|
||||
|
||||
comment "fio needs a toolchain w/ dynamic library, threads, gcc >= 4.9, headers >= 4.5"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
|
||||
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
|
||||
depends on BR2_TOOLCHAIN_HAS_SYNC_4
|
||||
depends on BR2_USE_MMU
|
||||
8
package/fio/fio.hash
Normal file
8
package/fio/fio.hash
Normal file
@@ -0,0 +1,8 @@
|
||||
# From https://brick.kernel.dk/snaps/MD5SUMS
|
||||
md5 0e817db93ecf11a4797aea757f29c91d fio-3.42.tar.gz
|
||||
# Locally computed after checking gpg signature from
|
||||
# https://brick.kernel.dk/snaps/fio-3.42.tar.gz.asc
|
||||
# with key C0FC392DCADE26D975FA5E4AF7D358FB2971E0A6
|
||||
sha256 9128d0c81bd7bffab0dd06cbfb755a05ef92f3b8a0b0c61f1b3538df6750f1e0 fio-3.42.tar.gz
|
||||
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
|
||||
sha256 8a240c1ad13d1fe3e58588643d81d0695899be4a669fe6d8fafa76ca6a89db2c MORAL-LICENSE
|
||||
55
package/fio/fio.mk
Normal file
55
package/fio/fio.mk
Normal file
@@ -0,0 +1,55 @@
|
||||
################################################################################
|
||||
#
|
||||
# fio
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FIO_VERSION = 3.42
|
||||
FIO_SITE = https://brick.kernel.dk/snaps
|
||||
FIO_LICENSE = GPL-2.0
|
||||
FIO_LICENSE_FILES = COPYING MORAL-LICENSE
|
||||
|
||||
FIO_OPTS = --disable-native --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)"
|
||||
|
||||
# Uses __atomic_load_8
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
||||
FIO_CONF_ENV += LIBS=-latomic
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBAIO),y)
|
||||
FIO_DEPENDENCIES += libaio
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBNFS),y)
|
||||
FIO_OPTS += --enable-libnfs
|
||||
FIO_DEPENDENCIES += host-pkgconf libnfs
|
||||
else
|
||||
FIO_OPTS += --disable-libnfs
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBISCSI),y)
|
||||
FIO_OPTS += --enable-libiscsi
|
||||
FIO_DEPENDENCIES += host-pkgconf libiscsi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_NUMACTL),y)
|
||||
FIO_DEPENDENCIES += numactl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
FIO_DEPENDENCIES += zlib
|
||||
endif
|
||||
|
||||
define FIO_CONFIGURE_CMDS
|
||||
(cd $(@D); $(TARGET_MAKE_ENV) $(FIO_CONF_ENV) ./configure $(FIO_OPTS))
|
||||
endef
|
||||
|
||||
define FIO_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
||||
endef
|
||||
|
||||
define FIO_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D $(@D)/fio $(TARGET_DIR)/usr/bin/fio
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user