From patchwork Fri Jul 7 08:51:36 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: 1804669 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=85.214.62.61; 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=sfaraeyr; dkim-atps=neutral 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 (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qy6bK1w87z20cF for ; Fri, 7 Jul 2023 18:52:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0D5E2861E6; Fri, 7 Jul 2023 10:52:07 +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="sfaraeyr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 39214857D5; Fri, 7 Jul 2023 10:52:06 +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=0.8 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on20603.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e8c::603]) (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 E776C863B2 for ; Fri, 7 Jul 2023 10:52:03 +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=HJ9784HZuLDLC6C3d7Y2XONiJuaDhu6Wx+5GLshOsgNhXtkXRplDbCkz6uV02rccRz9K5kbeBC6toGtXTW7A57ALu7jWNmsq8b9Lza1XGAliDS+BcgOFeLbGk36Rt+uvoUNt+mhk5QBUDGKoqAq2FsER0pqKd8eLgoUQN19oDVu20m6n9lxXKop5oaocIFuv2/FosJorl8Pok4dJpdz5Zz4t4lGhXTaIw7tmemftRmxsOo31U0ZL8hH17Coz+ah9nXtFrhltgxzP5kk0BlDIk+sxYCgoBaV+LyiaRqHJj8gI9PykHVJwi8LpFdlKOvcUq4Eo4PELTp942qM+ExhVDw== 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=1Zp8rZ0D5bWS1+PDieIlzQwJCfGeYuNtOuSZNKsRKW4=; b=QP2VlCG1Blpqx6SioxNDC0qJFTBqqWwBdxNQ9qJ6dY6Mb7HP80eCHSmBujB/LnCvo6WxDQSd6iny29Sx4xV4Q5xAQBkPY/yfoFH+R5j3j0mGdc19r50ERI7sqQMiRlEMgtmGRld/HFvnWKIYnAc9+kKB0s/LH4//4Uodvzmnil0lkDdsXTLMeudiSnTMarS3ApBsLBKGd1x7xqSAw9NuuBrXUr+VOXzRiLH5VEpt0ggNP1O+IJkqtyOEmEYjNe08LpLpPY9kduH1NtOsmtbPT5q61rue/4t8BKI6WRndTUGWG6PazH7fB+RtlyGbok0sK5+NUj9HxAph+MMSh4tMeg== 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=1Zp8rZ0D5bWS1+PDieIlzQwJCfGeYuNtOuSZNKsRKW4=; b=sfaraeyrB2tq1EdVoiNtG+ozfl0P0T6I55fqczoj87u/T52BS6EAntiEhKQNwjK4j/Tl6tmcym/yEzw91TlcZt/XB8goXVq0duwsux93mXbglRHaLExxkAEauIzfO2OJ39PDxCdVpnwvpFCffu/x9fJ0eZae4Pcjpr7+GnnCghk= Received: from MW4PR04CA0281.namprd04.prod.outlook.com (2603:10b6:303:89::16) by BL1PR12MB5756.namprd12.prod.outlook.com (2603:10b6:208:393::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.24; Fri, 7 Jul 2023 08:51:55 +0000 Received: from CO1NAM11FT016.eop-nam11.prod.protection.outlook.com (2603:10b6:303:89:cafe::cd) by MW4PR04CA0281.outlook.office365.com (2603:10b6:303:89::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.25 via Frontend Transport; Fri, 7 Jul 2023 08:51:55 +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=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT016.mail.protection.outlook.com (10.13.175.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6521.45 via Frontend Transport; Fri, 7 Jul 2023 08:51:54 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 7 Jul 2023 03:51:51 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Fri, 7 Jul 2023 01:51:51 -0700 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; Fri, 7 Jul 2023 03:51:49 -0500 From: Ashok Reddy Soma To: CC: , , , Ashok Reddy Soma Subject: [PATCH v2] dfu: Add proper dependency for CONFIG_DFU_MMC Date: Fri, 7 Jul 2023 02:51:36 -0600 Message-ID: <20230707085136.10118-1-ashok.reddy.soma@amd.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT016:EE_|BL1PR12MB5756:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b6b05d5-08f5-4bae-7c58-08db7ec76a41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xbE33BZzrUMACdUgNXMHTn4cH4SxSQVjXMQ0T8/duNOqh4hfwXrFWcxXCjXTDNc91W52AGCYjEx6HbZe7nTVmHP+2ZFp7EXOJxWl3aaN+ChePuMDVJ4AxLjTKZa/qPO9R1cC+4KAPfDmmvNukGPx3aEPMBWveT/MA9vhDrRR7ggfMm/ElTU+ZPANT0z7gMX1RMzdbtVC6kXIujgGm8edrfxv/7Vlv+k/0mA6yadCTKZWjKFRmQdzOTDWAc3LaHE2pD441aEGtV4h0Jk49IydgU+C5dTT97MSxmItEi+WWKiCGQryjj6KCUwoFnqtYgXl5xAKmjRFqby7yRpEYg9G7EDE1K1IMY1X2WmeNOW3FcK2n07vJ/XsPEw3mnpOAlFZ6+T0zHIL5lhFI7tD9jClsU7VxeskZ25LQ5sVVMnvkHOItcjgnUNJ3oDY6WR00wDvDuafI/R5UcQNZcejKWI4xQNSKleqEh/Hq4kIS0k5YzgYM57MPC1ZasZv5OrU9sqM89l81YDAviEOei8c4xPwD7mykQYQJUabqUe+hE9F2HhbP3RUwfdHMeeqUAc6lRGjs0OE3wEWPszumKUa6nAyVjwuCiHg4ArqRnTbphKN01vvWNh7+uv73bOGswRvc8iprTTsQ4NKEg1RZ8Oj4J6jCZvqVSSVvSamji4+et3LcuCV40UvaZabqS3Uv2pVuQ7VSNAWn2puXZYJ6Nxsls/GuJotcHbShCoF5ImhGc7FM9JcPDqNiKwLQGtipk7s9+okAzpuxtSXmAKoBUIJUlcHBA== X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB03.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230028)(4636009)(376002)(39860400002)(136003)(346002)(396003)(451199021)(46966006)(36840700001)(40470700004)(6666004)(478600001)(54906003)(1076003)(26005)(186003)(41300700001)(70586007)(70206006)(82310400005)(4326008)(316002)(6916009)(8936002)(5660300002)(8676002)(356005)(2906002)(82740400003)(36860700001)(81166007)(36756003)(86362001)(103116003)(40460700003)(426003)(47076005)(83380400001)(2616005)(336012)(40480700001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jul 2023 08:51:54.7763 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b6b05d5-08f5-4bae-7c58-08db7ec76a41 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT016.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5756 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_MMC and CONFIG_MMC are disabled, still some compilation errors are seen as below due to unresolved symbols. drivers/dfu/dfu_mmc.o: in function `mmc_block_op': drivers/dfu/dfu_mmc.c:32: undefined reference to `find_mmc_device' drivers/dfu/dfu_mmc.c:54: undefined reference to `mmc_get_blk_desc' drivers/dfu/dfu_mmc.c:67: undefined reference to `mmc_get_blk_desc' drivers/dfu/dfu_mmc.c:70: undefined reference to `mmc_get_blk_desc' drivers/dfu/dfu_mmc.o: in function `dfu_fill_entity_mmc': drivers/dfu/dfu_mmc.c:369: undefined reference to `find_mmc_device' drivers/dfu/dfu_mmc.c:376: undefined reference to `mmc_init' drivers/dfu/dfu_mmc.c:403: undefined reference to `mmc_get_blk_desc' gnu/aarch64/lin/aarch64-linux/bin/aarch64-linux-gnu-ld.bfd: line 4: 31661 Segmentation fault (core dumped) $CC --sysroot=$LIBC --no-warn-rwx-segment "$@" Makefile:1760: recipe for target 'u-boot' failed make: *** [u-boot] Error 139 make: *** Deleting file 'u-boot' Add dependency of CONFIG_MMC for CONFIG_DFU_MMC config to fix the errors. Signed-off-by: Ashok Reddy Soma --- Changes in v2: - Changed patch subject prefix to dfu from zynqmp: config drivers/dfu/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dfu/Kconfig b/drivers/dfu/Kconfig index 8d7f13dcb0..8e9e8eb4fe 100644 --- a/drivers/dfu/Kconfig +++ b/drivers/dfu/Kconfig @@ -35,6 +35,7 @@ config DFU_TIMEOUT config DFU_MMC bool "MMC back end for DFU" + depends on MMC help This option enables using DFU to read and write to MMC based storage.