From patchwork Fri Oct 29 08:54:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Ardelean X-Patchwork-Id: 1547897 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=IzyeTv5x; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=Zn4mQsv3; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Hgbsr2sybz9sX3 for ; Fri, 29 Oct 2021 19:57:36 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JhGUE9Kakw+7fTO62VW4OanBb902UxyVaIz6RJMvMJI=; b=IzyeTv5xlpIK9z Ddp0NTCdhyAWYAUF/H8r5mJwMrorj3MuKHvRL9IaTTAwDlIzJ6tDRbahYD/oh1uVMSJuFsCJpkwMZ o14eRWKOTJgWZDCkkhWINKmiAqgC/MDyEViLseERrbElyGMDRLr8pbHyIjwg4V1gX98Agy+vVNMWx Ie8At5qdom31aCLvzpFynyFtWryBWc1/+XIqmRtTbFcbxJb4fYNM8cq+wX7RSqv3cHwQoY1PK7WqN V0+HNUJZrD/t7T05bRWmMp4LMvOLYmbQ11shd1+BdyLLWsVz+udHq9WGhAgQfHfKLo6akLnXx4Gx8 V/ToS9n/gblMMMjdayrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgNfH-00AOqs-68; Fri, 29 Oct 2021 08:55:07 +0000 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mgNfB-00AOot-Tw for openwrt-devel@lists.openwrt.org; Fri, 29 Oct 2021 08:55:03 +0000 Received: by mail-ed1-x52f.google.com with SMTP id g10so35919256edj.1 for ; Fri, 29 Oct 2021 01:55:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gSWpmX/pliEUAtCErHt3Kn4IoAyuev4I1C+ZD2UZlJY=; b=Zn4mQsv3x/O/WKI5b6Stlir3dnzSP0I6Wwmg8Q4aSIBtF8V0HSu4MtT/oyZn4idkAC X6B+wmHeFa1NBImVHdQz1LT1lyLxO4XurZMpgxeijnA2GO8Dy9vyD2oHQHWlfZOfhViV PchTbt74HBNUlZ+tNEOXuvuOBD7UTXiRni6ckCR6ba8G+oAnt28l3WTldRy7AjJCtvsz 78xxnTvWOGrdRD9Bvmq6eZZRr10JuS2tK2nD2nFGj+zUAbnZ+L5i2wgVDRjLcW/RhFZ0 DM/FMbwXdkbkT+ZhKMpvsZyWU3+f+2Dx1owkRWkOwI/yLh2gDq0bWiWl0oebchP4POxI OzXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gSWpmX/pliEUAtCErHt3Kn4IoAyuev4I1C+ZD2UZlJY=; b=iLPlCHrUgeWepIzCpv1ADlH7BNFeqKzgPkrkeHpSjSuqGizmJjHKoJxX6ajAWut9IZ cwUCN7BJQCTY/d+/VXobG4ACnegOCU1UA48YvG9V/yOUfy+G81MskYfyBQ5hq+h3HxNS eiuPyJ++LR0777popODiH+bvyMkus4giI86XAEzyK1yEy8lUvQp12ptBl9ommxGL+HHa GGS3jqiMj1/l3ysy8zx0Sr6HpCRo08CWs0kvJItWC5+t8Q95A2RUShicPqdQlMOM2vDF ACC3i69AinqsdUCj0Z5A5QaOalYLjk6/t20TKP7Yh6+g1beu5DSK4SnKA580fLwmHBnC RrYQ== X-Gm-Message-State: AOAM532CzexU+YYSNL+ITSzhKLvS2LSYxw3IDazOMMEph2Z7x08HKqKN JyEKwkjfncICvwWHBBbLmkjx5R/HPmM= X-Google-Smtp-Source: ABdhPJzSR31oKHY/PjN3o7XgWxA9x6xnDuy33JZxp0HiZtIugdII4igdYg0QpcRfxImnKK0ubtV3kA== X-Received: by 2002:a50:da0a:: with SMTP id z10mr13438331edj.95.1635497700088; Fri, 29 Oct 2021 01:55:00 -0700 (PDT) Received: from neptune.. ([5.2.193.191]) by smtp.gmail.com with ESMTPSA id go16sm2548545ejc.23.2021.10.29.01.54.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 01:54:59 -0700 (PDT) From: Alexandru Ardelean To: openwrt-devel@lists.openwrt.org Cc: ynezz@true.cz, Alexandru Ardelean Subject: [firmware-utils][PATCH 2/2] build, cmake: switch OPENSSL_CRYPTO_LIBRARY -> OPENSSL_CRYPTO_LIBRARIES Date: Fri, 29 Oct 2021 11:54:44 +0300 Message-Id: <20211029085444.687583-2-ardeleanalex@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20211029085444.687583-1-ardeleanalex@gmail.com> References: <20211029085444.687583-1-ardeleanalex@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211029_015502_042190_72413019 X-CRM114-Status: UNSURE ( 9.01 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: OPENSSL_CRYPTO_LIBRARY returns just the full path to libcrypto.a OPENSSL_CRYPTO_LIBRARIES returns also any other libraries required to fully link an executable with libcrypto.a. This can be -lpthread, [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:52f listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ardeleanalex[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "openwrt-devel" Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org OPENSSL_CRYPTO_LIBRARY returns just the full path to libcrypto.a OPENSSL_CRYPTO_LIBRARIES returns also any other libraries required to fully link an executable with libcrypto.a. This can be -lpthread, or -ldl, or something else. The FindOpenSSL.cmake module does a good job of identifying these dependent libs, but the OPENSSL_CRYPTO_LIBRARIES variable must be used (same as using ZLIB_LIBRARIES). Signed-off-by: Alexandru Ardelean --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e206a2..f406520 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -62,7 +62,7 @@ FW_UTIL(mkedimaximg "" "" "") FW_UTIL(mkfwimage "" "-Wextra -D_FILE_OFFSET_BITS=64" "${ZLIB_LIBRARIES}") FW_UTIL(mkfwimage2 "" "" "${ZLIB_LIBRARIES}") FW_UTIL(mkheader_gemtek "" "" "${ZLIB_LIBRARIES}") -FW_UTIL(mkhilinkfw "" "" "${OPENSSL_CRYPTO_LIBRARY}") +FW_UTIL(mkhilinkfw "" "" "${OPENSSL_CRYPTO_LIBRARIES}") FW_UTIL(mkmerakifw src/sha1.c "" "") FW_UTIL(mkmerakifw-old "" "" "") FW_UTIL(mkmylofw "" "" "")