]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
build-sys: enable tpm by default 6367/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2017 23:37:07 +0000 (19:37 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2017 23:37:07 +0000 (19:37 -0400)
It's been on in Fedora for ages, and it seems strange to have
a feature that's off by default.

configure.ac
meson_options.txt

index c7537aafc0c92e42c72e83652e9542c2974ddd87..eafe77e635b56672ed73f2a14dc64835af8c7926 100644 (file)
@@ -1431,16 +1431,10 @@ AM_CONDITIONAL(HAVE_GNUEFI, [test "x$have_gnuefi" = xyes])
 
 # ------------------------------------------------------------------------------
 have_tpm=no
-AC_ARG_ENABLE([tpm], AS_HELP_STRING([--enable-tpm], [enable optional TPM support]),
-                [case "${enableval}" in
-                        yes) have_tpm=yes ;;
-                        no) have_tpm=no ;;
-                        *) AC_MSG_ERROR(bad value ${enableval} for --enable-tpm) ;;
-                esac],
-                [have_tpm=no])
-
-if test "x${have_tpm}" != xno ; then
+AC_ARG_ENABLE(tpm, AS_HELP_STRING([--disable-tpm], [disable optional support]))
+if test "x${enable_tpm}" != xno ; then
         AC_DEFINE(SD_BOOT_LOG_TPM, 1, [Define if TPM should be used to log events and extend the registers])
+        have_tpm=yes
 fi
 
 AC_ARG_WITH(tpm-pcrindex,
index 1594fec41f5b7008c27cb37f5fad502f9aeeeb87..0cd8fb02e7f3f0c32c48d48da74f0f63d85592db 100644 (file)
@@ -47,7 +47,7 @@ option('resolve', type : 'boolean',
        description : 'systemd-resolved stack')
 option('efi', type : 'boolean',
        description : 'enable systemd-boot and bootctl')
-option('tpm', type : 'boolean', value : false,
+option('tpm', type : 'boolean', value : true,
        description : 'TPM should be used to log events and extend the registers')
 option('environment-d', type : 'boolean',
        description : 'support for environment.d')