Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

scripts: remove bin2c

Commit 80f8be7af03f ("tomoyo: Omit use of bin2c") removed the last
use of bin2c.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com>

+2 -43
-1
Documentation/dontdiff
··· 91 91 autoconf.h* 92 92 av_permissions.h 93 93 bbootsect 94 - bin2c 95 94 binkernel.spec 96 95 bootsect 97 96 bounds.h
-4
init/Kconfig
··· 682 682 683 683 source "kernel/rcu/Kconfig" 684 684 685 - config BUILD_BIN2C 686 - bool 687 - default n 688 - 689 685 config IKCONFIG 690 686 tristate "Kernel .config support" 691 687 help
-1
scripts/.gitignore
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 /asn1_compiler 3 - /bin2c 4 3 /generate_rust_target 5 4 /insert-sys-cert 6 5 /kallsyms
-1
scripts/Makefile
··· 3 3 # scripts contains sources for various helper programs used throughout 4 4 # the kernel for the build process. 5 5 6 - hostprogs-always-$(CONFIG_BUILD_BIN2C) += bin2c 7 6 hostprogs-always-$(CONFIG_KALLSYMS) += kallsyms 8 7 hostprogs-always-$(BUILD_C_RECORDMCOUNT) += recordmcount 9 8 hostprogs-always-$(CONFIG_BUILDTIME_TABLE_SORT) += sorttable
-36
scripts/bin2c.c
··· 1 - /* 2 - * Unloved program to convert a binary on stdin to a C include on stdout 3 - * 4 - * Jan 1999 Matt Mackall <mpm@selenic.com> 5 - * 6 - * This software may be used and distributed according to the terms 7 - * of the GNU General Public License, incorporated herein by reference. 8 - */ 9 - 10 - #include <stdio.h> 11 - 12 - int main(int argc, char *argv[]) 13 - { 14 - int ch, total = 0; 15 - 16 - if (argc > 1) 17 - printf("const char %s[] %s=\n", 18 - argv[1], argc > 2 ? argv[2] : ""); 19 - 20 - do { 21 - printf("\t\""); 22 - while ((ch = getchar()) != EOF) { 23 - total++; 24 - printf("\\x%02x", ch); 25 - if (total % 16 == 0) 26 - break; 27 - } 28 - printf("\"\n"); 29 - } while (ch != EOF); 30 - 31 - if (argc > 1) 32 - printf("\t;\n\n#include <linux/types.h>\n\nconst size_t %s_size = %d;\n", 33 - argv[1], total); 34 - 35 - return 0; 36 - }
+2
scripts/remove-stale-files
··· 29 29 rm -f scripts/kconfig/[gmnq]conf-cfg 30 30 31 31 rm -f rust/target.json 32 + 33 + rm -f scripts/bin2c