From patchwork Tue Oct 25 20:17:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 10975 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1198844wru; Tue, 25 Oct 2022 13:19:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4DHldQmR/MRGYBxwGt005/Vi1vvZj+HvYdUcA6Ztun0fPbSOz86vxC+QD2yP43d488GnKG X-Received: by 2002:a63:824a:0:b0:46b:272f:d75f with SMTP id w71-20020a63824a000000b0046b272fd75fmr33776489pgd.268.1666729165755; Tue, 25 Oct 2022 13:19:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666729165; cv=none; d=google.com; s=arc-20160816; b=hWURPmjxHprz0O6IiAxEBCvVAY8df54qZnyvc4ah0JyYK2bneSzi2D6zLc4MKXrXq+ rjOd+eZouuR6RT0R79yx+ABahICwkzIyGpAUouujt8GX7X2gzgqQmTET6jjmxPc0hhKM lxpZO9e4GPhoqBSwaVh0yHObgUpy6VkcQQ4YGC8H8yzrDq1J9fZTaHUtSjjnPXlValE3 +tb0AdNnHvtLybIYXFA1TNV7yiOQskK/jpnp1SWKz9NsqD+MbdUQCh3uUDFg1nMjXwB3 Hpn/oN4BZM3hfEUDuopem9ecev9VkVQgPAxySbR7bzLfaaJr3XXViHx2nLg1gqJ6uv4a BGrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :dkim-signature; bh=C7CkfUfWzwXgtTSIoah0XnkQ0qFYc1jCCWhpHDWDR/w=; b=rcOSlQkwAvhGmVCE9sZPnXR2HvTbgiPZldqxSHA50K8iGd0wAR4dGZ6F2u9S7CSuUV HXdapLLWXoADO61UCjVaJTsFhHTRS8nm1g+xaoYFI5XOmB/gwY6j9cP411+Gs4zELdni UiJWth1DjrHp+9alnb7sk3w1ToBgwTbCF6EHdEdg+Hr2ZRNwLfNvUkumQKlQ6HMlVI3Y F0hvxsr8Wzn+2YqQUsHHWazzBNWAwLYuaf4gEYSN50sEyPHfkrIsq/RTwcdRZphJ2k60 yCIJSx9KNqaVNszZEFibbfwvnigJ6gTcHSSZlLiv9gMJPs6nX3EK3eUih4SS4twPKgF0 4iDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fJTsmos5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w18-20020a170902e89200b0017a007f3d3esi4598977plg.421.2022.10.25.13.19.09; Tue, 25 Oct 2022 13:19:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=fJTsmos5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232786AbiJYUSJ (ORCPT + 99 others); Tue, 25 Oct 2022 16:18:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbiJYUSH (ORCPT ); Tue, 25 Oct 2022 16:18:07 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F699D6B9D for ; Tue, 25 Oct 2022 13:18:06 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id pa16-20020a17090b265000b0020a71040b4cso4876217pjb.6 for ; Tue, 25 Oct 2022 13:18:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=C7CkfUfWzwXgtTSIoah0XnkQ0qFYc1jCCWhpHDWDR/w=; b=fJTsmos5rey7JYMoKY6ndFZ4d6icJ82KMqv/nHDL04N6WZkkkMtVyQQ1nqF0Y0KtUH OfISz2ZVCDmkeGuYQVLesYBbEDIWR5JRL6NrcGUZkIZQpqDWZwDfON/75kyD/V2UU39Z t30JBhaaeGTXXf92GzykGiILyMOVl+eFiBMbOZObKdlDwhl5cmrAPv3agCtXNF8Qd1w5 s7zVfdQ1sV8EMuKTHonj2b3YRWqJdyV87VQ7aMYGrzsb15Rrc37qg92PcxIbOcfbZOfW iGodEWSW391ayu/mPqRU18EFXQyWnbHBJnOiXk0IkkcF8Sz+FDJKjzWR05UFg1cnwbLX n17w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=C7CkfUfWzwXgtTSIoah0XnkQ0qFYc1jCCWhpHDWDR/w=; b=e7G8+fgfcDDM6OrA1KoL63CwdwjkHAmWBNyyijuj+l4TYjk/iLnrD0n1VL6axuJOga zu5nV3G3f6jRH7kfY52vxerHHZS/WRdju4kNgXwrRp1gaV+glYwQTPvWV9P7UN4xSV5Y IHP9Xi2JYojpoN+dU4CqxfSgvwX34k/to/0q9oCYeRkpRk0+XxBX1EOaZDCD6LZEXNgw ydv/tpvsfgTxWAMdqKqzGtyYste5DWRl4HMmG2alKFi4S61mal1g8gwgjN8mG8pZiuQs lTsf3YBS4j561GmUqIAEh8Iw5kR47CtqeIi4jVk4fRnffPk23l0RHD8WYu85f6U94GlR aYkA== X-Gm-Message-State: ACrzQf05ZfqcdcjSCDY/DqOkgHsZYLEIjW1b7fhiHggEgr2S6a5mM9cs n8BlTBZdgKer4puXOKviUt9NGqxjkuh+agUXIfk= X-Received: from wmcvicker.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5ebe]) (user=willmcvicker job=sendgmr) by 2002:a05:6a00:acb:b0:555:ac02:433e with SMTP id c11-20020a056a000acb00b00555ac02433emr40750199pfl.3.1666729086159; Tue, 25 Oct 2022 13:18:06 -0700 (PDT) Date: Tue, 25 Oct 2022 13:17:43 -0700 Mime-Version: 1.0 X-Mailer: git-send-email 2.38.0.135.g90850a2211-goog Message-ID: <20221025201744.1155260-1-willmcvicker@google.com> Subject: [PATCH v1] kbuild: Use '-f' instead of '--file=' for grep From: Will McVicker To: Masahiro Yamada , Michal Marek , Nick Desaulniers Cc: kernel-team@android.com, Will McVicker , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747692201505835290?= X-GMAIL-MSGID: =?utf-8?q?1747692201505835290?= The posix grep utility doesn't support the longer '--file=pattern_file' command line option which was introduced in commit ce697ccee1a8 ("kbuild: remove head-y syntax"). Let's update Makefile to use '-f pattern_file' to fix the compiling error: grep: Unknown option 'file=.../scripts/head-object-list.txt' (see "grep --help") Signed-off-by: Will McVicker --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) base-commit: 1a2dcbdde82e3a5f1db9b2f4c48aa1aeba534fb2 diff --git a/Makefile b/Makefile index d148a55bfd0f..e90bb2b38607 100644 --- a/Makefile +++ b/Makefile @@ -1218,7 +1218,7 @@ quiet_cmd_ar_vmlinux.a = AR $@ cmd_ar_vmlinux.a = \ rm -f $@; \ $(AR) cDPrST $@ $(KBUILD_VMLINUX_OBJS); \ - $(AR) mPiT $$($(AR) t $@ | head -n1) $@ $$($(AR) t $@ | grep -F --file=$(srctree)/scripts/head-object-list.txt) + $(AR) mPiT $$($(AR) t $@ | head -n1) $@ $$($(AR) t $@ | grep -F -f $(srctree)/scripts/head-object-list.txt) targets += vmlinux.a vmlinux.a: $(KBUILD_VMLINUX_OBJS) scripts/head-object-list.txt autoksyms_recursive FORCE