From patchwork Tue Jul 2 18:22:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1955558 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=nHzLAlMF; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4WDBGg6LHRz1xpc for ; Wed, 3 Jul 2024 04:27:39 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 92946887A1; Tue, 2 Jul 2024 20:27:37 +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="nHzLAlMF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A890E87D0A; Tue, 2 Jul 2024 20:27:36 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (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 8CC4187F8C for ; Tue, 2 Jul 2024 20:27:34 +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-qt1-x82f.google.com with SMTP id d75a77b69052e-446416dccd5so21506531cf.3 for ; Tue, 02 Jul 2024 11:27:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719944853; x=1720549653; 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=zvsvYrvUSA9Ga38zikKq4gGEQHNa7JCl+6hgGGEUeHU=; b=nHzLAlMFyWhUzV3elD0wP0IvsWB8477TnJR+Dra09AjNrq5shNmId+zdMAXrp3vP3N etTpKiEpY1GQq0ZuFtf6dxz70sFVLjTpDsRnfw8d71aVkkPtzegfm7/aFEOFhfJl6kg8 3NPsN9+U6v5Ili/aPdwqk21dYIWsEiMu3ZdlyL/odPGjl9jcrCYgY2HHTPM8y51vz/Hf dK2Kj2E73NF1vA1QpzTWpWABwo5cCjDNIXa/OPYtw8q1UQFAcnj0vymYfofEiC9YYjAS JC5SvJ3sWpfpvc7l9s1k5Qwf4uVJaKS5osGAe7Pgbx14PbyEY1qlWqSjAM8kGRSI9xpR OwqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719944853; x=1720549653; 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=zvsvYrvUSA9Ga38zikKq4gGEQHNa7JCl+6hgGGEUeHU=; b=RsWmifukBL3o3EwMeRRtFkNKzNWRr6nrZnJJKJrrN6S9cgCYQoOnbVGyxYhwfHMEwF lXnK3g+NAiscKYjpJkhFrcnWNiWXVhPJwQvzuG2DRfXy2l4T1lq6eySm/x5XTOGOkX3Z TkM3W8x8WnslkWVkyCrN+XD2as2bDO6VxLE2J5e/o0KALHzHTW0FXO8qTz1oJ/JaeVFd wMU8b3nKOI9/iBlppNiC9nqkjdE0c3O/A8K5VcncsLsJSHk8huK0WuWTrUzHVRDFk3ie EcRaXPMyPCCBRMN9yjbiQG2XaR3Jfd/C0z2Udw2MovEwSz5ySg/NS/IM2g821wtVIJLW k5jw== X-Gm-Message-State: AOJu0YzpJs69B7wIsdGA7m+SSZ+X3tpfyWqZK8meo12bAoCNPul8m7IT ucwB8fM0c638qgHM7kL9hYTFelhGxaBm81FoAvYgBaRIZK6pqBjkVgqJi2WYwr3v8e7QKiRfDpw j X-Google-Smtp-Source: AGHT+IHn8gNzU8khcdbo3NxGR0dkQ9E/qiQU18rl6Dupq6w5OsS7qyfSpHMMKReUqNjG2eA59StRbg== X-Received: by 2002:ac8:5f82:0:b0:445:624:22ed with SMTP id d75a77b69052e-44662dd3be1mr142396461cf.9.1719944853286; Tue, 02 Jul 2024 11:27:33 -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 d75a77b69052e-446514b613dsm43316351cf.84.2024.07.02.11.27.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Jul 2024 11:27:32 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: manish.pandey2@arm.com, Raymond Mao , Tom Rini , Stefan Bosch , Mario Six , Andy Shevchenko , Michal Simek , Tuomas Tynkkynen , Simon Glass , Leo Yu-Chi Liang , Ilias Apalodimas , Andrejs Cainikovs , Marek Vasut , Sean Anderson , Jesse Taube , Bryan Brattlof , "Leon M. Busch-George" , Ilya Lukin <4.shket@gmail.com>, Sergei Antonov , Igor Opaniuk , Heinrich Schuchardt , Alper Nebi Yasak , Abdellatif El Khlifi , AKASHI Takahiro , Alexander Gendin , Bin Meng , =?utf-8?q?Vincent_Stehl=C3=A9?= , Oleksandr Suvorov Subject: [PATCH v4 09/29] makefile: add mbedtls include directories Date: Tue, 2 Jul 2024 11:22:45 -0700 Message-Id: <20240702182325.2904421-10-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240702182325.2904421-1-raymond.mao@linaro.org> References: <20240702182325.2904421-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. Changes in v4 - Fix errors when building without "O=". - Minor fix of the include directories. Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 07d7947c8af..fd855dbd5c9 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 $(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 \ + -I$(srctree)/lib/mbedtls/external/mbedtls/include) \ $(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \ $(if $(CONFIG_HAS_THUMB2), \ $(if $(CONFIG_CPU_V7M), \