From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 027F3C19F2D for ; Sat, 6 Aug 2022 11:23:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 72125842E4; Sat, 6 Aug 2022 13:23:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="Bl9Wclk1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1EECB841B0; Sat, 6 Aug 2022 13:23:20 +0200 (CEST) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 01D8C842E4 for ; Sat, 6 Aug 2022 13:23:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heiko.thiery@gmail.com Received: by mail-ej1-x62c.google.com with SMTP id c24so8969745ejd.11 for ; Sat, 06 Aug 2022 04:23:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=xcoXbacgW99pZVqyURYIGxNAYhM7eKSkfPEb7gUPDII=; b=Bl9Wclk1i1Rd3n4gsNHBdFExxfL+Vm7wvVECpVhKr5iEqTfokEeXFGdCkqQnGZOQVe Zo2AQ+DV1po6G7BR0raPv44GwM+XcwyuouLo8UluG/O79TosK31y473JsrxWPWMYiM/G 94PxVKt2jN/yEfzYYLFYGPUx3Y/h+eA4lOvShfUFzyBEezkMPa8xwTql0RF4pbEO89dz DSm0qL7EFcKGj02dqMrLGEEQ9sM1DhrAP0C+d/bQW/HXQ6xsDw03WQXvP2U0SAaq12i8 4vWiCJOOrM0dMy8TVHIRTiSqeurZfpps2zUZvfD3vwVN5OK1PfNt2vvWosQCQuQryHB2 ZwFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=xcoXbacgW99pZVqyURYIGxNAYhM7eKSkfPEb7gUPDII=; b=MVoSdnQnHL0aUS+l4OOYSGIkB9xdg0M+52f2ZWB7z+/E44SRGUbXxzzE1hN0Vj9WHg DhG1aNSHg5fhuPPbZbFacR09moLpSHIHdLGFaiBl/CR069I/wnauSTBAguvjZvLRDwy1 DHW391te6Ti+pRlpRTAdOhZhjngGhWxMI5IGQh9xdd1C8hQKagMLcv2EOjD4K+oY8YJi kjAsfjQRQaCUhLKLEyfLM7wi7wPKb72042FiATGeaW2Thqe6tjIiLVV/DPy85yE6Y6Ij W2lO8fOCnzFaOIT4ChVuFwAo69K1Jr9aioUetuyv13BJ6SvOwjB2sg14r9b0/6ctW9A1 wejA== X-Gm-Message-State: ACgBeo2zSfPYvhkqurS0uMn8sRYDJfbhH5z1C9UKYDlGdYaCReYwG8c6 uHYI/QRNKrsxSAsGI/TMis662P2rkOA= X-Google-Smtp-Source: AA6agR5GSfR6DluAnp9Vtyjv8t8BV3RE87XwS0vHQs8iIbvxlbjUSGatURirk3Efa+/6Z2pd1MVqlA== X-Received: by 2002:a17:906:9c82:b0:6df:baa2:9f75 with SMTP id fj2-20020a1709069c8200b006dfbaa29f75mr8307548ejc.762.1659784996926; Sat, 06 Aug 2022 04:23:16 -0700 (PDT) Received: from t450s.fritz.box (ip4d15a215.dynamic.kabel-deutschland.de. [77.21.162.21]) by smtp.gmail.com with ESMTPSA id a1-20020a170906684100b0072fb3704e49sm2618288ejs.46.2022.08.06.04.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Aug 2022 04:23:15 -0700 (PDT) From: Heiko Thiery To: u-boot@lists.denx.de Cc: AKASHI Takahiro , Tom Rini , Heiko Thiery , Pali Roh??r , Stefan Roese , Simon Glass , Chris Packham , Marek Beh??n , Samuel Holland , Heinrich Schuchardt Subject: [PATCH] tools: mkeficapsule: use pkg-config for each lib separat Date: Sat, 6 Aug 2022 13:22:53 +0200 Message-Id: <20220806112252.15056-1-heiko.thiery@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Heiko Thiery --- As suggested by AKASHI Takahiro but unfortunatly missed for respin. Thus I do this commit afterwards. tools/Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index 005e7362a3..3626919633 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -245,9 +245,13 @@ hostprogs-$(CONFIG_ASN1_COMPILER) += asn1_compiler HOSTCFLAGS_asn1_compiler.o = -idirafter $(srctree)/include HOSTCFLAGS_mkeficapsule.o += \ - $(shell pkg-config --cflags gnutls uuid 2> /dev/null || echo "") + $(shell pkg-config --cflags gnutls 2> /dev/null || echo "") +HOSTCFLAGS_mkeficapsule.o += \ + $(shell pkg-config --cflags uuid 2> /dev/null || echo "") +HOSTLDLIBS_mkeficapsule += \ + $(shell pkg-config --libs gnutls 2> /dev/null || echo "-lgnutls") HOSTLDLIBS_mkeficapsule += \ - $(shell pkg-config --libs gnutls uuid 2> /dev/null || echo "-lgnutls -luuid") + $(shell pkg-config --libs uuid 2> /dev/null || echo "-luuid") hostprogs-$(CONFIG_TOOLS_MKEFICAPSULE) += mkeficapsule # We build some files with extra pedantic flags to try to minimize things -- 2.20.1