@@ -797,6 +797,7 @@ F: configs/imx8mn_bsh_smm_s2_defconfig
F: configs/imx8mn_bsh_smm_s2_pro_defconfig
F: configs/stm32f769_disco_sd_defconfig
F: package/sscep/
+F: package/tinit/
F: package/uuu/
N: Dario Binacchi <dariobin@libero.it>
@@ -2866,6 +2866,7 @@ menu "System tools"
source "package/tar/Config.in"
source "package/tealdeer/Config.in"
source "package/thermald/Config.in"
+ source "package/tinit/Config.in"
source "package/tpm-tools/Config.in"
source "package/tpm2-abrmd/Config.in"
source "package/tpm2-tools/Config.in"
new file mode 100644
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_TINIT
+ bool "tinit"
+ depends on BR2_INIT_TINIT
+ help
+ A Linux tiny initialization script suitable for resource
+ limited systems, which can be used as an alternative to the
+ one provided by Busybox.
+
+ https://github.com/passgat/tinit
new file mode 100644
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 27cc4dbbd88df00dd98b64cbadf3d1de6062d8a4ea7bc405c445e560c6dd23c1 tinit-0.1.0.tar.gz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643 LICENSE
new file mode 100644
@@ -0,0 +1,17 @@
+################################################################################
+#
+# tinit
+#
+################################################################################
+
+TINIT_VERSION = 0.1.0
+TINIT_SITE = $(call github,passgat,tinit,v$(TINIT_VERSION))
+TINIT_LICENSE = GPL-2.0
+TINIT_LICENSE_FILES = LICENSE
+
+define TINIT_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/init $(TARGET_DIR)/sbin/init
+ (cd $(TARGET_DIR); ln -sf /sbin/init init)
+endef
+
+$(eval $(generic-package))
@@ -145,6 +145,11 @@ comment "systemd highly recommends Linux >= 4.15"
depends on BR2_INIT_SYSTEMD
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
+config BR2_INIT_TINIT
+ bool "tiny init"
+ select BR2_PACKAGE_TINIT
+ select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
+
config BR2_INIT_NONE
bool "None"
select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_ROOTFS_SKELETON_DEFAULT
This package contains a Linux init script suitable for resource-limited systems which can be used as an alternative to the one provided by Busybox. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com> --- DEVELOPERS | 1 + package/Config.in | 1 + package/tinit/Config.in | 9 +++++++++ package/tinit/tinit.hash | 3 +++ package/tinit/tinit.mk | 17 +++++++++++++++++ system/Config.in | 5 +++++ 6 files changed, 36 insertions(+) create mode 100644 package/tinit/Config.in create mode 100644 package/tinit/tinit.hash create mode 100644 package/tinit/tinit.mk