From patchwork Sun Apr 30 01:29:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1775319 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=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=IvfMz3q4; 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 4Q887C3SgMz1ydW for ; Sun, 30 Apr 2023 11:35:51 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7BE186396; Sun, 30 Apr 2023 03:31:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="IvfMz3q4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CABCB861C0; Sun, 30 Apr 2023 03:30:34 +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=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6BCD48615D for ; Sun, 30 Apr 2023 03:30:31 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x12a.google.com with SMTP id e9e14a558f8ab-32a89b6f185so11528945ab.2 for ; Sat, 29 Apr 2023 18:30:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1682818230; x=1685410230; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=j1v3xA/zfqLNzNAoaqJsJfIEYm18to5tH0r1cvaFvSo=; b=IvfMz3q4hmpSpYDsC/ReiIkMaukmD9L9cUGf/GDb/WglFxZasW7rZpSsnDjBPrkyKA cy2mr6PO+LM/L6thc3B4ZP5Abm0OlwlvIacSvnBD5I6Vy3W83Jz6HPon8zG0Avj9NxBJ kQ7rbvS2duXchLyIvzGpLlUK/q74DovXcaTlE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682818230; x=1685410230; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=j1v3xA/zfqLNzNAoaqJsJfIEYm18to5tH0r1cvaFvSo=; b=FPP7ZKlFl9wtjo3JX6jtjPClXjuUkryWTCfpuIGEIOTSz1px3d+MziUnqrg+ruVokB b6v2WkcJXb6u0Z9JQpemVoEYUb3mKaoxIr6mb1s6tYU6iswSPb8nAj3cczWZnpeEZuVC oRS+4P8Hr6AdvEdK3IuLWRkU68cStR9JsbbcfDaRSgxxvb5O1KxmRWYRfsv8V5Fxq583 1BpfLkK+2bQJzd+q0zRBSdt90PJvNZBzKziKQSWvwgpCUMVRMu7Ifr3tQckfddt4GUWw dGWkw4YaswDO7mXij0QRsktdouz/uqbHn4dVadapG7fqBrsMmhAc+dq4RQHkc5za2QOu U9eg== X-Gm-Message-State: AC+VfDx2RmHa8ZXAb1Fr5TgDBnO2wIUdAVru/+SgNzW2dJmXes47P+uA DmLLAJNermoWwIaWYA8t1om02OnplcRLZNQ29rg= X-Google-Smtp-Source: ACHHUZ7UFuiJPgvOYf1i51fE0J32ASQfxOEZRRSsoYcwZU2u1A2e0+kOv0sc8qp2yROuW3lLe7VJOA== X-Received: by 2002:a92:db43:0:b0:329:6231:68d6 with SMTP id w3-20020a92db43000000b00329623168d6mr5115733ilq.3.1682818230032; Sat, 29 Apr 2023 18:30:30 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id w4-20020a02cf84000000b0040f8ed3ab81sm7259429jar.129.2023.04.29.18.30.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Apr 2023 18:30:29 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , =?utf-8?q?Pali_Roh=C3=A1r?= , Heinrich Schuchardt , Tom Rini , Simon Glass , Masahiro Yamada Subject: [PATCH v2 22/30] Makefile: Correct the ans1_compiler rule for MSYS2 Date: Sat, 29 Apr 2023 19:29:55 -0600 Message-ID: <20230430013003.1047454-23-sjg@chromium.org> X-Mailer: git-send-email 2.40.1.495.gc816e09b53d-goog In-Reply-To: <20230430013003.1047454-1-sjg@chromium.org> References: <20230430013003.1047454-1-sjg@chromium.org> MIME-Version: 1.0 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 Add the required extension to the Makefile rule. Signed-off-by: Simon Glass Reviewed-by: Tom Rini Reviewed-by: Bin Meng --- Changes in v2: - Use EXEEXT instead of ELFEXT Makefile | 1 + scripts/Makefile.build | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 240562dff00b..a328652f0f23 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ ifeq ($(MSYS_VERSION),0) export LIBEXT := so else export LIBEXT := dll +export EXEEXT := .exe endif # Avoid funny character set dependencies diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 97dd4a64f6ef..a494e2f105b8 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -309,7 +309,7 @@ quiet_cmd_asn1_compiler = ASN.1 $@ cmd_asn1_compiler = $(objtree)/tools/asn1_compiler $< \ $(subst .h,.c,$@) $(subst .c,.h,$@) -$(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/tools/asn1_compiler +$(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/tools/asn1_compiler$(EXEEXT) $(call cmd,asn1_compiler) # Build the compiled-in targets