From patchwork Sun Jul 9 13:09:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ashok Reddy Soma X-Patchwork-Id: 1805262 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; 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=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=R3Sx3IHy; dkim-atps=neutral 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 (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QzSDn3ZMnz20ZQ for ; Sun, 9 Jul 2023 23:10:49 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2BF06865D3; Sun, 9 Jul 2023 15:10:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.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=amd.com header.i=@amd.com header.b="R3Sx3IHy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A437865B5; Sun, 9 Jul 2023 15:10:29 +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_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on20608.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e89::608]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4D209856A7 for ; Sun, 9 Jul 2023 15:10:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=ashok.reddy.soma@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WaxCJsbAgEbAZSsG29CTG7iN8I1JAPbq9vqiCOUV3tQHL1PD/6B6tLqA2s/y4ctx6eG3SSR2DafAas5vDE+yPYYRXbvc2T3qwTBJYgWMZfwILbnGT0rqb7vGVvuN0xipZve4ZN9vDk5UzNJJ92gM0HH22bFPdiamUumda/x9dR8DhQY4CMeE2UxMb23Fi2XJt3gOQtyWIlAPVeu/Fnll/NGlVoWX1nNNdAyNNmCr3WioxU3M/3piTMhXc1A8K8yQLGEqKjXEExb0V3d9fmUn0hky17U1upGc5W6r5/PlWdJA4h/oSmTg8tNfOJ+cuhjd1BDLFt9zT/sgwJ9XImRN0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=r4nmLgoopiD66X+jQx/aH9Ez/iOpTrV6T+yiAONyUc8=; b=GiyuUw/iABp9sDcrHVXo+faYfsIzsUKUvpKzqcgu/JebjXL+RpyjMTXvUp5M/bRzZXFZvpVPLO9QDAe/3RME5EBPRygdQn4eTZD3kKew0AjodH8cP8YRxktyAMOLh/H34yb4RQnChcddhizw3W83J05uDu0Om3zSqObVDx4Y6Q5GIwKWxsUQk6geKM29nS8MxhlmriPyQutw12/38bCe7dE+BBax7/AYU/tuI5CFZLYtDId/DQg9fz9Hcp8ArnjDt4XIErfH4b3tlrWzBqXBZAvN7MaUeRaztYXo7ZkUXZNEdcb3FF2+ArKEMpZXhMdvwqbBiO8D7MoAiuvAfcegtQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r4nmLgoopiD66X+jQx/aH9Ez/iOpTrV6T+yiAONyUc8=; b=R3Sx3IHyaxTpMfrU1U2USWbfHEDRa3XJBiWf6youWeI/nQZBdRJD7NE2O/qsq04KLKPmjP0OKhIcm/wM2ciSNbzkTSYNRioZrhOS40kJf9kBp5YXBl19XAfRdyu/4yOeXTAIaKtsZixedwzTLMHm5WtF6hrz0tR+9tryBXPmqCg= Received: from MW4PR04CA0309.namprd04.prod.outlook.com (2603:10b6:303:82::14) by LV8PR12MB9451.namprd12.prod.outlook.com (2603:10b6:408:206::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.26; Sun, 9 Jul 2023 13:10:16 +0000 Received: from CO1NAM11FT021.eop-nam11.prod.protection.outlook.com (2603:10b6:303:82:cafe::fe) by MW4PR04CA0309.outlook.office365.com (2603:10b6:303:82::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30 via Frontend Transport; Sun, 9 Jul 2023 13:10:15 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CO1NAM11FT021.mail.protection.outlook.com (10.13.175.51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6588.18 via Frontend Transport; Sun, 9 Jul 2023 13:10:14 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 9 Jul 2023 08:10:13 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Sun, 9 Jul 2023 08:10:13 -0500 Received: from xhdashokred41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Sun, 9 Jul 2023 08:10:10 -0500 From: Ashok Reddy Soma To: CC: , , , , , , , , , , Ashok Reddy Soma Subject: [PATCH 1/2] cmd: thordown: Add proper dependency for CMD_THOR_DOWNLOAD Date: Sun, 9 Jul 2023 07:09:57 -0600 Message-ID: <20230709130958.7666-2-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230709130958.7666-1-ashok.reddy.soma@amd.com> References: <20230709130958.7666-1-ashok.reddy.soma@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT021:EE_|LV8PR12MB9451:EE_ X-MS-Office365-Filtering-Correlation-Id: 02829550-1cb3-47b8-33c3-08db807dd5c8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7Em6aCpZuFOiNQ/9jLolG0IQh5pdd+sN3vyyhtEiwtd5AUbLGSBcwngT//b7llMJyT1+5/EneVEr7guwqi3cZjzDkEF5pO5XkgYOHzoDdG193HGY5Ao4ZnZ4jmSClF9vT9pfBYJVPxBwYh109O9ppS0wQ8PPvY3h7wwv8QDK0iNHgfmt7d3gWsso2nZnzB4pEyuEhvS+gKBRikIAOFdqb4aFi20dOaouDQ6hW+LLt0tZ6fbDg9n/cAgobeGSuXf3mShi1HBn+llMvsMjVavYAJn7/K2SQxCmxAOP7tcoQueQxVMEsQ85R6tJngGZkYmNNIapCIYJrvGdxqIIT/4a3vQ06+ez1VrQ8Jx4njKDlKQgFrtiTbBQbaNkucSlZKEZzPieGQgov/bPxXkFFGvUKHOY/T1d2YskpIoLJtt1sXhjUbZz7/rg2+460eXgNq/sLLhaVKqrbryO5AUu2DcqbprRa3XqeiKMMC0ZiUXXyrRTLcETlxXQDqvaznuvXtfOJ1xeCyBULwxGLH7q00BjSIM4IhXW+jw6WQbha4dT6DDaxtC/pRzgMh+LgVRPMYu1UEa0tg289v+ydtp+ni1xrrl1ew6D6+5ai3AbC8xAaR1dMktB4siPhTlyJJuJ2xS9Y8wOy15+KvXjNQWG+5d7/yPAt9J8SftIBd+/ZMQNHSkpLW2pX/DHqgM3eKcMtnP2oeo3j7/vweThf+nu5lNWx9CbHge58SyudPe02lpkkCH4ClB3P4jH4ASlMkUOzJmTn+BPhYLt6BamTh4euyUKfQ== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(346002)(396003)(376002)(39860400002)(136003)(451199021)(46966006)(40470700004)(36840700001)(6666004)(40460700003)(4326008)(6916009)(70586007)(70206006)(356005)(81166007)(86362001)(82310400005)(186003)(2616005)(26005)(1076003)(36860700001)(82740400003)(83380400001)(47076005)(336012)(426003)(103116003)(36756003)(478600001)(40480700001)(54906003)(41300700001)(5660300002)(8936002)(8676002)(316002)(2906002)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2023 13:10:14.7429 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02829550-1cb3-47b8-33c3-08db807dd5c8 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT021.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9451 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 When CONFIG_CMD_USB and CONFIG_USB are disabled some compilation errors are seen as below. 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=$LIBC --no-warn-rwx-segment "$@" Makefile:1779: recipe for target 'u-boot' failed make: *** [u-boot] Error 139 make: *** Deleting file 'u-boot' Add dependency of CMD_USB for CONFIG_CMD_THOR_DOWNLOAD to fix the errors. Signed-off-by: Ashok Reddy Soma --- cmd/Kconfig | 1 + 1 file changed, 1 insertion(+) 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 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