From patchwork Sat Jul 20 16:27:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 169306 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp5290819ilk; Sat, 20 Jul 2019 09:27:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwldPpbHYycoKW+cqtYh8GWj95x12oSTl/hTBGap+z0hW7mtn4UZ4Bzgu8SvA+33UWxug1U X-Received: by 2002:a17:90a:3544:: with SMTP id q62mr65662782pjb.53.1563640078196; Sat, 20 Jul 2019 09:27:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563640078; cv=none; d=google.com; s=arc-20160816; b=o5b7uSU5lTlVikTtOwQL5B7PrhAR+n+jgdh2WGn7fByvjUQw76kPLyve8Ynk+3nQ3R VikcQUzV+6ZXMjXHwxYp1v0Gc/j/twiKo5Jtd+gptAcK0TagR02ny7NgV5JxOqyT5RN5 FQ96sQ5Sdk2DG0rZO+UAh+kbYffVom9LW1ClA6FBXIoPk9qfWHxTdm0fWG2vQlA9Wx1h PCqlr3zARnaskg8/fvgmJU535PuBNH4r7zkMQd2rOz1Mn4vdC8cvUld1mwSAMc1KDj7F PIa0U/3hDEAeQqUO/dvdN2ja7UaJjw9fhRTjMMgWMKp9MTGAIfMxMWn/Me3bw6A8+w0R yQDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:dkim-filter; bh=Pv01/fNbqPnaUNjJtQ/RzZ1+tcdYQt0y1A77DCr4Efg=; b=wtNkmdgownfG4L2E59G6nEBFlqOUcUzFfOH4En1xCPmGdJxqEnQg+bVdivCkJQ2uln OhgEDKQvWB84QfZ+2vBbU9+U1IPEvifuSMiAtkX6CzTaT0YNhvhU7qaODVVtWx99Eexi Zkk5EdN+FajDq2/vshe/7taNZ3Kmam58FHHRrVVMro+iXu3bQrhF73KaLfknNq8XFMav UShR3MOhGCNUe1Ji/D82LusbceFE8h8Pw98+bKP1EImoW12D+jouzFKOCi+8FXGRkaKR R2TcKlrbo38jEehtfkkoNfS1R0jEepge+56L8KT6Qakkvg8w7AGY6Jm60TmtoCRCUsri nMVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Bb3pmzAp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j9si2917262pgh.159.2019.07.20.09.27.57; Sat, 20 Jul 2019 09:27:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Bb3pmzAp; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726580AbfGTQ1t (ORCPT + 29 others); Sat, 20 Jul 2019 12:27:49 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:52417 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725940AbfGTQ1t (ORCPT ); Sat, 20 Jul 2019 12:27:49 -0400 Received: from grover.flets-west.jp (softbank126026094249.bbtec.net [126.26.94.249]) (authenticated) by conuserg-09.nifty.com with ESMTP id x6KGRfOq009136; Sun, 21 Jul 2019 01:27:41 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com x6KGRfOq009136 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1563640061; bh=Pv01/fNbqPnaUNjJtQ/RzZ1+tcdYQt0y1A77DCr4Efg=; h=From:To:Cc:Subject:Date:From; b=Bb3pmzApRABgiJM6+BQoQfdOqInJvXbY2nUhOGGf80+w1n3V8GvycdsgBsCJ2rA5f BIZLEs0k6vBzgmSClr5B2DcHnVrkpjY/O7YhC5xbZTU08VR9dtScAZs0gfm7/xXf27 Kyucvr14YgPM/UexqQDxTw2mwDUDciMWZ9/t4qeiNeAdJXvQNk2A2vkP/WdKbC3Nm2 pHoA6vknaX/ZrJalZ4docIWfo7zybpIyZ9+LMUpk4mSF5Vx0tlzu6jEls9Sd9XS8Ni 0KTmLMBtwffVrhp9X5DkmduWtOYxzxaWpOJndpSo2gNvIHYCZLvUpUF8VoF7iZF2Bo yEQOteW+PPNhQ== X-Nifty-SrcIP: [126.26.94.249] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org Subject: [PATCH 1/3] kbuild: use $(basename ...) for cmd_asn1_compiler Date: Sun, 21 Jul 2019 01:27:38 +0900 Message-Id: <20190720162740.4292-1-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org $(basename ...) trims the last suffix. Using it is more intuitive in my opinion. This pattern rule makes %.asn1.c and %.asn1.h at the same time. Previously, the short log showed only either of them, depending on the target file in question. To clarify that two files are being generated by the single recipe, I changed the log as follows: Before: ASN.1 crypto/asymmetric_keys/x509.asn1.c After: ASN.1 crypto/asymmetric_keys/x509.asn1.[ch] Signed-off-by: Masahiro Yamada --- scripts/Makefile.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 644431140434..7f71dbd180cb 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -388,9 +388,9 @@ $(obj)/%.lds: $(src)/%.lds.S FORCE # ASN.1 grammar # --------------------------------------------------------------------------- -quiet_cmd_asn1_compiler = ASN.1 $@ +quiet_cmd_asn1_compiler = ASN.1 $(basename $@).[ch] cmd_asn1_compiler = $(objtree)/scripts/asn1_compiler $< \ - $(subst .h,.c,$@) $(subst .c,.h,$@) + $(basename $@).c $(basename $@).h $(obj)/%.asn1.c $(obj)/%.asn1.h: $(src)/%.asn1 $(objtree)/scripts/asn1_compiler $(call cmd,asn1_compiler)