5f2fb52fac
In old days, the "host-progs" syntax was used for specifying host programs. It was renamed to the current "hostprogs-y" in 2004. It is typically useful in scripts/Makefile because it allows Kbuild to selectively compile host programs based on the kernel configuration. This commit renames like follows: always -> always-y hostprogs-y -> hostprogs So, scripts/Makefile will look like this: always-$(CONFIG_BUILD_BIN2C) += ... always-$(CONFIG_KALLSYMS) += ... ... hostprogs := $(always-y) $(always-m) I think this makes more sense because a host program is always a host program, irrespective of the kernel configuration. We want to specify which ones to compile by CONFIG options, so always-y will be handier. The "always", "hostprogs-y", "hostprogs-m" will be kept for backward compatibility for a while. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
39 lines
1.0 KiB
Makefile
39 lines
1.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
obj-$(CONFIG_UNICODE) += unicode.o
|
|
obj-$(CONFIG_UNICODE_NORMALIZATION_SELFTEST) += utf8-selftest.o
|
|
|
|
unicode-y := utf8-norm.o utf8-core.o
|
|
|
|
$(obj)/utf8-norm.o: $(obj)/utf8data.h
|
|
|
|
# In the normal build, the checked-in utf8data.h is just shipped.
|
|
#
|
|
# To generate utf8data.h from UCD, put *.txt files in this directory
|
|
# and pass REGENERATE_UTF8DATA=1 from the command line.
|
|
ifdef REGENERATE_UTF8DATA
|
|
|
|
quiet_cmd_utf8data = GEN $@
|
|
cmd_utf8data = $< \
|
|
-a $(srctree)/$(src)/DerivedAge.txt \
|
|
-c $(srctree)/$(src)/DerivedCombiningClass.txt \
|
|
-p $(srctree)/$(src)/DerivedCoreProperties.txt \
|
|
-d $(srctree)/$(src)/UnicodeData.txt \
|
|
-f $(srctree)/$(src)/CaseFolding.txt \
|
|
-n $(srctree)/$(src)/NormalizationCorrections.txt \
|
|
-t $(srctree)/$(src)/NormalizationTest.txt \
|
|
-o $@
|
|
|
|
$(obj)/utf8data.h: $(obj)/mkutf8data $(filter %.txt, $(cmd_utf8data)) FORCE
|
|
$(call if_changed,utf8data)
|
|
|
|
else
|
|
|
|
$(obj)/utf8data.h: $(src)/utf8data.h_shipped FORCE
|
|
$(call if_changed,shipped)
|
|
|
|
endif
|
|
|
|
targets += utf8data.h
|
|
hostprogs += mkutf8data
|