1ifeq (0,1) 2LOCAL_PATH := $(call my-dir) 3 4define _add-ducati-vendor-bin 5include $$(CLEAR_VARS) 6$(if $(word 2,$1),$(error Invalid DUCATI module name $1)) 7LOCAL_MODULE := $(basename $(notdir $1)) 8LOCAL_SRC_FILES := $1 9LOCAL_MODULE_TAGS := optional 10LOCAL_MODULE_SUFFIX := $(suffix $1) 11LOCAL_MODULE_CLASS := EXECUTABLES 12LOCAL_MODULE_PATH := $$(TARGET_OUT)$(abspath /$(dir $1)) 13OVERRIDE_BUILT_MODULE_PATH := $$(TARGET_OUT_INTERMEDIATE_EXECUTABLES) 14include $$(BUILD_PREBUILT) 15endef 16 17prebuilt_ducati_vendor_bins := \ 18 etc/firmware/ducati-m3.bin 19 20prebuilt_ducati_modules := \ 21 $(foreach _file, $(prebuilt_ducati_vendor_bins),\ 22 $(notdir $(basename $(_file)))) 23 24include $(CLEAR_VARS) 25LOCAL_MODULE := ti_omap4_ducati_bins 26LOCAL_MODULE_TAGS := optional 27LOCAL_REQUIRED_MODULES := $(prebuilt_ducati_modules) 28include $(BUILD_PHONY_PACKAGE) 29 30$(foreach _file,$(prebuilt_ducati_vendor_bins),\ 31 $(eval $(call _add-ducati-vendor-bin,$(_file)))) 32 33prebuilt_ducati_modules := 34prebuilt_ducati_vendor_bins := 35_add-ducati-vendor-bin := 36endif 37