Received: by 2002:a19:f614:0:0:0:0:0 with SMTP id x20csp56062lfe; Fri, 15 Apr 2022 19:15:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy05bjcVQAm86Y/JsyOFZXBvFzlXfxL3DwR+9KIix8nmVhqKrZPl5SVALCsNptZFwm3kvld X-Received: by 2002:a17:902:ed83:b0:158:c459:ab59 with SMTP id e3-20020a170902ed8300b00158c459ab59mr1678592plj.161.1650075354610; Fri, 15 Apr 2022 19:15:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650075354; cv=none; d=google.com; s=arc-20160816; b=EcJvmAg7bNKAoay5lrPSWB59yTtWYRoL/IEaMH7tGhJjbQwBcvOIJbPfUa4YeM9t/S EjkYC5IPIpWxO4UTWPO3bCgc8R7J5GpkS1UShzvURiDr9MCZeCQfBGVsPioMtForWzRK UQSWh8Jo7VLE6F7VV2w4Za+odRqr8+z8kSUW7JeKz7WXfWHkGV961i4O7udUwRmGfmxa r4bKAD8+CcR2HoD8dBKDf+xfi4871j4HwEy0CjTd8D2+XDAyFEGNVAHjTHNE9XLjXrn9 LlJ4Hkgz6AB4iQlGUR7BV3+vW8PfD61bwHppizmDnZcfT9L31OxckgC+RAnMFZI2TRDL HN7Q== 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:mime-version:message-id:date :dkim-signature; bh=hqbBQ1UHiAq6yPD/obiExSsWr8OVHyutnWPxkOqwm04=; b=AyWRmMOz7bUVVFbXSAyPhAo4M5dn14bIZAfq6Mj/xBPOkGYnZxeBgwpBZffgCvYo5n QZA9kWsOE/i9ZLo+NYk3bWPS0KKjsVeZFEO5470aTQPWb6ohn0U1Sb0BtuPhL6tR3g3O JJdmcqbBCFDymz8UuLAooa4Oosf0aYpLO60q8qz8Oc6DT+Z8zzRUVBP9U4e1oWbeF3iQ mhNBSBou5g8pN2Z421Q4aRc11Ga4AySVADHuFzrRuIRCAwutsObl3Sx+a5TcNXbPaC2A yduHSRUk/1cqk/OgKTLv2YVtSkuS0hZjSVPpsQ2Ah0X3jHvv8I2ru1jWyqAVzLkl2o7K UkCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=pnwR6pxx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id y19-20020a63b513000000b003816043ee8asi3336877pge.127.2022.04.15.19.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Apr 2022 19:15:54 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=pnwR6pxx; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D7BC21794D; Fri, 15 Apr 2022 18:31:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236477AbiDMXjm (ORCPT + 99 others); Wed, 13 Apr 2022 19:39:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbiDMXjk (ORCPT ); Wed, 13 Apr 2022 19:39:40 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C511637A8A for ; Wed, 13 Apr 2022 16:37:17 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id j129-20020a252387000000b00641e1faafecso1397612ybj.3 for ; Wed, 13 Apr 2022 16:37:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=hqbBQ1UHiAq6yPD/obiExSsWr8OVHyutnWPxkOqwm04=; b=pnwR6pxxgtbYeabmZzhgM2ZshQQstKBSocvlMJmZJTGISffIT+RFpVMnoUY0Zp6Ro6 U5AYha/gQhwgntfiPz0YqNMG2v/7xA0WH/A7DDSsCFsmku15fLCBLIicqedm9zrKqIQp xi2T4uN3QG8fM/HsxDqZ/ztQRIINFqBSx9VP1fza+21ig8jgrXHQQ9NdzI6MEom0I3nJ zSmg6g4yb+B6CskL1bHWSmPyMsJejE1MYVEYB4VqNXmryIpBsM8jqO/knvLo3V50y2eD 4dyCzfFe/T9ee0ZmtPvh11lzHlXwvHn/mzdJe6UzKKZ+iStbQMSgO+QYikpsw5dN3tqq d8zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=hqbBQ1UHiAq6yPD/obiExSsWr8OVHyutnWPxkOqwm04=; b=YcrUfTqhyH84P3fSCRuSHG/VVjW6EMPWou6fl8lS6Sd8qqlR5IIMCAzYPxLKnwb7mF 73gHptSii6M7r4fOsHlF4BdmNCTYE8nfiVg5iACvTOVKw+AFhA7rkQFZHoN3b8g7sYl8 WfYzGLr76q89gmHMhqr+A1eBzrmaPPicNw6BI4MxMeOvX4EBeFpi1pj0imXgtEW7Y27t d2iikkkkxgXxIobyZmNna66yVCREVffWcKWb6c9bSOF0NUjjsuN9G3tDqSROILuJ6LwE tLZJIBhsvZLQNbe7+nF0xWbkpQZO2TFQoFYwzsROAHkVw9rulQo+IRyYwepmRs0WUc+8 qylg== X-Gm-Message-State: AOAM5300Si7mLmCxv5+W224YpPlHCbejp9oglKe9d8OXf3uMFiD6sLQ+ 4CRo2BIT3gr3/uKyzfAltgaPLPwIljtYSNd/Zw== X-Received: from danielmentz2.mtv.corp.google.com ([2620:15c:211:201:10be:e406:e1e1:4b1d]) (user=danielmentz job=sendgmr) by 2002:a05:6902:1202:b0:641:e3e1:8e2f with SMTP id s2-20020a056902120200b00641e3e18e2fmr1024911ybu.597.1649893037019; Wed, 13 Apr 2022 16:37:17 -0700 (PDT) Date: Wed, 13 Apr 2022 16:36:49 -0700 Message-Id: <20220413233649.1394087-1-danielmentz@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.36.0.rc0.470.gd361397f0d-goog Subject: [PATCH] kheaders: Have cpio unconditionally replace files From: Daniel Mentz To: Masahiro Yamada , Alexey Dobriyan , Joel Fernandes Cc: linux-kernel@vger.kernel.org, Daniel Mentz Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.5 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, 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 For out-of-tree builds, this script invokes cpio twice to copy header files from the srctree and subsequently from the objtree. According to a comment in the script, there might be situations in which certain files already exist in the destination directory when header files are copied from the objtree: "The second CPIO can complain if files already exist which can happen with out of tree builds having stale headers in srctree. Just silence CPIO for now." GNU cpio might simply print a warning like "newer or same age version exists", but toybox cpio exits with a non-zero exit code unless the command line option "-u" is specified. To improve compatibility with toybox cpio, add the command line option "-u" to unconditionally replace existing files in the destination directory. Signed-off-by: Daniel Mentz --- kernel/gen_kheaders.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/gen_kheaders.sh b/kernel/gen_kheaders.sh index 1966a749e0d9..0c78e64f747d 100755 --- a/kernel/gen_kheaders.sh +++ b/kernel/gen_kheaders.sh @@ -74,7 +74,7 @@ fi # of tree builds having stale headers in srctree. Just silence CPIO for now. for f in $dir_list; do find "$f" -name "*.h"; -done | cpio --quiet -pd $cpio_dir >/dev/null 2>&1 +done | cpio --quiet -pdu $cpio_dir >/dev/null 2>&1 # Remove comments except SDPX lines find $cpio_dir -type f -print0 | -- 2.36.0.rc0.470.gd361397f0d-goog