Message ID | 20210420135717.86185-1-oleksandr.suvorov@toradex.com |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=toradex.com header.i=@toradex.com header.a=rsa-sha256 header.s=selector2 header.b=EyAFkNjj; 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FPlcl4vQCz9tlQ for <incoming@patchwork.ozlabs.org>; Tue, 20 Apr 2021 23:57:43 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 43D2E82AD8; Tue, 20 Apr 2021 15:57:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=toradex.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=toradex.com header.i=@toradex.com header.b="EyAFkNjj"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4AB0482B01; Tue, 20 Apr 2021 15:57:35 +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=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0715.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::715]) (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 38611826BA for <u-boot@lists.denx.de>; Tue, 20 Apr 2021 15:57:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=toradex.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=oleksandr.suvorov@toradex.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F5YQcYY8Uv1Ks0eZJlQGWg10rgHswpI+q3ATyk+lCla8LO7SwMXZksUy0OLqLPV3sFVpH7yilluA21+VjmfIDu9fMGDpb39KuVByWucF/l/Y8v8P7emBc6FIgzu652kIOGczHvBe2ANYJIaf4iaVF6MmSghjcbf8lHkfewDZo2KvcKLLlkJ+rMaJLfKLELZLNDJFdsGxhaD0yWcmRgMd3WEog5nWOIwcg+56gAPr6gWHA/1zImclmjNtTTJgXZqRandmNKbgfZ+eeFUQhh4dXJKtrvSZUxp3AVh2lm05RWo9O+ayeW5WNVOVH5Q/GDwBzhj2qBZOgrUgv7ebMWM4cg== 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=lwqFd8693UvTgMIFHkncsjMKkyx6imu/eVuQonHJGUY=; b=lyH7PfNRi8sXCR6nQgfL6aCAiyshOgqJ27Tnv7GHnkyfRO9TE+cBW4pQuuvwOCB05h+iXa4W3B6z7K7vzTAYjqq4Ji9swK/Ru0poiXylIzoiDwRUzoGTOIePHu+lbTpQVyyPDsnvsuCmIoQ01rimZtL1RBNfZAMJ4mlYdjejb4Q/OmpUIU3CUYZWxCoJtjy7ARKwPV/ujRqucGkjZ1RiMQIr0TeWsJvqdzVSBhsz1c153nIdTzsrL3SPYFRvxQdaKQ3P/lVagj0ZM6oRjjFI/ERYnzEcY0xyrXBejY6wB1J4TpMKFxc53FoJ1sEZT6knp4fhXRKmTyBHkvisRKWPqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lwqFd8693UvTgMIFHkncsjMKkyx6imu/eVuQonHJGUY=; b=EyAFkNjjX6jP8F98WAKcNR169HD99jKi79C7/WYkQ2kacdRxZTjndNhu0BXsuW9TFN6iS9JU/C5DRJQnqmm/A2h8xAHu7jTL/tA+i1ZzmK2MF9J2Jvl/uV/3dh6MCRsYIUVs52dgyCcJPto8i3S01s5m7b6uIpIl2TG4kM9fC8c= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=toradex.com; Received: from AM0PR05MB6002.eurprd05.prod.outlook.com (2603:10a6:208:129::19) by AM4PR05MB3217.eurprd05.prod.outlook.com (2603:10a6:205:4::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Tue, 20 Apr 2021 13:57:27 +0000 Received: from AM0PR05MB6002.eurprd05.prod.outlook.com ([fe80::2d38:988:3912:76f3]) by AM0PR05MB6002.eurprd05.prod.outlook.com ([fe80::2d38:988:3912:76f3%7]) with mapi id 15.20.4042.023; Tue, 20 Apr 2021 13:57:27 +0000 From: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> To: u-boot@lists.denx.de Cc: Bharat Gooty <bharat.gooty@broadcom.com>, Rayagonda Kokatanur <rayagonda.kokatanur@broadcom.com>, Oleksandr Suvorov <oleksandr.suvorov@toradex.com>, Bin Meng <bmeng.cn@gmail.com>, Chee Hong Ang <chee.hong.ang@intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, =?utf-8?q?Pali_Roh=C3=A1r?= <pali@kernel.org>, Simon Glass <sjg@chromium.org> Subject: [PATCH] Makefile: fix generating environment file Date: Tue, 20 Apr 2021 16:57:17 +0300 Message-Id: <20210420135717.86185-1-oleksandr.suvorov@toradex.com> X-Mailer: git-send-email 2.31.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Originating-IP: [82.193.109.226] X-ClientProxiedBy: AM0P190CA0006.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::16) To AM0PR05MB6002.eurprd05.prod.outlook.com (2603:10a6:208:129::19) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from cryobook.toradex.int (82.193.109.226) by AM0P190CA0006.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:190::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Tue, 20 Apr 2021 13:57:26 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cf203eb5-feaa-4b1e-8c8c-08d904043b5a X-MS-TrafficTypeDiagnostic: AM4PR05MB3217: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <AM4PR05MB3217B2F0924A5E7F2EC0F18FF9489@AM4PR05MB3217.eurprd05.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yCexYTiXbg3XwFjz2B86FjNMdQQDJy6y8KOU0rRXOR/Fxs9vKiFQLM7rWJfI/UsEWkyim1/PXKj1wl087CV++nCkSOkEJkH6pvOcM9DSq4ANq61xN17kUwde+6PaYHpsykmVjNywm+TdVPmPF/7xb9m+gHevBXLQp6dJ8L7zecYDYhFUxVfCyQTJeCmZxTdt2Ofo4iCUmJKDbulxtB3GtDECPB/IJUwcpuf1mFd3wY7xbIByJhlBVKathJpm5Yqa2AkCqKvalWFPem6Ltxvp4J8SDv3mJfxbXjxSuKYm8EK98K63G7JksLl3riBA+SWq51cqUnr4ChIkC1HXehafr8n87Cx+ZaEm0Cxpkuto0MA15jTWLlhJR/m8hZxJrpUG6/515i40bNU4y7x8TiWODNjpGSMlwsFYeoSyY6UC3Zt5PoSS6VPrvg8OisDYmybkKgIe7AdH8+tpR5SsY63DbZxyP1wkf+EaIcy5wvc1EQdR7twO7t0CkcHtL3IlVqWTMqL7bMB3tFJ1HBah2VflqUQrwS7AyQ37+KF28gbh7agdPEa6bIyOQUcAXs7saSa9msxw10A/S1JkpOhp+ofXgp4Gv0r2MFBCwFqGeUkFC37lY7d1vc0SBCO5Kad8PnOykfNmAIcUc22fauNtOa/Q/oCadw5Jlqi7Sm9An/o6coM= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6002.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(396003)(346002)(376002)(39830400003)(44832011)(4326008)(6666004)(6512007)(8676002)(36756003)(38350700002)(38100700002)(6506007)(54906003)(66946007)(86362001)(478600001)(2616005)(55236004)(6486002)(26005)(956004)(52116002)(186003)(8936002)(5660300002)(316002)(66476007)(6916009)(1076003)(2906002)(83380400001)(16526019)(66556008); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: =?utf-8?q?XIkasTbgFFwVdmzhprd4ABYGI55SUb?= =?utf-8?q?xHu+1oLlokmySkZzSo/At2coKFn8zyoPLUEmzAkccBbFhdhtjbXY/oZCSDFqMer2Q?= =?utf-8?q?VLOlI7VPB/jrtryHHNWIqyB6z1pmj/G6KOdE2DW/xbsyZW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aZDh05JSCO/yf?= =?utf-8?q?ainJ4uL2DvxCOM4sISL9+O0I96j3M786XdNPjo9Cw8PktgUk3xEbgNdzMMLLgNVpS?= =?utf-8?q?HZINjvVkXbPxPeZMO06v3k/RosRC5Z+IpeKnhd+UW3TfzxJbb7iQn78l7U8gy1GFz?= =?utf-8?q?R4cJIql2eW8D2OHDw+OzywLyWoD8xrf/JMrx7oRKp01pNJyCpCSvJ4AyCftksZcgX?= =?utf-8?q?3q18PrwIq/VGp1pEWqG67lQ6d1amp4QgBvYFYoLd2eFN0VUfLFgaF96Oco9yazUWy?= =?utf-8?q?a0gkrgP1lfp7jY?= X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: cf203eb5-feaa-4b1e-8c8c-08d904043b5a X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6002.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2021 13:57:27.7592 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /nSuIdWBO9AjwuS67q7RuIp68EX83dVQXFMeRFvFiOWnCSHtgKzaxzNok7ERYqIIiWq1PqckhHdpiJES5E5KN3XEUlB2ofKOmmOiZsnWrPs= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3217 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
Makefile: fix generating environment file
|
expand
|
diff --git a/Makefile b/Makefile index e423f6de746..d42168661b3 100644 --- a/Makefile +++ b/Makefile @@ -1853,7 +1853,9 @@ define filechk_defaultenv.h grep -v '^$$' | \ tr '\n' '\0' | \ sed -e 's/\\\x0\s*//g' | \ - xxd -i ; echo ", 0x00" ; ) + xxd -i | \ + sed -r 's/([0-9])$$/\1, /'; \ + echo "0x00" ; ) endef define filechk_dt.h
If the CONFIG_USE_DEFAULT_ENV_FILE=y and CONFIG_DEFAULT_ENV_FILE points to the empty environment file, the auto-generated file has wrong syntax so it leads to the compilation failure: In file included from include/env_default.h:115, from env/common.c:29: include/generated/defaultenv_autogenerated.h:1:1: error: expected expression before ‘,’ token 1 | , 0x00 | ^ make[1]: *** [scripts/Makefile.build:266: env/common.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:1744: env] Error 2 Fix this issue conditionally adding the delimiter ", ". Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)