From patchwork Thu Mar 22 20:27:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Santos X-Patchwork-Id: 889623 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.137; helo=fraxinus.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=datacom.ind.br Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 406dXg2Yx4z9s0y for ; Fri, 23 Mar 2018 07:28:19 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 218788618F; Thu, 22 Mar 2018 20:28:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oFZNR9ODbElv; Thu, 22 Mar 2018 20:28:13 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id A321785F3F; Thu, 22 Mar 2018 20:28:12 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id D52DF1CF0CA for ; Thu, 22 Mar 2018 20:28:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id D28EE8A334 for ; Thu, 22 Mar 2018 20:28:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VcIkVi7al6iA for ; Thu, 22 Mar 2018 20:28:03 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.datacom.ind.br (mx.datacom.ind.br [177.66.5.10]) by hemlock.osuosl.org (Postfix) with ESMTPS id 5E21A8A333 for ; Thu, 22 Mar 2018 20:28:03 +0000 (UTC) Received: from mail.datacom.ind.br (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTPS id 27D7A1BA41EC; Thu, 22 Mar 2018 17:28:05 -0300 (-03) Received: from localhost (localhost [127.0.0.1]) by mail.datacom.ind.br (Postfix) with ESMTP id 0B5F71BA41F3; Thu, 22 Mar 2018 17:28:05 -0300 (-03) Received: from mail.datacom.ind.br ([127.0.0.1]) by localhost (mail.datacom.ind.br [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id ZWlG1PXL7UtT; Thu, 22 Mar 2018 17:28:04 -0300 (-03) Received: from pedeld202344.datacom.net (pedeld202344.datacom.net [10.0.120.87]) by mail.datacom.ind.br (Postfix) with ESMTPSA id C9C2F1BA41EC; Thu, 22 Mar 2018 17:28:04 -0300 (-03) From: Carlos Santos To: buildroot@buildroot.org Date: Thu, 22 Mar 2018 17:27:50 -0300 Message-Id: <20180322202752.2562-5-casantos@datacom.ind.br> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180322202752.2562-1-casantos@datacom.ind.br> References: <20180322202752.2562-1-casantos@datacom.ind.br> Subject: [Buildroot] [PATCH 4/6] tpm2-abrmd: allow building without stack smashing protection (SSP) X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.24 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Disable SSP if the toolchain does not support it. This must be done explicitly because configure.ac passes -fstack-protector-all to the compiler but doesn't contain a link test, so it doesn't detect when libssp is missing. Fixes: http://autobuild.buildroot.net/results/83ad1f33f523321f841e70d2d8cf5ce861dee217 http://autobuild.buildroot.net/results/cef047751534fef23d1022e9a276424bc84bf461 http://autobuild.buildroot.net/results/6048355337804f7841dffa1655f44b9f6db56314 http://autobuild.buildroot.net/results/d934a2ea90e7bf1c7b93dbb367998abab536daf4 http://autobuild.buildroot.net/results/c0daaf37b8d1515d62d2441ba6aa57125437e191 http://autobuild.buildroot.net/results/9482ea5554938865e0061dcbdcf3c2c918b96954 http://autobuild.buildroot.net/results/282a8b6769f19f0a40089207bc54e7302663751f Signed-off-by: Carlos Santos --- package/tpm2-abrmd/tpm2-abrmd.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package/tpm2-abrmd/tpm2-abrmd.mk b/package/tpm2-abrmd/tpm2-abrmd.mk index 0d6a167210..69d09a59e4 100644 --- a/package/tpm2-abrmd/tpm2-abrmd.mk +++ b/package/tpm2-abrmd/tpm2-abrmd.mk @@ -11,6 +11,10 @@ TPM2_ABRMD_LICENSE_FILES = LICENSE TPM2_ABRMD_INSTALL_STAGING = YES TPM2_ABRMD_DEPENDENCIES = dbus libglib2 tpm2-tss host-pkgconf +# configure.ac doesn't contain a link test, so it doesn't detect when +# libssp is missing. +TPM2_ABRMD_CONF_ENV = ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no) + TPM2_ABRMD_CONF_OPTS += \ --with-systemdsystemunitdir=$(if $(BR2_INIT_SYSTEMD),/usr/lib/systemd/system,no) \ --with-udevrulesdir=$(if $(BR2_PACKAGE_HAS_UDEV),/usr/lib/udev/rules.d,no)