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 0A154C433EF for ; Tue, 22 Feb 2022 09:16:21 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 823A383C80; Tue, 22 Feb 2022 10:16:18 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=softathome1.onmicrosoft.com header.i=@softathome1.onmicrosoft.com header.b="fjh3cIHZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 48CDF83C82; Tue, 22 Feb 2022 10:16:16 +0100 (CET) Received: from FRA01-MR2-obe.outbound.protection.outlook.com (mail-mr2fra01on0600.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e19::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 1FD1683C53 for ; Tue, 22 Feb 2022 10:16:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=softathome.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=philippe.reynes@softathome.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iWqOoOW9tJLGCbpbvMloOqB/YXRzq7pYViM4YXZuNFWyqkBT2sEUDbILm9pYMAiugK7BKzUwuMR+2ahcLyKpocMnRzugbzMvP4l+iCRwWYYXo82AjFEnE760QcgQn+wR9NvSNWqsAaL4s0dnsfPivWauTtxwxBlvC58AedOdzbTDxBsEWcAhPavq0mn+X2qJmYxUCuMt0ElEHDmhv8MxBeV7+xAr0guMw5yu3tvc+2IBrU9W4Ti3ZiMkODkdjMr9T02RpaqAYgRWuLyt9V9IiUtP3jA2mZQRPd4NEgfrd3U+ibtvQeu/NGRPxpDKI1sNKbQ8aY6qXT5aFxbcSLrorg== 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=bUm4LjxRsfm9MX5J/yzRQtC8gVbnFAW4nk9OT/TL8uY=; b=ImBFlhyPhZSzEHHEikNFyW8AogQKjNS/atHEa2mmBgUYqYiMclmKSCzWhl/QjEBNMzOg63CKnApE1GuFZUL3YZ9ajZVG7Zew8NcJn0UMIuQbCzk5hotx38XZWSczSD6wX1MtWRitVqOgpcJSrzRGtBXJ2SPJyLbXT55gMWU6c61iXHOr6fn4gHLps07fcHXRJw/tCoVeSs78GmbjPt61Ch5vszR0eNcAtNMxOk2u0NfHD0C3fXElo0gSh/4cWO1SZZbhXFd3TsEmWW2d2dL2pdT63r5E18iiS3/7RV7RofGxqdzwc1ZL9i5WVsnSbCX4lzamFMI4mWNEjdPxAg1kGQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.6.166.170) smtp.rcpttodomain=canonical.com smtp.mailfrom=softathome.com; dmarc=bestguesspass action=none header.from=softathome.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=softathome1.onmicrosoft.com; s=selector1-softathome1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bUm4LjxRsfm9MX5J/yzRQtC8gVbnFAW4nk9OT/TL8uY=; b=fjh3cIHZbCgkLAXMfvYO96kVe8lCYOpN2jN0R6ZlK8dkte2fZNQ88m2K5lVMbzUYX/d8+DiMK3uOOmeo20iPRDZZdXyOF+2lI86+j4ZbO+JfViXe1JTt3fdF0YYoUZIRGnsjIwnTHLa2zpTKQZNhndJnJ08/shBhyEu3gemdE8PrIM5EBBGWOljv/KH2l0sDRvQa6Tq/mfGt0x1wvSkfYd+WuUX9S3yNoa6thGDkt7cEaBidqHzVxgaB5O/CwK+dpuES4vWaLT6nqG7hmK1YFTU6ovel18ajFSFem8juYANBVaygxqBi7E04mNAkXST482sfIUpI/pwJk7pC70Ni/g== Received: from MR2P264CA0056.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:31::20) by PAZP264MB3590.FRAP264.PROD.OUTLOOK.COM (2603:10a6:102:112::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Tue, 22 Feb 2022 09:16:10 +0000 Received: from MR2FRA01FT007.eop-fra01.prod.protection.outlook.com (2603:10a6:500:31:cafe::2) by MR2P264CA0056.outlook.office365.com (2603:10a6:500:31::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.21 via Frontend Transport; Tue, 22 Feb 2022 09:16:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.6.166.170) smtp.mailfrom=softathome.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=softathome.com; Received-SPF: Pass (protection.outlook.com: domain of softathome.com designates 149.6.166.170 as permitted sender) receiver=protection.outlook.com; client-ip=149.6.166.170; helo=proxy.softathome.com; Received: from proxy.softathome.com (149.6.166.170) by MR2FRA01FT007.mail.protection.outlook.com (10.152.50.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.20 via Frontend Transport; Tue, 22 Feb 2022 09:16:09 +0000 Received: from localhost.localdomain (unknown [192.168.72.32]) by proxy.softathome.com (Postfix) with ESMTPSA id 8935B20014; Tue, 22 Feb 2022 10:16:09 +0100 (CET) From: Philippe Reynes To: sjg@chromium.org, marcel.ziswiler@toradex.com, heinrich.schuchardt@canonical.com Cc: u-boot@lists.denx.de, Philippe Reynes Subject: [PATCH] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c Date: Tue, 22 Feb 2022 10:16:03 +0100 Message-Id: <20220222091603.7921-1-philippe.reynes@softathome.com> X-Mailer: git-send-email 2.17.1 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e96b2af9-4352-4b39-c8c0-08d9f5e3f6f2 X-MS-TrafficTypeDiagnostic: PAZP264MB3590:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: EbzrF6XPuVIigzftq8EZa5V+vSf4ZkUeAD8A9qauBOn4gqCBZ4MAU4kQXfwnRg0Prdxu0AjqG5As7A+PUzBau3MBXUws/KLmSbMm4m1hQ22C4WxkpKbNElGxzuoudnfcVmKIpc6loanc3d3cP2rp10fhbYBXR4nFd94/1ttLfGvHG8rGsehT0XgmnulMRcO4q3O328BGp46+1wbfvLvgK0UaQIlKdX7nUESr2WHtkHYk2P+y3OMCwI7X8GTaJVDhvmfqluKyIATKYFOys6gG2JvhbouJgdRP1k4O+EmCnhxuq1O7i6Vfq9LTvETwWona4HeBJjtCBh5UH+kRDEvTi5U4S08qM0e7ICNDLnJnDiHs0HzhDIj++DuB9RA0MEP06sfwe22b6STjgJsgS7nY2HEzpzQL4Qj5bM0JBXIsYOO2pOKL78vlXprwGcjVS5BB62vhjtwvvGJE3Ek3KnBZs+StQKx5HDC3aBiO4DjmGq2Mk8tUEmSCrUWrRSXERSPCIe9NHoIlQWvrxC3DBKql/tfQ7L5LYemgcWffEJCEotwEKpJ7xwBrDNSBNjcIkqJeMZwNoIhcScHEN0xUalX4AGR9F4XxHExVy1W2e99VWT1cLj3y52EUHHVZ6Aydh+xzeR3EX7TkmxyXhJfzdqWbj0dpuBED+jlDCGEdb+Q8Zx1aEDwFriQfzWl28vctzfRAoKbsBR2IMoSDoDu1xBJ4Tw== X-Forefront-Antispam-Report: CIP:149.6.166.170; CTRY:FR; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:proxy.softathome.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(2616005)(82960400001)(8936002)(1076003)(107886003)(5660300002)(82310400004)(86362001)(508600001)(6966003)(316002)(8676002)(4326008)(6666004)(36756003)(70206006)(336012)(40460700003)(47076005)(36860700001)(81166007)(2906002)(70586007)(83380400001)(186003)(44832011)(356005)(426003)(6266002)(26005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: softathome.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2022 09:16:09.8498 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e96b2af9-4352-4b39-c8c0-08d9f5e3f6f2 X-MS-Exchange-CrossTenant-Id: aa10e044-e405-4c10-8353-36b4d0cce511 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=aa10e044-e405-4c10-8353-36b4d0cce511; Ip=[149.6.166.170]; Helo=[proxy.softathome.com] X-MS-Exchange-CrossTenant-AuthSource: MR2FRA01FT007.eop-fra01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAZP264MB3590 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.5 at phobos.denx.de X-Virus-Status: Clean There is a conflict between the static file lib/acpi/dsdt.c and the file dsdt.c generated dynamicaly by scripts/Makefile.lib. When a mrproper is done, the static file dsdt.c is removed. If a build with acpi enabled is launched after, the following error is raised: CC lib/acpi/acpi_table.o make[2]: *** No rule to make target 'lib/acpi/dsdt.asl', needed by 'lib/acpi/dsdt.c'. Stop. scripts/Makefile.build:394: recipe for target 'lib/acpi' failed To avoid such error, the generated file is named dsdt_generated.c instead of dstdt.c. Signed-off-by: Philippe Reynes --- Makefile | 3 ++- board/advantech/som-db5800-som-6867/Makefile | 2 +- board/congatec/conga-qeval20-qa3-e3845/Makefile | 2 +- board/dfi/dfi-bt700/Makefile | 2 +- board/google/chromebook_coral/Makefile | 2 +- board/intel/bayleybay/Makefile | 2 +- board/intel/edison/Makefile | 2 +- board/intel/galileo/Makefile | 2 +- board/intel/minnowmax/Makefile | 2 +- scripts/Makefile.lib | 4 ++-- 10 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 4b152249ca..94bc48f00c 100644 --- a/Makefile +++ b/Makefile @@ -2226,7 +2226,8 @@ clean: $(clean-dirs) -o -name '*.asn1.[ch]' \ -o -name '*.symtypes' -o -name 'modules.order' \ -o -name modules.builtin -o -name '.tmp_*.o.*' \ - -o -name 'dsdt.aml' -o -name 'dsdt.asl.tmp' -o -name 'dsdt.c' \ + -o -name 'dsdt_generated.aml' -o -name 'dsdt_generated.asl.tmp' \ + -o -name 'dsdt_generated.c' \ -o -name '*.efi' -o -name '*.gcno' -o -name '*.so' \) \ -type f -print | xargs rm -f diff --git a/board/advantech/som-db5800-som-6867/Makefile b/board/advantech/som-db5800-som-6867/Makefile index 7975547f41..95af6c4df7 100644 --- a/board/advantech/som-db5800-som-6867/Makefile +++ b/board/advantech/som-db5800-som-6867/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += som-db5800-som-6867.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/congatec/conga-qeval20-qa3-e3845/Makefile b/board/congatec/conga-qeval20-qa3-e3845/Makefile index 451a4fcd6c..215f5680dc 100644 --- a/board/congatec/conga-qeval20-qa3-e3845/Makefile +++ b/board/congatec/conga-qeval20-qa3-e3845/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += conga-qeval20-qa3.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/dfi/dfi-bt700/Makefile b/board/dfi/dfi-bt700/Makefile index 50d88f2954..1c4329a058 100644 --- a/board/dfi/dfi-bt700/Makefile +++ b/board/dfi/dfi-bt700/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += dfi-bt700.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/google/chromebook_coral/Makefile b/board/google/chromebook_coral/Makefile index f7a0ca6cc0..846558d777 100644 --- a/board/google/chromebook_coral/Makefile +++ b/board/google/chromebook_coral/Makefile @@ -3,4 +3,4 @@ # Copyright 2019 Google LLC obj-y += coral.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/intel/bayleybay/Makefile b/board/intel/bayleybay/Makefile index d19447184a..fa263b7bf5 100644 --- a/board/intel/bayleybay/Makefile +++ b/board/intel/bayleybay/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng obj-y += bayleybay.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/intel/edison/Makefile b/board/intel/edison/Makefile index 1eaf7ca7f8..f7f70dfaa7 100644 --- a/board/intel/edison/Makefile +++ b/board/intel/edison/Makefile @@ -5,4 +5,4 @@ # obj-y += edison.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/intel/galileo/Makefile b/board/intel/galileo/Makefile index 4130bb0236..7d5f4df0f9 100644 --- a/board/intel/galileo/Makefile +++ b/board/intel/galileo/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Bin Meng obj-y += galileo.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/board/intel/minnowmax/Makefile b/board/intel/minnowmax/Makefile index d339b5ad0a..a20322a1a1 100644 --- a/board/intel/minnowmax/Makefile +++ b/board/intel/minnowmax/Makefile @@ -3,4 +3,4 @@ # Copyright (C) 2015, Google, Inc obj-y += minnowmax.o -obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt.o +obj-$(CONFIG_GENERATE_ACPI_TABLE) += dsdt_generated.o diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 93cb09ac61..8a8aa46c18 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -468,9 +468,9 @@ cmd_acpi_c_asl= \ $(if $(KBUILD_VERBOSE:1=), >/dev/null) && \ mv $(patsubst %.c,%.hex,$@) $@ -$(obj)/dsdt.c: $(src)/dsdt.asl +$(obj)/dsdt_generated.c: $(src)/dsdt.asl $(call cmd,acpi_c_asl) - $(Q)sed -i -e "s,dsdt_aml_code,AmlCode," $@ + $(Q)sed -i -e "s,dsdt_generated_aml_code,AmlCode," $@ # Bzip2 # --------------------------------------------------------------------------- -- 2.17.1