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 8A134EB64DC for ; Fri, 14 Jul 2023 19:24:16 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5721384768; Fri, 14 Jul 2023 21:24:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="bl72noY5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D862084773; Fri, 14 Jul 2023 21:24:12 +0200 (CEST) Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) (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 5941C8475C for ; Fri, 14 Jul 2023 21:24:10 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-5700b15c12fso21541187b3.1 for ; Fri, 14 Jul 2023 12:24:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; t=1689362649; x=1691954649; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=1dB/suYmUUgGC+GSZk1mMCqBW9r0cFboVolDnakoV8U=; b=bl72noY5/U2SUAcEt2WtZkr/RI53hen7ZSwGv23Mj7XiqkOyedAo2MsPVfF3VV3tDf zdQpIOkgmIVLvXjfMdlim3C4L+Q8WQ/xe23M/Se6A1U/sJf8g3/df79DlpheE8MRJvQW esnOFXI+zWn5mBx1q7qbSGAEP3bkh1YB8zno0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689362649; x=1691954649; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=1dB/suYmUUgGC+GSZk1mMCqBW9r0cFboVolDnakoV8U=; b=Bp1EWNoDQVGTE+e78fCqnnwWF3tOQ6+qGL6uHilBdnPPgav4woeHLah7TTd2b00nHZ EW8spJCKf2IVC5xanDY7SLAAoCHogIK1njKanCjbcTXkyH1RbHweeoWuYxp0IwKsdN1P pCPS5DS99QrKDLdrfA4e/i7r8lvYUzPrEgFPSIsAjkljB4lpuyf32A1O88AMxFTslPdD IHE61SqACVFyqF+Pnj/sYkySzRHKdxN7p9ZRj28Yv/O+rfNg805aNzEUoMhTLZIuFTRj P824D7+g9Xgqwfx2UwqEO+tnzZcJtV0O2pAXSA0t8bEmVFVd++G/Pe3ZO0GHTW9oZD0U 7qWg== X-Gm-Message-State: ABy/qLbXJ4P3k+BObQG0t2DQAIcaZPhm75/PC+wdp1XmyOTBRimJnvf1 irwuvqcsx9DOSN9AJOOA5mE2gg== X-Google-Smtp-Source: APBJJlG6Yz5IAnJlbU7JuGE2qg3/qv83m3ERnEKdP9fxpuy9d/Ij4sTAhgKRxjCMvIO13eFetWZ+Fw== X-Received: by 2002:a0d:c8c3:0:b0:56d:5272:d540 with SMTP id k186-20020a0dc8c3000000b0056d5272d540mr6152666ywd.46.1689362649088; Fri, 14 Jul 2023 12:24:09 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b00-6400-24ee-6309-f4be-c2ad.res6.spectrum.com. [2603:6081:7b00:6400:24ee:6309:f4be:c2ad]) by smtp.gmail.com with ESMTPSA id i16-20020a819110000000b00576beffe858sm2465890ywg.97.2023.07.14.12.24.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 12:24:08 -0700 (PDT) Date: Fri, 14 Jul 2023 15:24:06 -0400 From: Tom Rini To: Ashok Reddy Soma Cc: u-boot@lists.denx.de, sjg@chromium.org, xypron.glpk@gmx.de, ilias.apalodimas@linaro.org, rfried.dev@gmail.com, seanedmond@microsoft.com, tobias@waldekranz.com, sr@denx.de, john@metanate.com, michal.simek@amd.com, git@amd.com Subject: Re: [PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD Message-ID: <20230714192406.GA360784@bill-the-cat> References: <20230709130958.7666-1-ashok.reddy.soma@amd.com> <20230709130958.7666-2-ashok.reddy.soma@amd.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Rhz+uh7VKNOQqGR0" Content-Disposition: inline In-Reply-To: <20230709130958.7666-2-ashok.reddy.soma@amd.com> X-Clacks-Overhead: GNU Terry Pratchett 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 --Rhz+uh7VKNOQqGR0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 09, 2023 at 07:09:57AM -0600, Ashok Reddy Soma wrote: > When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors > are seen as below. >=20 > cmd/thordown.o: in function `usb_gadget_initialize': > include/linux/usb/gadget.h:981: undefined reference to `board_usb_init' > cmd/thordown.o: in function `do_thor_down': > cmd/thordown.c:68: undefined reference to `g_dnl_unregister' > cmd/thordown.o: in function `usb_gadget_release': > include/linux/usb/gadget.h:986: undefined reference to `board_usb_cleanup' > cmd/thordown.o: in function `do_thor_down': > cmd/thordown.c:41: undefined reference to `g_dnl_register' > cmd/thordown.c:48: undefined reference to `thor_init' > cmd/thordown.c:56: undefined reference to `thor_handle' > gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-ld.bfd: line 4: 8485 > Segmentation fault (core dumped) $CC --sysroot=3D$LIBC > --no-warn-rwx-segment "$@" > Makefile:1779: recipe for target 'u-boot' failed > make: *** [u-boot] Error 139 > make: *** Deleting file 'u-boot' >=20 > Add dependency of CMD_USB for CONFIG_CMD_THOR_DOWNLOAD to fix the errors. >=20 > Signed-off-by: Ashok Reddy Soma > --- >=20 > cmd/Kconfig | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/cmd/Kconfig b/cmd/Kconfig > index 02e54f1e50..b44df9d67a 100644 > --- a/cmd/Kconfig > +++ b/cmd/Kconfig > @@ -526,6 +526,7 @@ config CMD_SPL_WRITE_SIZE > =20 > config CMD_THOR_DOWNLOAD > bool "thor - TIZEN 'thor' download" > + depends on CMD_USB > select DFU > help > Implements the 'thor' download protocol. This is a way of This isn't right, and removes the command from s5p_goni. The issue is that CMD_USB is for host support, and this is a gadget command. Likely the best answer is to make this depend on USB_FUNCTION_THOR, or select USB_FUNCTION_THOR but depend on USB_GADGET_DOWNLOAD. --=20 Tom --Rhz+uh7VKNOQqGR0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmSxoM0ACgkQFHw5/5Y0 tyyhVAwAmNtzhW05unGSpINFWJYWE+FRqc8UMZSqHQKKLAqfEf2r2d5kasBcZl0C gx3NJk7WqRqvS0HiNdTYbMsTmcxKnjChjS1LEG0HSWXNAzgVgVTYXb7m/9C6f8kI /YhoHYZfc59VXw+GxMPiCGSQ+DqhEYT5VQ2APOnz8hq1fXIuFux4Oe0BXgrzgLWm 0qqXg/3cnixcCbPAXaxlXhBm4kqQJGn7eAERfe2bHoVHQw73dPe3jgsv50A/imzs L2BtXTd0oUkp5QlUdSfM60C6Fa0lHRKIKUbLxZJo6hE6kjM/GOnj1zWGV2Nm7Jpn VZVfEXm6Yzg6aTgB4yYKHAJ8MyPdRqrMcGuhKUfs1Kt85JU/LoaeaBNHeROfD1yU Iu9mGcZhAqnnGYtlXG4QHlWpRR1OnRJYJmzkgfh5BHmn87ZGQClaFZBn9sdoFuB/ 0U1/jKj5CReLwFcoXtUzU9ZQEZ46o+uuGBVRLKFgSGskXrGQM2/OyWk/0+dg8G1F f2jzH++w =NQPw -----END PGP SIGNATURE----- --Rhz+uh7VKNOQqGR0--