Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
From 9485c21f8f36a78a754ccba3c4ce30867af9655d Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Fri, 26 Jul 2024 09:13:16 +0200
Subject: [PATCH] liburing.pc.in: add -D_GNU_SOuRCE to Cflags
Add -D_GNU_SOURCE to Cflags to avoid the following musl build failure
with applications using liburing (e.g. libdex) raised since version 2.6
and c427ed678f39fd144d784f2e970bd8c52f425e14 which reverted
c34070e08199491fe9653617364f4aea9b9b22be:
In file included from ../src/dex-uring-aio-backend.c:29:
/home/autobuild/autobuild/instance-7/output-1/host/mips-buildroot-linux-musl/sysroot/usr/include/liburing.h:224:39: error: unknown type name 'cpu_set_t'
224 | const cpu_set_t *mask);
| ^~~~~~~~~
/home/autobuild/autobuild/instance-7/output-1/host/mips-buildroot-linux-musl/sysroot/usr/include/liburing.h:1212:48: error: unknown type name 'loff_t'; did you mean 'off_t'?
1212 | int fd, loff_t len)
| ^~~~~~
| off_t
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Upstream: https://github.com/axboe/liburing/commit/9485c21f8f36a78a754ccba3c4ce30867af9655d
---
liburing.pc.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/liburing.pc.in b/liburing.pc.in
index 2c879b2..790c22e 100644
--- a/liburing.pc.in
+++ b/liburing.pc.in
@@ -9,4 +9,4 @@ Description: io_uring library
URL: https://git.kernel.dk/cgit/liburing/
Libs: -L${libdir} -luring
-Cflags: -I${includedir}
+Cflags: -I${includedir} -D_GNU_SOURCE
--
2.43.0

View File

@@ -0,0 +1,17 @@
config BR2_PACKAGE_LIBURING
bool "liburing"
depends on BR2_USE_MMU # madvise()
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C11/stdatomic.h
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
help
This is the io_uring library, liburing. liburing provides
helpers to setup and teardown io_uring instances, and also a
simplified interface for applications that don't need (or
want) to deal with the full kernel side implementation.
https://github.com/axboe/liburing
comment "liburing needs a toolchain w/ gcc >= 4.9, headers >= 5.1"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1

View File

@@ -0,0 +1,8 @@
# Locally calculated
sha256 f1d10cb058c97c953b4c0c446b11e9177e8c8b32a5a88b309f23fdd389e26370 2.12.tar.gz
# Hash for license files
sha256 592987e8510228d546540b84a22444bde98e48d03078d3b2eefcd889bec5ce8c COPYING
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING.GPL
sha256 2ec12f7934cdfce25ff72b0557738989d79fc7a496d1cf9b2d3f9464fd61edbe LICENSE
sha256 d98e81bb7a8fcfb5506f02c3190b5bc2e286970591072edc4575c26624d827dd README

View File

@@ -0,0 +1,42 @@
################################################################################
#
# liburing
#
################################################################################
LIBURING_VERSION = 2.12
LIBURING_SOURCE = $(LIBURING_VERSION).tar.gz
LIBURING_SITE = $(call github,axboe,liburing,liburing-$(LIBURING_VERSION))
LIBURING_LICENSE = (GPL-2.0 with exceptions and LGPL-2.1+) or MIT
LIBURING_LICENSE_FILES = COPYING COPYING.GPL LICENSE README
LIBURING_INSTALL_STAGING = YES
define LIBURING_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_IO_URING)
endef
ifeq ($(BR2_STATIC_LIBS),y)
LIBURING_MAKE_OPTS += ENABLE_SHARED=0
else
LIBURING_MAKE_OPTS += ENABLE_SHARED=1
endif
define LIBURING_CONFIGURE_CMDS
(cd $(@D); $(TARGET_CONFIGURE_OPTS) ./configure)
endef
define LIBURING_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(LIBURING_MAKE_OPTS) -C $(@D)/src
endef
define LIBURING_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(LIBURING_MAKE_OPTS) -C $(@D) \
DESTDIR=$(STAGING_DIR) install
endef
define LIBURING_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) $(LIBURING_MAKE_OPTS) -C $(@D) \
DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))