From patchwork Fri Sep 6 12:33:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsOpcsO0bWUgRm9yaXNzaWVy?= X-Patchwork-Id: 825971 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp778985wrb; Fri, 6 Sep 2024 05:37:50 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUBGn5Ba3J5wwx4UfbQs0NEImbCy5lll0c2i2Tn8gwgTxjQ/Jouc1XNdfvkueiF4ml+HHMaTA==@linaro.org X-Google-Smtp-Source: AGHT+IEBQvu8Ae2/Q7LzCbachk3E6tOet4l7BK8kr+8buJ8s5pdp5PsdS4MPoLRWySldDJCOZk/X X-Received: by 2002:a05:6402:35ca:b0:5c2:50a2:98a7 with SMTP id 4fb4d7f45d1cf-5c250a327e7mr13316019a12.4.1725626269892; Fri, 06 Sep 2024 05:37:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725626269; cv=none; d=google.com; s=arc-20240605; b=A4vgvGQPl7K5tcLVvvz3303/6GRH9KOOZNko6qSTJ32zWMCn8AwOSGOZQznwaH6+yT jpYVmnUHNu1rTp32RXGxgmpLmlh5lWUzlM7pqbvJC1IR5WjBPNX+pFnM6q42KvLFQJJ9 gjKQAAmu6vC13blrW/isPsESIkRcZTGcORAnN8kAlgHUqaM9FMfbOmZUk4xjvZxpAAEe 8WlwWZoAodxOymcDoSq4wsLR389D+/8TPb/hEMjwigzMnoot1CyD7bPQgLC5/2tmahcD HmBWgMVc5a2XTEWaq8COJuT8EOkyrVKZWL9zWhtYD40hww3YqMVdD4sBJDUVbymTbGqS sZjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=fh3grNxHwkzrFLR1hmhMLj1tjcCtJoKghH8CFKsFGls=; b=VkCuoT1rlRHx/vsJVXrXjO2+k/QlhQtx227ojzqJBn8yXZzKkN8W5NzZBVRWgI0GCg qgo/sDr2X8M0txURbZSZgnbjfpPJQ7b3oEFCKfvcQXiYj9IMsjI4f08B8MdMsv+JuB+F XDWhDhwmR9nSJrLNSFmmzcq3o0zqzmgJJuUFC0RGEhzkSeL64qZuIUQTlNWUg5SCrh1Y akrI9tNnu3x88Uk54x9XYtb1F4l/A6TBli7YlIu12IRsQrQ2JFITT9HgzVNgih/tqmJ0 ToJgPeMPAp6AhWZtJpLRow+XuC24J390n7B3OI/LTk3fKeTVo55X0PL9+JYQtYJFe7bk 3VPw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZoDwgqZV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5c3cc6b6e22si3042471a12.607.2024.09.06.05.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 05:37:49 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZoDwgqZV; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 9202D88D04; Fri, 6 Sep 2024 14:35:29 +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="ZoDwgqZV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6D00C88D10; Fri, 6 Sep 2024 14:35:28 +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-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 56F8388D45 for ; Fri, 6 Sep 2024 14:35:24 +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-wr1-x432.google.com with SMTP id ffacd0b85a97d-374ca7a10d4so1257985f8f.3 for ; Fri, 06 Sep 2024 05:35:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1725626123; x=1726230923; 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=ZoDwgqZVNo70MB6tB+j6BY+Q6i6ZOmGgTsK+g5CtqdHGUN/cX38/lGco2nszEYlqJ+ QGLYiPxeM/YttlnkL+gfNXQXwFcxzXy8P9t4UxfKrmQ7aJ8caQQLWrmuUzIPKj6pL3LU blfIdWR/M06CJRUZrGjBNiKQLQd0nSGcqsDPArCUviVUlcp0WcBirUDpZPpy+J8Wkkrt 0vt6zxbccqHeKCgNB1MyVKWgXHnZM7IgAQfPTMnWwr6zuD8a5HIqzWNbe1FkzegevkQE mEMszqtd2AePSUUX7SxbWW/bLgWe5zrQ2LSByLALcSWiXzxNympOuJ+p6J8pTEw9hryy t1Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725626123; x=1726230923; 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=Sa5bh+45fm9YisuryUS8anAs1rPi/3W2BA3mmBjvRt9Bl65jaXk3lG2kJM463oEHvv FWO1BegbkS+TKhgHCHTHcxddTCPBf5ayZk/9GjkAbuiM9BfNSTScytYmFHP0FRDMZHGi KZzK2SmA5sr4oUggAwHucvATKOrEnc3oGTaQNwv/waGNhnzk0ThA74MBOZETs/UBJNP+ XNiKrlVT+F1eAvMDIIIDm0AkoBPHYz74ccmGWdgG3aChB9hqsGVnn7h1vsD1EQ8Dsknf WdMm0a2+SDo+RcH1wTzyqa6lO+uR/6C2LpOYLqW8pn+iWlLlv82WmkiieoYqTsUVgrqC HHyQ== X-Gm-Message-State: AOJu0Yzt5SXIEL5m779JxtOuWm0UKbmbK+QG102hL7zLrgnVztZhCcKk 9iov8E8gfRX82vW9G6oe5rnSQ+J2yx/dZWmiw8f2aFAs9ra0Uo44m+0iY6DKp30mu1uYtOmydiQ mgAaTjVeQ X-Received: by 2002:adf:a155:0:b0:374:cb17:c62f with SMTP id ffacd0b85a97d-374cb17c6b4mr11172386f8f.11.1725626123543; Fri, 06 Sep 2024 05:35:23 -0700 (PDT) Received: from builder.. ([2a01:e0a:3cb:7bb0:1ff1:215c:d8a4:9f99]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ca05cf0e8sm19640125e9.27.2024.09.06.05.35.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 05:35:23 -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 , Jaehoon Chung , Heinrich Schuchardt , Jonas Karlman , Miquel Raynal Subject: [PATCH v10 21/25] Kconfig: fix undefined symbols (g_dnl*) when NET_LWIP is default enabled Date: Fri, 6 Sep 2024 14:33:37 +0200 Message-Id: <9462e25d33d93c670a882e6ee329ca7e6668d7ab.1725625913.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 Reviewed-by: Tom Rini --- 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