Initial Commit
- initial default booting image
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 72ff3b8998a675900fcb7c18c0e03f1552b13a8b Mon Sep 17 00:00:00 2001
|
||||
From: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
|
||||
Date: Tue, 14 Apr 2026 11:04:08 +0530
|
||||
Subject: [PATCH] include/mount-api-utils.h: fix LSMT_ROOT definition
|
||||
|
||||
Commit
|
||||
ded434a63f3eee7fd7805b18d6c9bb912016c3c8 ("include/mount-api-utils:
|
||||
add statmount and listmount") introduce a fallback definition for the
|
||||
LSMT_ROOT defined, but a small typo makes this fallback definition
|
||||
ineffective:
|
||||
|
||||
#ifdef LSMT_ROOT
|
||||
# define LSMT_ROOT ...
|
||||
#endif
|
||||
|
||||
Should obviously have been:
|
||||
|
||||
#ifndef LSMT_ROOT
|
||||
# define LSMT_ROOT ...
|
||||
#endif
|
||||
|
||||
Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
|
||||
Upstream: https://lore.kernel.org/util-linux/20260530094932.2351791-1-thomas.petazzoni@bootlin.com/T/#u
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
|
||||
---
|
||||
include/mount-api-utils.h | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/include/mount-api-utils.h b/include/mount-api-utils.h
|
||||
index a916f99..87e173e 100644
|
||||
--- a/include/mount-api-utils.h
|
||||
+++ b/include/mount-api-utils.h
|
||||
@@ -339,7 +339,7 @@ struct ul_statmount {
|
||||
/*
|
||||
* Special @mnt_id values that can be passed to listmount
|
||||
*/
|
||||
-#ifdef LSMT_ROOT
|
||||
+#ifndef LSMT_ROOT
|
||||
# define LSMT_ROOT 0xffffffffffffffff /* root mount */
|
||||
#endif
|
||||
|
||||
--
|
||||
2.53.0
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
From a06adacd1009174b7ca35f529a2db165f6c1f3aa Mon Sep 17 00:00:00 2001
|
||||
From: Bernd Kuhls <bernd@kuhls.net>
|
||||
Date: Fri, 16 Jan 2026 23:33:34 +0100
|
||||
Subject: [PATCH] autotools: optionally add libpthread to uuid.pc
|
||||
|
||||
Fixes https://github.com/util-linux/util-linux/issues/3210#issuecomment-3477915953
|
||||
|
||||
Upstream: https://github.com/util-linux/util-linux/commit/d88a62e4cd385e07b3cb8fb309bbb03981ea2970
|
||||
|
||||
[Bernd: backported to 2.41.3]
|
||||
Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
libuuid/uuid.pc.in | 2 +-
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 01e99701d..cd1d157ce 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -189,6 +189,7 @@ edit_cmd = sed \
|
||||
-e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
|
||||
-e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
|
||||
-e 's|@SOCKET_LIBS[@]|$(SOCKET_LIBS)|g' \
|
||||
+ -e 's|@PTHREAD_LIBS[@]|$(PTHREAD_LIBS)|g' \
|
||||
-e 's|@VERSION[@]|$(VERSION)|g' \
|
||||
-e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \
|
||||
-e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \
|
||||
diff --git a/libuuid/uuid.pc.in b/libuuid/uuid.pc.in
|
||||
index 51929fe80..a40dc6644 100644
|
||||
--- a/libuuid/uuid.pc.in
|
||||
+++ b/libuuid/uuid.pc.in
|
||||
@@ -7,5 +7,5 @@ Name: uuid
|
||||
Description: Universally unique id library
|
||||
Version: @LIBUUID_VERSION@
|
||||
Cflags: -I${includedir}/uuid
|
||||
-Libs.private: @SOCKET_LIBS@ -lpthread
|
||||
+Libs.private: @SOCKET_LIBS@ @PTHREAD_LIBS@
|
||||
Libs: -L${libdir} -luuid
|
||||
--
|
||||
2.47.3
|
||||
|
||||
1
package/util-linux/util-linux-libs/util-linux-libs.hash
Symbolic link
1
package/util-linux/util-linux-libs/util-linux-libs.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../util-linux.hash
|
||||
102
package/util-linux/util-linux-libs/util-linux-libs.mk
Normal file
102
package/util-linux/util-linux-libs/util-linux-libs.mk
Normal file
@@ -0,0 +1,102 @@
|
||||
################################################################################
|
||||
#
|
||||
# util-linux-libs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
# Please keep this file as similar as possible to util-linux.mk
|
||||
|
||||
UTIL_LINUX_LIBS_VERSION = $(UTIL_LINUX_VERSION)
|
||||
UTIL_LINUX_LIBS_SOURCE = $(UTIL_LINUX_SOURCE)
|
||||
UTIL_LINUX_LIBS_SITE = $(UTIL_LINUX_SITE)
|
||||
UTIL_LINUX_LIBS_DL_SUBDIR = $(UTIL_LINUX_DL_SUBDIR)
|
||||
UTIL_LINUX_LIBS_CPE_ID_VENDOR = $(UTIL_LINUX_CPE_ID_VENDOR)
|
||||
UTIL_LINUX_LIBS_CPE_ID_PRODUCT = $(UTIL_LINUX_CPE_ID_PRODUCT)
|
||||
|
||||
# README.licensing claims that some files are GPL-2.0 only, but this is not
|
||||
# true. Some files are GPL-3.0+ but only in tests and optionally in hwclock
|
||||
# (but we disable that option). rfkill uses an ISC-style license.
|
||||
UTIL_LINUX_LIBS_LICENSE = LGPL-2.1+ (libblkid, libfdisk, libmount), BSD-3-Clause (libuuid)
|
||||
UTIL_LINUX_LIBS_LICENSE_FILES = README.licensing \
|
||||
Documentation/licenses/COPYING.BSD-3-Clause \
|
||||
Documentation/licenses/COPYING.LGPL-2.1-or-later
|
||||
|
||||
# 0002-autotools-optionally-add-libpthread-to-uuid.pc.patch
|
||||
UTIL_LINUX_LIBS_AUTORECONF = YES
|
||||
|
||||
UTIL_LINUX_LIBS_INSTALL_STAGING = YES
|
||||
UTIL_LINUX_LIBS_DEPENDENCIES = \
|
||||
host-pkgconf \
|
||||
$(if $(BR2_PACKAGE_LIBXCRYPT),libxcrypt) \
|
||||
$(TARGET_NLS_DEPENDENCIES)
|
||||
# --disable-year2038: tells the configure script to not abort if the
|
||||
# system is not Y2038 compliant. util-linux-libs will support year2038
|
||||
# if the system is compliant even with this option passed
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += \
|
||||
--disable-rpath \
|
||||
--disable-makeinstall-chown \
|
||||
--disable-year2038
|
||||
|
||||
UTIL_LINUX_LIBS_LINK_LIBS = $(TARGET_NLS_LIBS)
|
||||
|
||||
# Prevent the installation from attempting to move shared libraries from
|
||||
# ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are
|
||||
# the same when merged usr is in use.
|
||||
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib
|
||||
endif
|
||||
|
||||
# systemd depends on util-linux-libs so we disable systemd support
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += \
|
||||
--without-systemd \
|
||||
--with-systemdsystemunitdir=no
|
||||
|
||||
# systemd/eudev depend on util-linux-libs so we disable udev support
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-udev
|
||||
|
||||
# No libs use wchar
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --disable-widechar
|
||||
|
||||
# No libs use ncurses
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-ncursesw --without-ncurses
|
||||
|
||||
# workaround for static_assert on uclibc-ng < 1.0.42
|
||||
UTIL_LINUX_LIBS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -Dstatic_assert=_Static_assert"
|
||||
|
||||
# Unfortunately, the util-linux does LIBS="" at the end of its
|
||||
# configure script. So we have to pass the proper LIBS value when
|
||||
# calling the configure script to make configure tests pass properly,
|
||||
# and then pass it again at build time.
|
||||
UTIL_LINUX_LIBS_CONF_ENV += LIBS="$(UTIL_LINUX_LIBS_LINK_LIBS)"
|
||||
UTIL_LINUX_LIBS_MAKE_OPTS += LIBS="$(UTIL_LINUX_LIBS_LINK_LIBS)"
|
||||
|
||||
# libmount optionally uses selinux
|
||||
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT)$(BR2_PACKAGE_LIBSELINUX),yy)
|
||||
UTIL_LINUX_LIBS_DEPENDENCIES += libselinux
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --with-selinux
|
||||
else
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-selinux
|
||||
endif
|
||||
|
||||
# Disable utilities
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += \
|
||||
--disable-all-programs \
|
||||
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),--enable-libblkid,--disable-libblkid) \
|
||||
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBFDISK),--enable-libfdisk,--disable-libfdisk) \
|
||||
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),--enable-libmount,--disable-libmount) \
|
||||
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBSMARTCOLS),--enable-libsmartcols,--disable-libsmartcols) \
|
||||
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBUUID),--enable-libuuid,--disable-libuuid)
|
||||
|
||||
# libmount python bindings are separate, will be installed by full util-linux
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-python --disable-pylibmount
|
||||
|
||||
# No libs use readline
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-readline
|
||||
|
||||
# No libs use audit
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-audit
|
||||
|
||||
# No libs use libmagic
|
||||
UTIL_LINUX_LIBS_CONF_OPTS += --without-libmagic
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user