Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 1 | # Copyright (C) 2017 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | current_makefile := $(lastword $(MAKEFILE_LIST)) |
| 16 | |
| 17 | # BOARD_VNDK_VERSION must be set to 'current' in order to generate a VNDK snapshot. |
| 18 | ifeq ($(BOARD_VNDK_VERSION),current) |
| 19 | |
Jae Shin | 0b1792e | 2017-12-21 19:04:13 +0900 | [diff] [blame] | 20 | # PLATFORM_VNDK_VERSION must be set. |
| 21 | ifneq (,$(PLATFORM_VNDK_VERSION)) |
| 22 | |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 23 | # BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'. |
| 24 | ifneq ($(BOARD_VNDK_RUNTIME_DISABLE),true) |
| 25 | |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 26 | # Returns arch-specific libclang_rt.ubsan* library name. |
| 27 | # Because VNDK_CORE_LIBRARIES includes all arch variants for libclang_rt.ubsan* |
| 28 | # libs, the arch-specific libs are selected separately. |
| 29 | # |
| 30 | # Args: |
| 31 | # $(1): if not empty, evaluates for TARGET_2ND_ARCH |
| 32 | define clang-ubsan-vndk-core |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 33 | $(strip \ |
| 34 | $(eval prefix := $(if $(1),2ND_,)) \ |
| 35 | $(addsuffix .vendor,$($(addprefix $(prefix),UBSAN_RUNTIME_LIBRARY))) \ |
| 36 | ) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 37 | endef |
| 38 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 39 | # Returns list of file paths of the intermediate objs |
| 40 | # |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 41 | # Args: |
Jae Shin | 77c07dd | 2017-12-22 11:24:00 +0900 | [diff] [blame] | 42 | # $(1): list of module and filename pairs (e.g., ld.config.txt:ld.config.27.txt ...) |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 43 | # $(2): target class (e.g., SHARED_LIBRARIES, STATIC_LIBRARIES, ETC) |
| 44 | # $(3): if not empty, evaluates for TARGET_2ND_ARCH |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 45 | define paths-of-intermediates |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 46 | $(strip \ |
Jae Shin | 77c07dd | 2017-12-22 11:24:00 +0900 | [diff] [blame] | 47 | $(foreach pair,$(1), \ |
| 48 | $(eval split_pair := $(subst :,$(space),$(pair))) \ |
| 49 | $(eval module := $(word 1,$(split_pair))) \ |
| 50 | $(eval filename := $(word 2,$(split_pair))) \ |
| 51 | $(eval dir := $(call intermediates-dir-for,$(2),$(module),,,$(3))) \ |
| 52 | $(call append-path,$(dir),$(filename)) \ |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 53 | ) \ |
| 54 | ) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 55 | endef |
| 56 | |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 57 | # Returns paths of notice files under $(TARGET_OUT_NOTICE_FILES) |
| 58 | # |
| 59 | # Args: |
| 60 | # $(1): list of lib names (e.g., libfoo.vendor) |
| 61 | # $(2): vndk lib type, one of 'vndk' or 'vndk-sp' |
| 62 | define paths-of-notice-files |
| 63 | $(strip \ |
| 64 | $(eval lib_dir := lib$(if $(TARGET_IS_64BIT),64,)) \ |
| 65 | $(eval vndk_dir := $(2)-$(PLATFORM_VNDK_VERSION)) \ |
| 66 | $(foreach lib,$(1), \ |
| 67 | $(eval notice_file_name := $(patsubst %.vendor,%.so.txt,$(lib))) \ |
| 68 | $(TARGET_OUT_NOTICE_FILES)/src/system/$(lib_dir)/$(vndk_dir)/$(notice_file_name) \ |
| 69 | ) \ |
| 70 | ) |
| 71 | endef |
| 72 | |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 73 | # If in the future libclang_rt.ubsan* is removed from the VNDK-core list, |
| 74 | # need to update the related logic in this file. |
| 75 | ifeq (,$(filter libclang_rt.ubsan%,$(VNDK_CORE_LIBRARIES))) |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 76 | $(warning libclang_rt.ubsan* is no longer a VNDK-core library. Please update this file.) |
| 77 | vndk_core_libs := $(addsuffix .vendor,$(VNDK_CORE_LIBRARIES)) |
| 78 | else |
| 79 | vndk_core_libs := $(addsuffix .vendor,$(filter-out libclang_rt.ubsan%,$(VNDK_CORE_LIBRARIES))) |
| 80 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 81 | vndk_core_libs += $(call clang-ubsan-vndk-core) |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 82 | ifdef TARGET_2ND_ARCH |
| 83 | vndk_core_libs += $(call clang-ubsan-vndk-core,true) |
| 84 | endif |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 85 | endif |
| 86 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 87 | vndk_sp_libs := $(addsuffix .vendor,$(VNDK_SAMEPROCESS_LIBRARIES)) |
| 88 | vndk_private_libs := $(addsuffix .vendor,$(VNDK_PRIVATE_LIBRARIES)) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 89 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 90 | vndk_snapshot_libs := \ |
| 91 | $(vndk_core_libs) \ |
| 92 | $(vndk_sp_libs) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 93 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 94 | vndk_prebuilt_txts := \ |
| 95 | ld.config.txt \ |
| 96 | vndksp.libraries.txt \ |
| 97 | llndk.libraries.txt |
| 98 | |
| 99 | vndk_snapshot_top := $(call intermediates-dir-for,PACKAGING,vndk-snapshot) |
| 100 | vndk_snapshot_out := $(vndk_snapshot_top)/vndk-snapshot |
| 101 | vndk_snapshot_configs_out := $(vndk_snapshot_top)/configs |
| 102 | |
| 103 | ####################################### |
| 104 | # vndkcore.libraries.txt |
| 105 | vndkcore.libraries.txt := $(vndk_snapshot_configs_out)/vndkcore.libraries.txt |
| 106 | $(vndkcore.libraries.txt): $(vndk_core_libs) |
| 107 | @echo 'Generating: $@' |
| 108 | @rm -f $@ |
| 109 | @mkdir -p $(dir $@) |
| 110 | $(hide) echo -n > $@ |
| 111 | $(hide) $(foreach lib,$^,echo $(patsubst %.vendor,%,$(lib)).so >> $@;) |
| 112 | |
| 113 | |
| 114 | ####################################### |
| 115 | # vndkprivate.libraries.txt |
| 116 | vndkprivate.libraries.txt := $(vndk_snapshot_configs_out)/vndkprivate.libraries.txt |
| 117 | $(vndkprivate.libraries.txt): $(vndk_private_libs) |
| 118 | @echo 'Generating: $@' |
| 119 | @rm -f $@ |
| 120 | @mkdir -p $(dir $@) |
| 121 | $(hide) echo -n > $@ |
| 122 | $(hide) $(foreach lib,$^,echo $(patsubst %.vendor,%,$(lib)).so >> $@;) |
| 123 | |
| 124 | |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 125 | ####################################### |
| 126 | # module_paths.txt |
| 127 | module_paths.txt := $(vndk_snapshot_configs_out)/module_paths.txt |
| 128 | $(module_paths.txt): $(vndk_snapshot_libs) |
| 129 | @echo 'Generating: $@' |
| 130 | @rm -f $@ |
| 131 | @mkdir -p $(dir $@) |
| 132 | $(hide) echo -n > $@ |
| 133 | $(hide) $(foreach lib,$^,echo $(patsubst %.vendor,%,$(lib)).so $(ALL_MODULES.$(lib).PATH) >> $@;) |
| 134 | |
| 135 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 136 | vndk_snapshot_configs := \ |
| 137 | $(vndkcore.libraries.txt) \ |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 138 | $(vndkprivate.libraries.txt) \ |
| 139 | $(module_paths.txt) |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 140 | |
| 141 | ####################################### |
| 142 | # vndk_snapshot_zip |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 143 | vndk_snapshot_variant := $(vndk_snapshot_out)/$(TARGET_ARCH) |
| 144 | vndk_lib_dir := $(vndk_snapshot_variant)/arch-$(TARGET_ARCH)-$(TARGET_ARCH_VARIANT) |
| 145 | vndk_lib_dir_2nd := $(vndk_snapshot_variant)/arch-$(TARGET_2ND_ARCH)-$(TARGET_2ND_ARCH_VARIANT) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 146 | vndk_snapshot_zip := $(PRODUCT_OUT)/android-vndk-$(TARGET_ARCH).zip |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 147 | |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 148 | $(vndk_snapshot_zip): PRIVATE_VNDK_SNAPSHOT_OUT := $(vndk_snapshot_out) |
| 149 | |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 150 | $(vndk_snapshot_zip): PRIVATE_VNDK_CORE_OUT := $(vndk_lib_dir)/shared/vndk-core |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 151 | $(vndk_snapshot_zip): PRIVATE_VNDK_CORE_INTERMEDIATES := \ |
Jae Shin | 77c07dd | 2017-12-22 11:24:00 +0900 | [diff] [blame] | 152 | $(call paths-of-intermediates,$(foreach lib,$(vndk_core_libs),$(lib):$(lib).so),SHARED_LIBRARIES) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 153 | |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 154 | $(vndk_snapshot_zip): PRIVATE_VNDK_SP_OUT := $(vndk_lib_dir)/shared/vndk-sp |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 155 | $(vndk_snapshot_zip): PRIVATE_VNDK_SP_INTERMEDIATES := \ |
Jae Shin | 77c07dd | 2017-12-22 11:24:00 +0900 | [diff] [blame] | 156 | $(call paths-of-intermediates,$(foreach lib,$(vndk_sp_libs),$(lib):$(lib).so),SHARED_LIBRARIES) |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 157 | |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 158 | $(vndk_snapshot_zip): PRIVATE_CONFIGS_OUT := $(vndk_snapshot_variant)/configs |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 159 | $(vndk_snapshot_zip): PRIVATE_CONFIGS_INTERMEDIATES := \ |
Jae Shin | 77c07dd | 2017-12-22 11:24:00 +0900 | [diff] [blame] | 160 | $(call paths-of-intermediates,$(foreach txt,$(vndk_prebuilt_txts), \ |
| 161 | $(txt):$(patsubst %.txt,%.$(PLATFORM_VNDK_VERSION).txt,$(txt))),ETC) \ |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 162 | $(vndk_snapshot_configs) |
| 163 | |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 164 | $(vndk_snapshot_zip): PRIVATE_NOTICE_FILES_OUT := $(vndk_snapshot_variant)/NOTICE_FILES |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 165 | $(vndk_snapshot_zip): PRIVATE_NOTICE_FILES_INTERMEDIATES := \ |
| 166 | $(call paths-of-notice-files,$(vndk_core_libs),vndk) \ |
| 167 | $(call paths-of-notice-files,$(vndk_sp_libs),vndk-sp) |
| 168 | |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 169 | ifdef TARGET_2ND_ARCH |
| 170 | $(vndk_snapshot_zip): PRIVATE_VNDK_CORE_OUT_2ND := $(vndk_lib_dir_2nd)/shared/vndk-core |
| 171 | $(vndk_snapshot_zip): PRIVATE_VNDK_CORE_INTERMEDIATES_2ND := \ |
| 172 | $(call paths-of-intermediates,$(foreach lib,$(vndk_core_libs),$(lib):$(lib).so),SHARED_LIBRARIES,true) |
| 173 | |
| 174 | $(vndk_snapshot_zip): PRIVATE_VNDK_SP_OUT_2ND := $(vndk_lib_dir_2nd)/shared/vndk-sp |
| 175 | $(vndk_snapshot_zip): PRIVATE_VNDK_SP_INTERMEDIATES_2ND := \ |
| 176 | $(call paths-of-intermediates,$(foreach lib,$(vndk_sp_libs),$(lib):$(lib).so),SHARED_LIBRARIES,true) |
| 177 | endif |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 178 | |
| 179 | # Args |
| 180 | # $(1): destination directory |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 181 | # $(2): list of files to copy |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 182 | $(vndk_snapshot_zip): private-copy-vndk-intermediates = \ |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 183 | $(if $(2),$(strip \ |
| 184 | @mkdir -p $(1); \ |
| 185 | $(foreach file,$(2), \ |
| 186 | if [ -e $(file) ]; then \ |
| 187 | cp -p $(file) $(call append-path,$(1),$(subst .vendor,,$(notdir $(file)))); \ |
| 188 | fi; \ |
| 189 | ) \ |
| 190 | )) |
| 191 | |
| 192 | vndk_snapshot_dependencies := \ |
| 193 | $(vndk_snapshot_libs) \ |
| 194 | $(vndk_prebuilt_txts) \ |
| 195 | $(vndk_snapshot_configs) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 196 | |
| 197 | $(vndk_snapshot_zip): $(vndk_snapshot_dependencies) $(SOONG_ZIP) |
| 198 | @echo 'Generating VNDK snapshot: $@' |
| 199 | @rm -f $@ |
| 200 | @rm -rf $(PRIVATE_VNDK_SNAPSHOT_OUT) |
| 201 | @mkdir -p $(PRIVATE_VNDK_SNAPSHOT_OUT) |
| 202 | $(call private-copy-vndk-intermediates, \ |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 203 | $(PRIVATE_VNDK_CORE_OUT),$(PRIVATE_VNDK_CORE_INTERMEDIATES)) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 204 | $(call private-copy-vndk-intermediates, \ |
Jae Shin | c13c0ea | 2017-12-04 13:16:21 +0900 | [diff] [blame] | 205 | $(PRIVATE_VNDK_SP_OUT),$(PRIVATE_VNDK_SP_INTERMEDIATES)) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 206 | $(call private-copy-vndk-intermediates, \ |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 207 | $(PRIVATE_CONFIGS_OUT),$(PRIVATE_CONFIGS_INTERMEDIATES)) |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 208 | $(call private-copy-vndk-intermediates, \ |
| 209 | $(PRIVATE_NOTICE_FILES_OUT),$(PRIVATE_NOTICE_FILES_INTERMEDIATES)) |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 210 | ifdef TARGET_2ND_ARCH |
| 211 | $(call private-copy-vndk-intermediates, \ |
| 212 | $(PRIVATE_VNDK_CORE_OUT_2ND),$(PRIVATE_VNDK_CORE_INTERMEDIATES_2ND)) |
| 213 | $(call private-copy-vndk-intermediates, \ |
| 214 | $(PRIVATE_VNDK_SP_OUT_2ND),$(PRIVATE_VNDK_SP_INTERMEDIATES_2ND)) |
| 215 | endif |
Jae Shin | c13c0ea | 2017-12-04 13:16:21 +0900 | [diff] [blame] | 216 | $(hide) $(SOONG_ZIP) -o $@ -C $(PRIVATE_VNDK_SNAPSHOT_OUT) -D $(PRIVATE_VNDK_SNAPSHOT_OUT) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 217 | |
| 218 | .PHONY: vndk |
| 219 | vndk: $(vndk_snapshot_zip) |
| 220 | |
| 221 | $(call dist-for-goals, vndk, $(vndk_snapshot_zip)) |
| 222 | |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 223 | # clear global vars |
| 224 | clang-ubsan-vndk-core := |
| 225 | paths-of-intermediates := |
Jae Shin | 410a1af | 2017-12-15 19:35:16 +0900 | [diff] [blame] | 226 | paths-of-notice-files := |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 227 | vndk_core_libs := |
| 228 | vndk_sp_libs := |
| 229 | vndk_snapshot_libs := |
| 230 | vndk_prebuilt_txts := |
| 231 | vndk_snapshot_configs := |
| 232 | vndk_snapshot_top := |
| 233 | vndk_snapshot_out := |
| 234 | vndk_snapshot_configs_out := |
Jae Shin | 893fca6 | 2017-12-28 16:00:10 +0900 | [diff] [blame] | 235 | vndk_snapshot_variant := |
| 236 | vndk_lib_dir := |
| 237 | vndk_lib_dir_2nd := |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 238 | vndk_snapshot_dependencies := |
Jae Shin | 4736dc1 | 2017-11-22 19:25:36 +0900 | [diff] [blame] | 239 | |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 240 | else # BOARD_VNDK_RUNTIME_DISABLE is set to 'true' |
| 241 | error_msg := "CANNOT generate VNDK snapshot. BOARD_VNDK_RUNTIME_DISABLE must not be set to 'true'." |
| 242 | endif # BOARD_VNDK_RUNTIME_DISABLE |
| 243 | |
Jae Shin | 0b1792e | 2017-12-21 19:04:13 +0900 | [diff] [blame] | 244 | else # PLATFORM_VNDK_VERSION is NOT set |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 245 | error_msg := "CANNOT generate VNDK snapshot. PLATFORM_VNDK_VERSION must be set." |
Jae Shin | 0b1792e | 2017-12-21 19:04:13 +0900 | [diff] [blame] | 246 | endif # PLATFORM_VNDK_VERSION |
| 247 | |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 248 | else # BOARD_VNDK_VERSION is NOT set to 'current' |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 249 | error_msg := "CANNOT generate VNDK snapshot. BOARD_VNDK_VERSION must be set to 'current'." |
| 250 | endif # BOARD_VNDK_VERSION |
| 251 | |
| 252 | ifneq (,$(error_msg)) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 253 | |
| 254 | .PHONY: vndk |
| 255 | vndk: |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 256 | $(call echo-error,$(current_makefile),$(error_msg)) |
Jae Shin | e6b7c84 | 2017-10-20 17:46:46 +0900 | [diff] [blame] | 257 | exit 1 |
| 258 | |
Justin Yun | 4dff0c6 | 2018-01-04 10:51:16 +0900 | [diff] [blame] | 259 | endif |