From patchwork Fri Aug 23 13:48:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Forissier X-Patchwork-Id: 821737 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp388423wrh; Fri, 23 Aug 2024 06:54:58 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXLbjV+TuFJJA3qHF9SH2l375PLfjOCWB9IUbU9342cI2CDWalstBC7ZBPH6oQYFJg25w80pA==@linaro.org X-Google-Smtp-Source: AGHT+IH0C28xOe1ZtCWzcvWYnlqFedv7/yX4ohsoMsek/ORQgIU83g0ibOulJdB67dWEn6CDY2P4 X-Received: by 2002:a5d:64ea:0:b0:365:980c:d281 with SMTP id ffacd0b85a97d-373118e560cmr1921666f8f.45.1724421297900; Fri, 23 Aug 2024 06:54:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724421297; cv=none; d=google.com; s=arc-20160816; b=QrtyEKIp4sdtqwYjLom2JyaoWaJoQldUQypp1M+2dhgx5UliV0kc2S7mZh4wdn5g9m f51aLN+bg6OGAZEZ9Fcuk8V13exFsFrKNQAgz/uBFDUGrctJ+gGfpGumpZZrZxhLlAKr BdNJ4xFm2pAQlKLyy8z4RByn6E99nGa5+h+RW1/bk2LhOhxtkUvlk6BMvLj5SvHFMdGz zDiNlQITHhkRHq3jsY8VYiAUiYIsyFPCGHDA7p2XrqmUnhMPq2loH6FPiv3yAYrBjZp/ XiDj0+I0XJSuQhxwDMCtORWUZRQERR51sogphaUAZ4veFSpRb0vQVwx/oIGnRxO2hVCz VNMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rapHq8mT0Fevrq/9JxTGXRXySaMIV1ZV1VBfbr90Q3k=; fh=AtwNuI/9+j5QelDnvRWlVtpMPpCcYdPifWW3DzxjkF8=; b=RiCA6xdMHZVwQ7wXyKxhevUPdpADpThcG5Y/vhOmFlPtjRiiHr2+2bNAxxqXqMb+f5 rniD8mdCHei7k565uhFLJ4KXbbkIO5fc4in8aXyF1iRPMDkaLCRcHNZEFuV453IO7yaz 1YMvVU/sXGYsg6WePhkL2Dez1fJE8EYGs8J0CmKeGT+1yXo00Zr1NIH2lvc3gTfH4QdF ONiFXPMjFqHenfaUBCEwHy8p2BDAN2XZKS0G90PYh45dmwX8+t0e+LjLqCbaDGKEaCo3 XFJGDx3DbHACmFX1sdiZ3DALLYPZ0Orw4bfmaB28CQlC9qfuueMC37ztvIezZDC5BQX3 fFZQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GpMQovna; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-37308117b2esi1527730f8f.99.2024.08.23.06.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GpMQovna; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E8B8E88C4A; Fri, 23 Aug 2024 15:50:19 +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="GpMQovna"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A21B488C70; Fri, 23 Aug 2024 15:50:16 +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=unavailable autolearn_force=no version=3.4.2 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) (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 7A97D88C90 for ; Fri, 23 Aug 2024 15:50:14 +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=jerome.forissier@linaro.org Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-428e0d18666so15104705e9.3 for ; Fri, 23 Aug 2024 06:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724421014; x=1725025814; 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=rapHq8mT0Fevrq/9JxTGXRXySaMIV1ZV1VBfbr90Q3k=; b=GpMQovnaZ+W/+EG3QtKwuC1h5pLn/93M4HEYMRXgYqo6yGS0spf2Rb2iKqto9bZg6y Z1BtOPiwVEmEGmmh/fh8C+ciEDHENlO+kNZV0iLfIy65ZPLrqq9QfNFIExnc18q9B2WK b5iQET+SQIEx4cyqU+7SfcXgP5Z/xhgd6+y7GNZACPDcxnzPiqtV2hKen1UBX69M8ZoP 5Vj5FopOqu2DN9ghf1vygwkRu168eyq4dbuhZaC0Bl/2O9PQBLy8Mo7eqJrtXoNpFFtO Tg4nt6GeZ+CrCQ4S3V+v9LkaAUhD/aHGBBT5jDg/8ct/tQg4CZeDq5lXtukvR6E62psh qTwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724421014; x=1725025814; 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=rapHq8mT0Fevrq/9JxTGXRXySaMIV1ZV1VBfbr90Q3k=; b=psrNOf9DTwh0Swho2zOrHrXj1KRq1BIs51K4ewiHxd3pP3vdWc1osdfgqgWIlEgN1d 0SmFdS51FXna4Lk41GhrQM9VwL+QUY2DJBsQDwXH0k1GItWlulGw3iHb9S9LDrA04XpF xjOrwa50gmJLUpXBzyvBkIQzeIdA72NpkTLwzNd1CWyHi9YU5UkVitj/oq7MNphuZpQ7 3R/lWysZqYFWd00xy53DA+wWaDh6Wt777bYfcetJy/EHOL+7LyoC02U1+5ZgQW9nAMPO lH1uodG6tpAgbe4UEMRROVucWtgI1Ykk5ii27qldb8ITEnSCgjzjNxCRqvqkzW0wzesu 7lVw== X-Gm-Message-State: AOJu0Yxo4xAkHqXo/Wh6uiNHCt9JX0ONo1o7tDIKVkFcSb6gJmZT5X3t /Imw34GSVOCGAOh9KApf0IVu3e1gCuaLmCw/BK79HbRRb6V0SNrKSnwaz4O3GTi/wOszJnTgpLB wRuexSnvI X-Received: by 2002:a5d:6d06:0:b0:367:8fc3:a25b with SMTP id ffacd0b85a97d-373118e551emr1627876f8f.42.1724421013698; Fri, 23 Aug 2024 06:50:13 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:e668:dc94:35c7:8064]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-373081ffb40sm4201665f8f.76.2024.08.23.06.50.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Aug 2024 06:50:13 -0700 (PDT) From: Jerome Forissier To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Javier Tia , Raymond Mao , Maxim Uvarov , Tim Harvey , Anton Antonov , Jerome Forissier , Lukasz Majewski , Mattijs Korpershoek , Tom Rini , Marek Vasut , Heinrich Schuchardt , Jaehoon Chung , Miquel Raynal , Jonas Karlman Subject: [PATCH v9 33/37] Kconfig: fix undefined symbols (g_dnl*) when NET_LWIP is default enabled Date: Fri, 23 Aug 2024 15:48:37 +0200 Message-Id: <49c9454c4ee803376d59233a712ba04df98b9ec5.1724419624.git.jerome.forissier@linaro.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: 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 Fix for link errors on am62px_evm_a53and other platforms when NET_LWIP is enabled: common/dfu.c:34:(.text.run_usb_dnl_gadget+0x68): undefined reference to `g_dnl_clear_detach [...] common/spl/spl_dfu.c:29:(.text.spl_dfu_cmd+0xb0): undefined reference to `run_usb_dnl_gadget' - DFU_OVER_USB compiles common/dfu.c which calls g_dnl_clear_detach() which is implemented in drivers/usb/gadget/g_dnl.c which needs USB_GADGET_DOWNLOAD - SPL_DFU compiles common/spl/spl_dfu.c which calls run_usb_dnl_gadget() which is implemented in common/dfu.c which needs DFU_OVER_USB Therefore add these dependencies to Kconfig. Signed-off-by: Jerome Forissier --- drivers/dfu/Kconfig | 1 + drivers/usb/gadget/Kconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index d034b501360..7de629f103a 100644 --- a/drivers/dfu/Kconfig +++ b/drivers/dfu/Kconfig @@ -8,6 +8,7 @@ config DFU_OVER_USB bool select HASH depends on USB_GADGET + depends on USB_GADGET_DOWNLOAD config DFU_OVER_TFTP bool diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 03fe3bca197..ce9364c3172 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -324,6 +324,7 @@ config SPL_DFU select SPL_HASH select SPL_DFU_NO_RESET depends on SPL_RAM_SUPPORT + depends on DFU_OVER_USB help This feature enables the DFU (Device Firmware Upgrade) in SPL with RAM memory device support. The ROM code will load and execute