From patchwork Fri Oct 11 07:41:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 1174977 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="Ur1fsmLA"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46qKdf5XXLz9sNx for ; Fri, 11 Oct 2019 18:41:26 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 709B4C21E30; Fri, 11 Oct 2019 07:39:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 55E73C21E38; Fri, 11 Oct 2019 07:39:36 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 3AD85C21E8A; Fri, 11 Oct 2019 07:39:03 +0000 (UTC) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by lists.denx.de (Postfix) with ESMTPS id 63816C21E52 for ; Fri, 11 Oct 2019 07:39:03 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id a2so5559032pfo.10 for ; Fri, 11 Oct 2019 00:39:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RdL6X/+VadmbBUcfyfcc8XNHuVhKb0jAruMeQrzquDs=; b=Ur1fsmLAg3epwHu4Z8pMs5COxBihp45f5uY08MnjbUhxNS3iyA+6Cp96ZxSdPgiSuq zMlvkgHoOyCFSxQdGrhgr8b7wsn5esw6XcXbeNvV1pl/WSNHobhnmliDlnxXFI10uXad 2fHzedJURxA/CQJaIDrXPb0H3B5O+MkD+bhgdvHsObXrjKLUHD03BfkTseN79sX6K6eg 2/7fp3bpckbcPPYv2mwFQWbP7P/kf0lF5uhP66jbJmb/w3KmqHuJYtp198C0b9X9W5ZS JjOIyfvxi7KsacLZY0hpaeKqRB9EEGeIpfyJ6MUl9l8/nJbjfdyEWgN3FYBw3b2t5b2G fuJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RdL6X/+VadmbBUcfyfcc8XNHuVhKb0jAruMeQrzquDs=; b=Hi0LbxpHVRjczWc2XHf9u3lnIk2fPdP1/7AE/aBZ2nSbF77sDFqRoTT/Sdsdzk47sv 8LbSUbISevcj3ESYjPJztp+/8byhKek5+Tj9tapDUJCoUor0/hNl9FUQHPX3ftVGkK6x /iI/8K+yv7oDwQL+CcsOYe+HcxEClUrwodeXTQjU0LmgiB0HU4pCCeQV7eygU2YT4EJh ZnK8kYpAczN/qbbhngX0GzOFnYy0LWc8RFN1jYaWAOKsdA9il7479XU+TgXC3H/Uu1pW ltL3urLa4ZZ4leyUvj3y2ryr7df1oENia8MR648BJvfOgzFRX9KIs86OrO283MsDfOl6 HtRw== X-Gm-Message-State: APjAAAXS7bq1128iKfClAkIPSbHRKVRDRuOhFy8VHKxe5TdHO36WePqN 9LnCQiw58LZCB5g5whXolrxq4Q== X-Google-Smtp-Source: APXvYqwztL45/r4z5fzSQnf5UN3EvKO0WfDDCHjwmwkUpYbBHAHIcb/WqlJr84/L3NVsRal96xf/cw== X-Received: by 2002:a63:eb08:: with SMTP id t8mr15916321pgh.49.1570779542051; Fri, 11 Oct 2019 00:39:02 -0700 (PDT) Received: from linaro.org ([121.95.100.191]) by smtp.googlemail.com with ESMTPSA id u7sm9004409pfn.61.2019.10.11.00.39.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Oct 2019 00:39:01 -0700 (PDT) From: AKASHI Takahiro To: trini@konsulko.com, xypron.glpk@gmx.de, agraf@csgraf.de Date: Fri, 11 Oct 2019 16:41:54 +0900 Message-Id: <20191011074200.30269-6-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191011074200.30269-1-takahiro.akashi@linaro.org> References: <20191011074200.30269-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH v1 05/11] Makefile: add build script for asn1 parsers X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This rule will be used to build x509 and pkcs7 parsers. Signed-off-by: AKASHI Takahiro --- scripts/Makefile.build | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index f7a041296d3d..9357d310e50b 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -331,7 +331,7 @@ quiet_cmd_asn1_compiler = ASN.1 $@ cmd_asn1_compiler = $(objtree)/scripts/asn1_compiler $< \ $(subst .h,.c,$@) $(subst .c,.h,$@) -$(obj)/%-asn1.c $(obj)/%-asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler +$(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler $(call cmd,asn1_compiler) # Build the compiled-in targets @@ -419,9 +419,11 @@ targets += $(multi-used-y) $(multi-used-m) intermediate_targets = $(foreach sfx, $(2), \ $(patsubst %$(strip $(1)),%$(sfx), \ $(filter %$(strip $(1)), $(targets)))) +# %.asn1.o <- %.asn1.[ch] <- %.asn1 # %.lex.o <- %.lex.c <- %.l # %.tab.o <- %.tab.[ch] <- %.y -targets += $(call intermediate_targets, .lex.o, .lex.c) \ +targets += $(call intermediate_targets, .asn1.o, .asn1.c .asn1.h) \ + $(call intermediate_targets, .lex.o, .lex.c) \ $(call intermediate_targets, .tab.o, .tab.c .tab.h) # Descending