Commit 27e89e07 authored by Daniel Mentz's avatar Daniel Mentz Committed by Treehugger Robot
Browse files

UPSTREAM: kheaders: Have cpio unconditionally replace files



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.

Bug: 183998601
Signed-off-by: default avatarDaniel Mentz <danielmentz@google.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
(cherry picked from commit 1e8ca62b)
Change-Id: Ib789720478818321ce124a9ef124d336f6282e1b
parent f6090aae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment