From ad54e32651c9de5079ca1b6e637edb2ebfe59656 Mon Sep 17 00:00:00 2001 From: David Bauer Date: Sat, 27 Feb 2021 19:12:09 +0100 Subject: tools: add cpio mediatek-mt7622 as well as mediatek-mt7623 require CPIO to create their initramfs images. So build CPIO as part of the host toolchain. Signed-off-by: David Bauer --- tools/cpio/patches/001-duplicate-program-name.patch | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/cpio/patches/001-duplicate-program-name.patch (limited to 'tools/cpio/patches') diff --git a/tools/cpio/patches/001-duplicate-program-name.patch b/tools/cpio/patches/001-duplicate-program-name.patch new file mode 100644 index 0000000000..57ff4c3cad --- /dev/null +++ b/tools/cpio/patches/001-duplicate-program-name.patch @@ -0,0 +1,20 @@ +author Sergey Poznyakoff + +https://git.savannah.gnu.org/cgit/cpio.git/commit/?id=641d3f489cf6238bb916368d4ba0d9325a235afb + +* src/global.c: Remove superfluous declaration of program_name + +diff --git a/src/global.c b/src/global.c +index fb3abe9..acf92bc 100644 +--- a/src/global.c ++++ b/src/global.c +@@ -184,9 +184,6 @@ unsigned int warn_option = 0; + /* Extract to standard output? */ + bool to_stdout_option = false; + +-/* The name this program was run with. */ +-char *program_name; +- + /* A pointer to either lstat or stat, depending on whether + dereferencing of symlinks is done for input files. */ + int (*xstat) (); -- cgit v1.2.3