1LOCAL_PATH := $(call my-dir) 2 3# Build a module that has all of the python files as its LOCAL_PICKUP_FILES. 4# Since no action needs to be taken to compile the python source, just 5# use BUILD_PHONY_PACKAGE to give us a target to execute. 6include $(CLEAR_VARS) 7 8LOCAL_MODULE := bootloader_unit_test 9LOCAL_MODULE_TAGS := tests 10 11bootloader_py_files := $(call find-subdir-files, *.py) 12 13bootloader_zip_prefix := $(TARGET_OUT_DATA)/py_bootloader 14bootloader_zip_path := $(bootloader_zip_prefix)/nativetest/py_bootloader 15 16GEN := $(addprefix $(bootloader_zip_path)/, $(bootloader_py_files)) 17$(GEN) : PRIVATE_PATH := $(LOCAL_PATH) 18$(GEN) : PRIVATE_CUSTOM_TOOL = cp $< $@ 19$(GEN) : $(bootloader_zip_path)/% : $(LOCAL_PATH)/% 20 $(transform-generated-source) 21 22LOCAL_PICKUP_FILES := $(bootloader_zip_prefix)/nativetest 23LOCAL_ADDITIONAL_DEPENDENCIES := $(GEN) 24 25include $(BUILD_PHONY_PACKAGE) 26