1 # SPDX-License-Identifier: GPL-2.0 2 3 ifneq ($(CONFIG_UNICODE),) 4 obj-y += unicode.o 5 endif 6 obj-$(CONFIG_UNICODE) += utf8data.o 7 obj-$(CONFIG_UNICODE_NORMALIZATION_SELFTEST) + 8 9 unicode-y := utf8-norm.o utf8-core.o 10 11 $(obj)/utf8-data.o: $(obj)/utf8data.c 12 13 # In the normal build, the checked-in utf8data 14 # 15 # To generate utf8data.c from UCD, put *.txt f 16 # and pass REGENERATE_UTF8DATA=1 from the comm 17 ifdef REGENERATE_UTF8DATA 18 19 quiet_cmd_utf8data = GEN $@ 20 cmd_utf8data = $< \ 21 -a $(src)/DerivedAge.txt \ 22 -c $(src)/DerivedCombiningClas 23 -p $(src)/DerivedCorePropertie 24 -d $(src)/UnicodeData.txt \ 25 -f $(src)/CaseFolding.txt \ 26 -n $(src)/NormalizationCorrect 27 -t $(src)/NormalizationTest.tx 28 -o $@ 29 30 $(obj)/utf8data.c: $(obj)/mkutf8data $(filter 31 $(call if_changed,utf8data) 32 33 else 34 35 $(obj)/utf8data.c: $(src)/utf8data.c_shipped F 36 $(call if_changed,copy) 37 38 endif 39 40 targets += utf8data.c 41 hostprogs += mkutf8data
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.