1 # SPDX-License-Identifier: GPL-2.0 1 # SPDX-License-Identifier: GPL-2.0 2 2 3 ifneq ($(CONFIG_UNICODE),) !! 3 obj-$(CONFIG_UNICODE) += unicode.o 4 obj-y += unicode.o << 5 endif << 6 obj-$(CONFIG_UNICODE) += utf8data.o << 7 obj-$(CONFIG_UNICODE_NORMALIZATION_SELFTEST) + 4 obj-$(CONFIG_UNICODE_NORMALIZATION_SELFTEST) += utf8-selftest.o 8 5 9 unicode-y := utf8-norm.o utf8-core.o 6 unicode-y := utf8-norm.o utf8-core.o 10 7 11 $(obj)/utf8-data.o: $(obj)/utf8data.c !! 8 $(obj)/utf8-norm.o: $(obj)/utf8data.h 12 9 13 # In the normal build, the checked-in utf8data !! 10 # In the normal build, the checked-in utf8data.h is just shipped. 14 # 11 # 15 # To generate utf8data.c from UCD, put *.txt f !! 12 # To generate utf8data.h from UCD, put *.txt files in this directory 16 # and pass REGENERATE_UTF8DATA=1 from the comm 13 # and pass REGENERATE_UTF8DATA=1 from the command line. 17 ifdef REGENERATE_UTF8DATA 14 ifdef REGENERATE_UTF8DATA 18 15 19 quiet_cmd_utf8data = GEN $@ 16 quiet_cmd_utf8data = GEN $@ 20 cmd_utf8data = $< \ 17 cmd_utf8data = $< \ 21 -a $(src)/DerivedAge.txt \ !! 18 -a $(srctree)/$(src)/DerivedAge.txt \ 22 -c $(src)/DerivedCombiningClas !! 19 -c $(srctree)/$(src)/DerivedCombiningClass.txt \ 23 -p $(src)/DerivedCorePropertie !! 20 -p $(srctree)/$(src)/DerivedCoreProperties.txt \ 24 -d $(src)/UnicodeData.txt \ !! 21 -d $(srctree)/$(src)/UnicodeData.txt \ 25 -f $(src)/CaseFolding.txt \ !! 22 -f $(srctree)/$(src)/CaseFolding.txt \ 26 -n $(src)/NormalizationCorrect !! 23 -n $(srctree)/$(src)/NormalizationCorrections.txt \ 27 -t $(src)/NormalizationTest.tx !! 24 -t $(srctree)/$(src)/NormalizationTest.txt \ 28 -o $@ 25 -o $@ 29 26 30 $(obj)/utf8data.c: $(obj)/mkutf8data $(filter !! 27 $(obj)/utf8data.h: $(obj)/mkutf8data $(filter %.txt, $(cmd_utf8data)) FORCE 31 $(call if_changed,utf8data) 28 $(call if_changed,utf8data) 32 29 33 else 30 else 34 31 35 $(obj)/utf8data.c: $(src)/utf8data.c_shipped F !! 32 $(obj)/utf8data.h: $(src)/utf8data.h_shipped FORCE 36 $(call if_changed,copy) !! 33 $(call if_changed,shipped) 37 34 38 endif 35 endif 39 36 40 targets += utf8data.c !! 37 targets += utf8data.h 41 hostprogs += mkutf8data 38 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.