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,40 @@
From dbe342545b7bee42107e09d0da59bb42c50903cb Mon Sep 17 00:00:00 2001
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Date: Sat, 30 Sep 2023 14:54:15 +0200
Subject: [PATCH] usr/idbm.c: fix musl build
Fix the following musl build failure raised since version 2.1.9 and
https://github.com/open-iscsi/open-iscsi/commit/7b571d76d6937a78c141630fc38c3c57c532466c:
../usr/idbm.c: In function 'idbm_rec_write_old':
../usr/idbm.c:2230:27: error: 'GLOB_ONLYDIR' undeclared (first use in this function)
2230 | rc = glob(portal, GLOB_ONLYDIR, NULL, &globbuf);
| ^~~~~~~~~~~~
Fixes:
- http://autobuild.buildroot.org/results/14fc1c139f055b5b1eaa6e04e327863c06176a7b
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Upstream: https://github.com/open-iscsi/open-iscsi/commit/11bdc17938ba648c81a853355a6bbddad69a9fc7
---
usr/idbm.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/usr/idbm.c b/usr/idbm.c
index ca4a4ec..fbaa132 100644
--- a/usr/idbm.c
+++ b/usr/idbm.c
@@ -45,6 +45,10 @@
#include "fw_context.h"
#include "iscsi_err.h"
+#ifndef GLOB_ONLYDIR
+#define GLOB_ONLYDIR 0x100
+#endif
+
#define IDBM_HIDE 0 /* Hide parameter when print. */
#define IDBM_SHOW 1 /* Show parameter when print. */
#define IDBM_MASKED 2 /* Show "stars" instead of real value when print */
--
2.40.1

View File

@@ -0,0 +1,17 @@
config BR2_PACKAGE_OPEN_ISCSI
bool "open-iscsi"
depends on BR2_USE_MMU # fork()
depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
depends on !BR2_STATIC_LIBS # kmod
select BR2_PACKAGE_KMOD
select BR2_PACKAGE_OPENSSL
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
help
iSCSI tools for Linux.
https://www.open-iscsi.com
comment "open-iscsi needs a toolchain w/ threads, dynamic library"
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS

View File

@@ -0,0 +1,5 @@
# Locally calculated
sha256 60e2a1e3058a8af7f702e86a5a0511b05b8754d29d3d2df4e0e301399b5cf70a open-iscsi-2.1.9.tar.gz
sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 COPYING
sha256 7e6580de9d99b680697d51ec0c5e88acd9ed329139d181472cc5a592d0684fa5 README
sha256 e3a994d82e644b03a792a930f574002658412f62407f5fee083f2555c5f23118 libopeniscsiusr/COPYING

View File

@@ -0,0 +1,35 @@
################################################################################
#
# open-iscsi
#
################################################################################
OPEN_ISCSI_VERSION = 2.1.9
OPEN_ISCSI_SITE = $(call github,open-iscsi,open-iscsi,$(OPEN_ISCSI_VERSION))
OPEN_ISCSI_LICENSE = GPL-2.0+, GPL-3.0+, LGPL-3.0+
OPEN_ISCSI_LICENSE_FILES = COPYING README libopeniscsiusr/COPYING
OPEN_ISCSI_CPE_ID_VALID = YES
OPEN_ISCSI_DEPENDENCIES = kmod openssl util-linux
OPEN_ISCSI_CONF_OPTS = -Ddbroot=/var/lib/iscsi
ifeq ($(BR2_PACKAGE_OPEN_ISNS),y)
OPEN_ISCSI_DEPENDENCIES += open-isns
OPEN_ISCSI_CONF_OPTS += -Disns=enabled
else
OPEN_ISCSI_CONF_OPTS += -Disns=disabled
endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
OPEN_ISCSI_DEPENDENCIES += systemd
OPEN_ISCSI_CONF_OPTS += -Dno_systemd=false
else
OPEN_ISCSI_CONF_OPTS += -Dno_systemd=true
endif
define OPEN_ISCSI_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_SCSI_LOWLEVEL)
$(call KCONFIG_ENABLE_OPT,CONFIG_ISCSI_TCP)
endef
$(eval $(meson-package))