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,42 @@
config BR2_PACKAGE_LIBSEPOL
bool "libsepol"
depends on BR2_TOOLCHAIN_HAS_THREADS # pthread
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5
help
Libsepol is the binary policy manipulation library. It doesn't
depend upon or use any of the other SELinux components.
http://selinuxproject.org/page/Main_Page
if BR2_PACKAGE_LIBSEPOL
config BR2_PACKAGE_LIBSEPOL_POLICY_VERSION
int "Policy version"
default 34 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_14
default 33 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
default 32 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
default 31 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
default 30 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
default 29 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
default 28 if BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
default 25
help
The maximum SELinux policy version your kernel supports.
Here's a handy table to help you choose:
kernel version SElinux policy max version
< 2.6.x 25
>= 2.6 < 3.5 26
>= 3.5 < 3.14 28 (27 and 28 were added at the same time)
>= 3.14 < 4.3 29
>= 4.3 < 4.13 30
>= 4.13 < 5.5 31
>= 5.5 < 5.8 32
>= 5.8 33
>= 6.14 34
endif
comment "libsepol needs a toolchain w/ threads, gcc >= 5"
depends on !BR2_TOOLCHAIN_HAS_THREADS || \
!BR2_TOOLCHAIN_GCC_AT_LEAST_5

View File

@@ -0,0 +1,5 @@
# From: https://github.com/SELinuxProject/selinux/wiki/Releases
sha256 d555586797fa9f38344496d2a7ec1147b6caaf3fcc44c42d8d5173edd7a79a71 libsepol-3.10.tar.gz
# Hash for license file
sha256 6095e9ffa777dd22839f7801aa845b31c9ed07f3d6bf8a26dc5d2dec8ccc0ef3 LICENSE

View File

@@ -0,0 +1,53 @@
################################################################################
#
# libsepol
#
################################################################################
LIBSEPOL_VERSION = 3.10
LIBSEPOL_SITE = https://github.com/SELinuxProject/selinux/releases/download/$(LIBSEPOL_VERSION)
LIBSEPOL_LICENSE = LGPL-2.1+
LIBSEPOL_LICENSE_FILES = LICENSE
LIBSEPOL_CPE_ID_VENDOR = selinuxproject
LIBSEPOL_INSTALL_STAGING = YES
LIBSEPOL_DEPENDENCIES = host-flex
HOST_LIBSEPOL_DEPENDENCIES = $(BR2_COREUTILS_HOST_DEPENDENCY) host-flex
LIBSEPOL_MAKE_FLAGS = $(TARGET_CONFIGURE_OPTS)
ifeq ($(BR2_STATIC_LIBS),y)
LIBSEPOL_MAKE_FLAGS += DISABLE_SHARED=y
endif
define LIBSEPOL_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(LIBSEPOL_MAKE_FLAGS)
endef
# Set SHLIBDIR to /usr/lib so it has the same value than LIBDIR, as a result
# we won't have to use a relative path in 0002-revert-ln-relative.patch
define LIBSEPOL_INSTALL_STAGING_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
DESTDIR=$(STAGING_DIR) SHLIBDIR=/usr/lib
endef
define LIBSEPOL_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) install $(LIBSEPOL_MAKE_FLAGS) \
DESTDIR=$(TARGET_DIR) SHLIBDIR=/usr/lib
endef
HOST_LIBSEPOL_MAKE_ENV = \
$(HOST_MAKE_ENV) \
PREFIX=$(HOST_DIR) \
SHLIBDIR=$(HOST_DIR)/lib
define HOST_LIBSEPOL_BUILD_CMDS
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS)
endef
define HOST_LIBSEPOL_INSTALL_CMDS
$(HOST_LIBSEPOL_MAKE_ENV) $(MAKE) -C $(@D) install $(HOST_CONFIGURE_OPTS)
endef
$(eval $(generic-package))
$(eval $(host-generic-package))