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 22F47C433F5 for ; Tue, 22 Feb 2022 09:40:44 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B12B83A43; Tue, 22 Feb 2022 10:40:42 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.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=canonical.com header.i=@canonical.com header.b="ojq1ipmM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6A02F838FD; Tue, 22 Feb 2022 10:40:40 +0100 (CET) Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1B61283A60 for ; Tue, 22 Feb 2022 10:40:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=heinrich.schuchardt@canonical.com Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 580CC3F1DD for ; Tue, 22 Feb 2022 09:40:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1645522832; bh=JF1RNio73tJfTEvE0LA5uFczzqGzMQ4WQiNK0Ri6um4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ojq1ipmMkMjyBpUCBhPe6tGDHFvH8DNANph/lzy8s6fuZxcx1Uekkw+mYPjZrGhnx JWkbcgbRcTrdD7qJ+Nt+U6ABzFMkb4wVBhCtOu5+L1REDJRwyEi840wUFy/wJK3Kvg xElr3WFg8Rpwi7o7UtQZxWyulT9VsPEPRAgXxcDmv7ynkxn5gjjCJF8onMoXmKH+2n WHZuAlT8APpWx0rDiaYc9zFJI3Dn9Zrssq7CqBJhlfFwlPkpMqGBHDwwzhrvXDBki+ zKcmwjrmctI9BEwdik7QV0ulqieaFyqHLqcLHTBN2ZMJIFJClsGM8/VT218xWPUMMS jZZX55STKw1Ww== Received: by mail-ej1-f70.google.com with SMTP id d7-20020a1709061f4700b006bbf73a7becso5502101ejk.17 for ; Tue, 22 Feb 2022 01:40:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=JF1RNio73tJfTEvE0LA5uFczzqGzMQ4WQiNK0Ri6um4=; b=ADDqL3gwud3knvPd6eCFXcX5zXQ2Lucyj0rP2G2ohhZ6pdKlT3lqmLcJkAUsdgrzGc 7g8JBirKiRonNGKZDSqmWehQ0inDFBnOMl8wC52EVxqr2l2yy3AhxHINZmTeM/+b3Jh2 ywKZN2xiQLpH1E0qrlmMS7s/VCBb7WYicMzixqv6TrU5LG0uGLXpmawQdqzEklowOi2S uEVB6kRKf3HiWpVRsN/8Z+CiLBrjITHa3asmb5nEyuJvqIdkI3/a+N+SFKxh2ztcFkeM fRtf6iW/U1bjtk2N0yUMS+E/mBECM2oge+A3g0bqqTHTjXrwf4LfwOAen6EwoKgOJ3f3 ylxA== X-Gm-Message-State: AOAM530QFkreJsCpe6zY8FloyFVQrBC1+zzOC6WABsVCh5n+/ye+xDzU Efg6pfvwplwliy5L+Gi1J3g7HHQ+pRWJKIejyEcW7lFjjEHYzvU5IlmoYZgxsROsdp16DYwRL8O HqexTbLzBszPhFRNV2j1HtTniXqXjEYA= X-Received: by 2002:a50:d0c7:0:b0:410:b0ab:f1ce with SMTP id g7-20020a50d0c7000000b00410b0abf1cemr24966067edf.433.1645522831973; Tue, 22 Feb 2022 01:40:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzeUZ8wy5qBniuBiUHAFsSshVT6wGvakQwBmdJRWz3kzY1bloFLIdDE8getWAEO5fA6QOfF4g== X-Received: by 2002:a50:d0c7:0:b0:410:b0ab:f1ce with SMTP id g7-20020a50d0c7000000b00410b0abf1cemr24966052edf.433.1645522831693; Tue, 22 Feb 2022 01:40:31 -0800 (PST) Received: from [192.168.123.55] (ip-088-152-144-107.um26.pools.vodafone-ip.de. [88.152.144.107]) by smtp.gmail.com with ESMTPSA id i24sm9686132edt.86.2022.02.22.01.40.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 01:40:31 -0800 (PST) Message-ID: <9ca1bf30-88d0-d360-dd0e-1155cf63a406@canonical.com> Date: Tue, 22 Feb 2022 10:40:30 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH] scripts: Makefile.lib: generate dsdt_generated.c instead of dsdt.c Content-Language: en-US To: Philippe Reynes Cc: u-boot@lists.denx.de, sjg@chromium.org, marcel.ziswiler@toradex.com References: <20220222091603.7921-1-philippe.reynes@softathome.com> From: Heinrich Schuchardt In-Reply-To: <20220222091603.7921-1-philippe.reynes@softathome.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 2/22/22 10:16, Philippe Reynes wrote: > 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 Marking the patch as v2 and adding a change history would have been preferable. > --- > 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 The comments in lines 454-461 should be reworked too. Best regards Heinrich > @@ -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 > # ---------------------------------------------------------------------------