From patchwork Tue May 28 14:09:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1940571 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=gHrMoCW3; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VpZHG4xgXz20Q9 for ; Wed, 29 May 2024 00:13:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4D6A08850F; Tue, 28 May 2024 16:13:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="gHrMoCW3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6788887D70; Tue, 28 May 2024 16:13:11 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (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 5828288523 for ; Tue, 28 May 2024 16:13:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=raymond.mao@linaro.org Received: by mail-qk1-x735.google.com with SMTP id af79cd13be357-7948b768497so27702885a.3 for ; Tue, 28 May 2024 07:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716905588; x=1717510388; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qf2APuE+yx+tCZ+epmFmcnRLyTR7ef8aF9rr/PJMvTs=; b=gHrMoCW3hnCAbfzjUaILf+TMxD3dQr2kSrUsHG7QvAfKyAlr1ji7zaTSjCfmsFqMPp EwzRX3BINx7ASrA6edBDxRmY2CsRLuFxxRLkdlhK2LlDuDhlHDbCN7icfW+Jrk3x+3UZ Mw8HzP7aPDxpflmNJuRk16/J0nj5jpiulldfY5WBPlZX3dsPv/i33z2yWBafN+sR1NsA FWGInohlS3Jd5z3PeLaag3e9e6yWKuPaOqvOVsAPGQqbnNXmtLgSf3QUjlszJbGMqqsb DQOibZaRRd0ahgtLWEg5jZCINI7cgx/XyOovEr1lUfQqF+jlS+YqdU6fdYPoDc9nWNOv LoRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716905588; x=1717510388; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qf2APuE+yx+tCZ+epmFmcnRLyTR7ef8aF9rr/PJMvTs=; b=qOm51D2GtiE4D0DgaUYHghVluUluthIpichGFkSn3RcBkMbIuit8KggLx1kuJU4Xbw QyHtXUtVN3wPjfJvkExXv5dn3TADRSD0KJn1j91/hFfDL6vtZ5+65Cox2BnGWvefifzR jsW+lGrFeW+ebLC/0id80yyt0vjaMyqvt5JsteweLpv/iOIIEH/W150CU4v45xYIxcr4 ZvNIYzAOteAMveqKPvm+Hwxiwc4SXH5ua8S+P1z3d4j1ZbEytyjjpWXoe2VETwnGRwrA Tm+VtThCeDRy6qXhGUdEA2yneEpGf1UoP1bU9TggM2N2GgKDf9iXs/ALmwR/L72sBUw8 59mA== X-Gm-Message-State: AOJu0YxWel6bylzWU0J48lOch//mp+adYmew8uREl217nlyxkkks9veF kK25yWIk9tQ7Mx3N8/vxi4nd+NJsdrNv4i78Gziau/0TiFminkyB9a9EnwCvWcO25M3IFs4gEST tuRY= X-Google-Smtp-Source: AGHT+IHldt58z4g7y513IEP57bz8puO2lf1+SrJ9M6I9yecweKO1MMJSbvOcpMe7ez0NQaJLrE2pMw== X-Received: by 2002:a05:620a:4d09:b0:792:93cf:b91d with SMTP id af79cd13be357-794ab096e86mr1118984985a.40.1716905587941; Tue, 28 May 2024 07:13:07 -0700 (PDT) Received: from ubuntu.localdomain (pool-174-114-184-37.cpe.net.cable.rogers.com. [174.114.184.37]) by smtp.gmail.com with ESMTPSA id af79cd13be357-794abcc5844sm381033685a.53.2024.05.28.07.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 07:13:07 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: Raymond Mao , Tom Rini , Stefan Bosch , Andy Shevchenko , Michal Simek , Tuomas Tynkkynen , Simon Glass , Ilias Apalodimas , Leo Yu-Chi Liang , Andrejs Cainikovs , Marek Vasut , Sean Anderson , Heinrich Schuchardt , Jesse Taube , Bryan Brattlof , "Leon M. Busch-George" , Sergei Antonov , Igor Opaniuk , Ilya Lukin <4.shket@gmail.com>, Alper Nebi Yasak , Abdellatif El Khlifi , AKASHI Takahiro , Alexander Gendin , Bin Meng , =?utf-8?q?Vincent_Stehl=C3=A9?= , Oleksandr Suvorov Subject: [PATCH v3 08/25] makefile: add mbedtls include directories Date: Tue, 28 May 2024 07:09:19 -0700 Message-Id: <20240528140955.1960172-9-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240528140955.1960172-1-raymond.mao@linaro.org> References: <20240528140955.1960172-1-raymond.mao@linaro.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean Add the mbedtls include directories into the build system. Signed-off-by: Raymond Mao --- Changes in v2 - None. Changes in v3 - Remove changes for PLATFORM_CPPFLAGS. Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 79b28c2d81f..2e7eb51401f 100644 --- a/Makefile +++ b/Makefile @@ -829,6 +829,12 @@ KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g) UBOOTINCLUDE := \ -Iinclude \ $(if $(KBUILD_SRC), -I$(srctree)/include) \ + $(if $(KBUILD_SRC), \ + $(if $(CONFIG_MBEDTLS_LIB), \ + "-DMBEDTLS_CONFIG_FILE=\"mbedtls_def_config.h\"" \ + -I$(srctree)/lib/mbedtls \ + -I$(srctree)/lib/mbedtls/port \ + -I$(srctree)/lib/mbedtls/external/mbedtls/include)) \ $(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \ $(if $(CONFIG_HAS_THUMB2), \ $(if $(CONFIG_CPU_V7M), \