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

34
fs/xfs/Config.in Normal file
View File

@@ -0,0 +1,34 @@
config BR2_TARGET_ROOTFS_XFS
bool "xfs root filesystem"
select BR2_PACKAGE_HOST_XFSPROGS
help
Build a xfs root filesystem. If you enable this option, you
probably want to enable the xfsprogs package too.
if BR2_TARGET_ROOTFS_XFS
config BR2_TARGET_ROOTFS_XFS_LABEL
string "filesystem label"
default "rootfs"
config BR2_TARGET_ROOTFS_XFS_SIZE
string "exact size"
default "300M"
help
The size of the filesystem image. This size is passed to the
"truncate -s", so this option recognizes unit suffixes such
as K,M,G (see the manual page truncate(1)). Note the XFS
minimal filesystem size is 300M.
config BR2_TARGET_ROOTFS_XFS_MKFS_OPTIONS
string "additional mkfs.xfs options"
help
Specify a space-separated list of mkfs.xfs options.
For more information about the mke2fs options, see the
manual page mkfs.xfs(8).
For more information about the XFS features which can be
set, see also the manual page xfs(5).
endif # BR2_TARGET_ROOTFS_XFS

33
fs/xfs/xfs.mk Normal file
View File

@@ -0,0 +1,33 @@
################################################################################
#
# Build the xfs root filesystem image
#
################################################################################
ROOTFS_XFS_SIZE = $(call qstrip,$(BR2_TARGET_ROOTFS_XFS_SIZE))
ifeq ($(BR2_TARGET_ROOTFS_XFS)-$(ROOTFS_XFS_SIZE),y-)
$(error BR2_TARGET_ROOTFS_XFS_SIZE cannot be empty)
endif
ROOTFS_XFS_MKFS_OPTS = $(call qstrip,$(BR2_TARGET_ROOTFS_XFS_MKFS_OPTIONS))
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
ROOTFS_XFS_LABEL = $(subst ",,$(BR2_TARGET_ROOTFS_XFS_LABEL))
#" comment to balance quotes/parenthesis for syntax highlighting)
ROOTFS_XFS_OPTS = \
-f \
-p '$(TARGET_DIR)' \
-L '$(ROOTFS_XFS_LABEL)' \
$(ROOTFS_XFS_MKFS_OPTS)
ROOTFS_XFS_DEPENDENCIES = host-xfsprogs
define ROOTFS_XFS_CMD
$(RM) -f $@
truncate -s $(ROOTFS_XFS_SIZE) $@
$(HOST_DIR)/sbin/mkfs.xfs $(ROOTFS_XFS_OPTS) $@
endef
$(eval $(rootfs))