From patchwork Mon Aug 16 03:48:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 497636 Delivered-To: patch@linaro.org Received: by 2002:a02:cf8a:0:0:0:0:0 with SMTP id w10csp1501266jar; Sun, 15 Aug 2021 20:15:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYWbAs1DgP3Q+4l6GCa676xL7ooHcQ4BbvkauYRxW9ukltTPqFSP2/cnETNWR9f5L27AQB X-Received: by 2002:aa7:c782:: with SMTP id n2mr17475658eds.77.1629083735656; Sun, 15 Aug 2021 20:15:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1629083735; cv=pass; d=google.com; s=arc-20160816; b=K19qD/kPuHNpAlPYHevfkKcOTKZHaZKNc2mXorkZCsT1u0OScCqUZ2fvegvOkmPV12 DO1VGd5E6tWaK1KzyJ+BBFMjrxxbK2w2ymRjufUsP4PmJ4DKUhl8JzXHUQ8jcB0c0d3/ 3o3RKEFawVYHyzFIJdB6ruXzaTWrPOCOtfIsIfJKJuzwIFOQVWrj5E85hTdQaJAiyx5z T/xUWLiJfF9/8NUxvDPIa86ubLCclGQN+QHvbpUEzNpOZ8C91puY/MfJqVxkk0cay2Na x64mRVajBBG9kvqbWzMept59c28fJE89yPoaE6F1PIlsrboHMqw1o3GoKnojZAjhEvep MkMg== ARC-Message-Signature: i=2; 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:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=KJCewgM9HpXz72DtsHZEvaoUMmtIC8Q7SpzeHOKzFnQ=; b=hWb5MCbJuUnJ52wUHY0wiDiDeEl+aLCGhQyT2SeEJ5abo/nws5gogDfSaRGKhhptKE Sgi+r+Ngvoe+tk/A7bzutZKi7KA5U6dkDIwyl1dJbSu9pVkhnSLMmx9CL0s9LOxeVGJw gZ0MSWZO12yCEk1KLAKO4/8YC42gkp8WrXzQ245oCkLPZxvmZWZ1astZ9mMACNherdU7 biuaipzG1hXM+Ocf1kMtcJC87/A0eq6S9l+R9T/UrBIc9/GS/Ai9SM1RdFp8cYBdLisr jVhrTD70mrXk4GwEaWY/7L5rtpu4PjgCth4XrPz7+DFhgMT6Uxguv+N0b3jJozATT3Jd BrJw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=dT++1ekZ; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com 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 nd15si9099537ejc.463.2021.08.15.20.15.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 15 Aug 2021 20:15:35 -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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=dT++1ekZ; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DD7BE82F1A; Mon, 16 Aug 2021 05:14:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.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=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="dT++1ekZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C2EED82ECD; Mon, 16 Aug 2021 05:14:23 +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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0600.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1f::600]) (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 90FF182E7D for ; Mon, 16 Aug 2021 05:14:15 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YPL86oPRKB4NeUEq0pnj2G9Xplmmd860DiEDg9UNXjTNA9uH5mrh2ZP0Ox6lk5rKGv8/WZgv49KABJmdGu+5xHAlLKrue2zmQzfEfRjGAcyGRqs2f+OVR8lYmVzzoqYqfsfM/ntFt5Oyiq4QRt6kXvTiKwMBLWYcI9xrbRTuEtJaw3rExboOkwZC7EcdajsfnPypX8MCaEJ0lJPtyUrNAju9/9HrkCoBMXT/R4EBACqwUAddBrGYTLoQNMvPNF+pyl8EhLSFy9Jfr32lkk7d3jvO1wAIlE6WiKUYkGW0vSR3zpUTxF5g/CAaF4w4YZMSFsmTXoVapmoOoueYdhk3gQ== 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-SenderADCheck; bh=KJCewgM9HpXz72DtsHZEvaoUMmtIC8Q7SpzeHOKzFnQ=; b=TCY6Emaq+AHkwHXQ1OXQjli10N+ebV63Q38FTCsO0cd9rSJj2l3uT9BqSdHMa+BTLDZzfk58gdgwgEP9jvtYRK5u8j7QVZRLK2+9ivvKhqzdF+weAo+Z7dwfJ8f5oRS73/NI12mSN2QHZqUiQRa0T1RBOEEC5wSV2IsHQNrNovDZzOOX3D57t/5lZ1vEDRnhGyetO99t8So/55u41z6RMUGJewIDjCGTu5Z9idHaZSAo8MJj955iISfH2ohwmyD64QstSl4k30H/Q10NcRSfkd+GUBPmwrkrLUKG+27Sr9/66sYDxM0CWAjG1sP5d04Cgy6yRgot7eElyfw1GxhrXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=KJCewgM9HpXz72DtsHZEvaoUMmtIC8Q7SpzeHOKzFnQ=; b=dT++1ekZ0hzU/hdjV48R3CU7pnCA1GFSQb4+IklfqHNd4ljy61GsH8mIoq7Y/65fGgp+dpM9WWdVgMCJ484y0OErsaIxGy30sxsojJsTj6JUVX9L1Z2uY1LDpgwcbzduy6D1sGIvbEkCTuXqreRjg/j/9//5cXcMBOyoeYHQZyk= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB6PR04MB3125.eurprd04.prod.outlook.com (2603:10a6:6:11::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.16; Mon, 16 Aug 2021 03:14:14 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::c445:d742:eb76:86dd%9]) with mapi id 15.20.4415.023; Mon, 16 Aug 2021 03:14:14 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan Subject: [PATCH 5/7] imx: makefile: drop the use of imx8mimage.sh Date: Mon, 16 Aug 2021 11:48:45 +0800 Message-Id: <20210816034847.22767-5-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210816034847.22767-1-peng.fan@oss.nxp.com> References: <20210816034847.22767-1-peng.fan@oss.nxp.com> X-ClientProxiedBy: SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SG2PR01CA0095.apcprd01.prod.exchangelabs.com (2603:1096:3:15::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.14 via Frontend Transport; Mon, 16 Aug 2021 03:14:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b190ce0f-c3b3-4813-451a-08d96063ec98 X-MS-TrafficTypeDiagnostic: DB6PR04MB3125: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:962; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3fq2Lj1SKwYS/inUjulBWL32uCulMuoGmIWtMqzY1yb3zpf68L9opqAt8CjBjj+rc8WrzigrHZiY1kPPSo0YmHZisICngf39Y4C7hCU3Nv1ITdzcvycwxqDC2rCE5A9rk26tjddmx3+zZnh1zGFajfWpjhQFa8ag234FXxPynRHc2PShnXih9Q3FeR93bON0LzX18l4Y8jK714OkuchZlALgMg+QupiHRC+uM4i6ELgg1tk63lrV7kxtKqC2bDCKKJqw6SP2pymSdzfb74ClLqWVkRFb3ciUMZNB4i3obv00jBA4i49Yk1Km3Kv1ELoOtLdAC6zO8YcrHFOOyRcOr+Iby+h/fHK/iHC5OwtHeqFkhavlD061Z3TV4lJe+NN0xQI1zcdfrhHU2NKHfm2JkYTOwE9VA1Nz54caDQYIb7W0Z5DRB8Ace6YOkgjgXgQzlJw24F0ILwZ1gSAPhF84Et4o9j3Ns7pzS3DoSOJlQvQgwVahFzRCdDKme4L9rSh/bnMBrDsCSB4dPxiopx8Xdvp5EYieTTUj4fOTCiVSqKZvUZtZNkZpdvuOxw+8nkbstWI9JReQ7TPeeMMy713nygqXVCumDdEUxR3rmab2zufTC36oOwSPQXRyMfGJbbz8fQ0q3QwmUA21ABmiDvX+YIyew5QITm+qVqrJpKRFgc4kyIfDXFaiEhiON93K1bAfjZwoRodjYDjVDIgMotbwpFTzyS525WdjPmBfAi5I5Xk= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(6486002)(186003)(4326008)(26005)(956004)(2616005)(5660300002)(316002)(6666004)(52116002)(2906002)(66946007)(86362001)(83380400001)(8936002)(508600001)(38100700002)(38350700002)(66556008)(6512007)(8676002)(6506007)(1076003)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F1pFxy7KGmP4xEo774ot2z7mYCPMXUhvHTqiihI4+zAZbXZ9fYAH0AQrmvzm9CdvgYSXx6wbsWtAIYFjbnFT6JhrQmBQsaBNrH8EN7s64tsMkjO5l2bUMmy9761tV/26bIALsa/ejPWI4KQF+2aBkNkHV0k5c0Hh2do2PT2t7vGhUCUoPXcExCB8pu+kWImPToxUdlKhxbHlxj7xLUQ60HHeG9bajsK9PsqDzuf9MG9Sv2oKEIE9/zUOCGSwBMnPr0ypzJ+uK1mkdDmJk1u3w2C+ZIKlLIzcnF3IaHC9ZTRIpSXkswHmIfHHf5VKflpAUUx/Hh5DKZHVEDRNw4YhKJC6M6o84TmsQYPqzbVgMySaWxz4Xr0rfXU/rGYn4Bm5vXYZS9zzRxqcoe6EtbcOt3bTPjiwyATIl2Ik9UjEHsW+hAvnTZI7IynDCuEa/4eji3GOUYyUZCTydmoQoVMxGWBSYqyfCe9qyAtx29+D5ZVZ/Oz1LZtEZ53FJfBELfrNUI3RL4KOBq4WfskHZbt9XzFofC3ivCKZWDT9Cb058SfQNUdAmFVtYoAfV17hWovMYQz064+uajxEr7sUkyTP6lwWtBi2dxepgOCy8YmL3FmLZQeQ0RRD+E60gJHOnvUZ7C0z2D/x+Nf/iMSOv9Pyxq/PUw758fSdC+56RInoBvYzoMbrmf/qOTkW4r6QmPb+27Q8qgSMsifYZkvoKTFXbhkizPMfI4FXHftWeUc+kECbsvWMwkMfhli9+L6TXNbWwuUER1MiNVYs9aVIAY92C3TuDsHXyyPpI9dghPdf9WW6F0Us3WeAULw3eyXehTlxWXqVyUJo5T1LXHxyDrJZIYx7AFaPMZLAZUFNMXd+R3rEaBRY9Gu9CBHWNmB5x4NAGBDC0VB53yArkSI/o/gALHGi7QPGiEzN0bTOIM/5+oM3F8FDwG7PmX5HAJ0G7gERhBySH2xMQF2eEGlBbrCsIOpXCWwzIfbopMHuDIcpn00JbI99+kfjyGM7COEttNiXCbgt6pi5X6f2nTxa+k/xqgQOVQOE/jlmGqT5QhoakbkhTDazxZlmDWom+sIgydUjC3AHXVdWJlk21PZ/KJxD2GjhlyE5yWCxUvX6gKpcwY1KOx4jDGjmt65L37TWW95Cd23A0SBIHr9uKqUz92XgrytjNlRcY+rRzumRu5XUo1CV7iQZffrPwBdu6Wivn0McOqNTv6hR3VJ8M5RIJ66sYhbkrWVMzppVav3RHUDKOQ30h1XqRTKI46wSBi0fN0H88NvGhPWeSXU0pwm8tRgc63Pr87vAoQlSiYS7L/KdZsZ4WnePPh3nuKlxA90QdI0R X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b190ce0f-c3b3-4813-451a-08d96063ec98 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2021 03:14:13.9105 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: lG/a+llw4OYGli2/K965DlSXDxU731D4kCRD76WGHyMLUTztfT4Syznu+cTJ7D/vKZuqxYvC1bKtOHtJnxSYng== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR04MB3125 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan After switch to use binman, no need to use the bash script to check file exsiting or not. And there is bug that the script will be executed everytime Makefile is used which is confusing people. Signed-off-by: Peng Fan --- arch/arm/mach-imx/Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.30.0 Tested-by: Frieder Schrempf diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index 0ef269563d..f629751c48 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -114,8 +114,7 @@ endif DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o u-boot-dtb.cfgout $(srctree)/$(IMX_CONFIG); if [ -f u-boot-dtb.cfgout ]; then $(CNTR_DEPFILES) u-boot-dtb.cfgout; echo $$?; fi) else ifeq ($(CONFIG_ARCH_IMX8M), y) IMAGE_TYPE := imx8mimage -IMX8M_DEPFILES := $(srctree)/tools/imx8m_image.sh -DEPFILE_EXISTS := $(shell $(CPP) $(cpp_flags) -x c -o spl/u-boot-spl.cfgout $(srctree)/$(IMX_CONFIG);if [ -f spl/u-boot-spl.cfgout ]; then $(IMX8M_DEPFILES) spl/u-boot-spl.cfgout 0; echo $$?; fi) +DEPFILE_EXISTS := 0 else IMAGE_TYPE := imximage DEPFILE_EXISTS := 0 @@ -150,16 +149,18 @@ endif ifdef CONFIG_ARM64 ifeq ($(CONFIG_ARCH_IMX8M), y) -SPL: + +SPL: spl/u-boot-spl.bin spl/u-boot-spl.cfgout FORCE MKIMAGEFLAGS_flash.bin = -n spl/u-boot-spl.cfgout \ -T $(IMAGE_TYPE) -e $(CONFIG_SPL_TEXT_BASE) flash.bin: MKIMAGEOUTPUT = flash.log +spl/u-boot-spl.cfgout: $(IMX_CONFIG) FORCE + $(Q)mkdir -p $(dir $@) + $(call if_changed_dep,cpp_cfg) + spl/u-boot-spl-ddr.bin: spl/u-boot-spl.bin spl/u-boot-spl.cfgout FORCE -ifeq ($(DEPFILE_EXISTS),0) - $(IMX8M_DEPFILES) spl/u-boot-spl.cfgout 1 -endif flash.bin: spl/u-boot-spl-ddr.bin u-boot.itb FORCE $(call if_changed,mkimage)