Skip to content

Commit 4484aa8

Browse files
masahir0ygregkh
authored andcommitted
tty: vt: move conmakehash to drivers/tty/vt/ from scripts/
scripts/conmakehash is only used for generating drivers/tty/vt/consolemap_deftbl.c Move it to the related directory. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Link: https://lore.kernel.org/r/20191217110633.8796-1-masahiroy@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f1d3174 commit 4484aa8

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎drivers/tty/vt/.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# SPDX-License-Identifier: GPL-2.0
2+
conmakehash
23
consolemap_deftbl.c
34
defkeymap.c

‎drivers/tty/vt/Makefile‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ obj-$(CONFIG_HW_CONSOLE) += vt.o defkeymap.o
1212
# Files generated that shall be removed upon make clean
1313
clean-files := consolemap_deftbl.c defkeymap.c
1414

15+
hostprogs-y += conmakehash
16+
1517
quiet_cmd_conmk = CONMK $@
16-
cmd_conmk = scripts/conmakehash $< > $@
18+
cmd_conmk = $(obj)/conmakehash $< > $@
1719

18-
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE)
20+
$(obj)/consolemap_deftbl.c: $(src)/$(FONTMAPFILE) $(obj)/conmakehash
1921
$(call cmd,conmk)
2022

2123
$(obj)/defkeymap.o: $(obj)/defkeymap.c

‎scripts/.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
# Generated files
33
#
44
bin2c
5-
conmakehash
65
kallsyms
76
unifdef
87
recordmcount

‎scripts/Makefile‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
# the kernel for the build process.
55
# ---------------------------------------------------------------------------
66
# kallsyms: Find all symbols in vmlinux
7-
# conmakehash: Create chartable
8-
# conmakehash: Create arrays for initializing the kernel console tables
97

108
HOST_EXTRACFLAGS += -I$(srctree)/tools/include
119

1210
hostprogs-$(CONFIG_BUILD_BIN2C) += bin2c
1311
hostprogs-$(CONFIG_KALLSYMS) += kallsyms
14-
hostprogs-$(CONFIG_VT) += conmakehash
1512
hostprogs-$(BUILD_C_RECORDMCOUNT) += recordmcount
1613
hostprogs-$(CONFIG_BUILDTIME_EXTABLE_SORT) += sortextable
1714
hostprogs-$(CONFIG_ASN1) += asn1_compiler

0 commit comments

Comments
 (0)