From b5fb2f907c0c28fc4aa572155b299f876777083c Mon Sep 17 00:00:00 2001 From: Sergii Dmytruk Date: Fri, 22 Jul 2022 20:26:18 +0300 Subject: [PATCH] Build agetty from util-linux and optionally add it to initrd Signed-off-by: Sergii Dmytruk --- Makefile | 1 + modules/util-linux | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 1aee62f1..34e28479 100644 --- a/Makefile +++ b/Makefile @@ -458,6 +458,7 @@ bin_modules-$(CONFIG_FBWHIPTAIL) += fbwhiptail bin_modules-$(CONFIG_HOTPKEY) += hotp-verification bin_modules-$(CONFIG_MSRTOOLS) += msrtools bin_modules-$(CONFIG_NKSTORECLI) += nkstorecli +bin_modules-$(CONFIG_UTIL_LINUX) += util-linux $(foreach m, $(bin_modules-y), \ $(call map,initrd_bin_add,$(call bins,$m)) \ diff --git a/modules/util-linux b/modules/util-linux index 3fd41d97..0a0442f9 100644 --- a/modules/util-linux +++ b/modules/util-linux @@ -20,6 +20,7 @@ util-linux_configure := ./configure \ --disable-all-programs \ --enable-libuuid \ --enable-libblkid \ + --enable-agetty \ util-linux_target := \ @@ -34,4 +35,7 @@ util-linux_libraries += \ .libs/libuuid.so.1 \ .libs/libblkid.so.1 \ +util-linux_agetty-$(CONFIG_USE_AGETTY) := agetty +util-linux_output := $(util-linux_agetty-y) + util-linux_depends := $(musl_dep)