https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: ec3dc0899c1969807a1015cfe62bd8d88b88c60c authored by a1ex on 19 June 2016, 18:36:58 UTC
Close branch dpjpandone/fixes-magic-zoom-flicker-on-eosm-1439856235754.
Tip revision: ec3dc08
Makefile.platform.extras
ML_BUILD_FIR_PLATFORM_FILE = autoexec-fir.bin

build_fir: $(ML_BUILD_FIR_PLATFORM_FILE)
ifndef ML_BUILD_FIR_DIR
	$(eval ML_BUILD_FIR_DIR=../../../dumper)
endif
ifndef CANON_FIR_DIR
	$(eval CANON_FIR_DIR=$(ML_BUILD_FIR_DIR))
endif
ifndef ML_INSTALLER_BUILD_FIR
ifndef CANON_NAME_FIR
	$(warning CANON_NAME_FIR is not defined)
endif
ifndef UPDATE_NAME_FIR
	$(error UPDATE_NAME_FIR is not defined)
endif

ifndef CANON_NAME_FIR
	$(eval CANON_FIR_PATH = )
else
	$(eval CANON_FIR_PATH = $(CANON_FIR_DIR)/$(CANON_NAME_FIR))
endif

	$(eval ML_INSTALLER_BUILD_FIR = python $(ML_BUILD_FIR_DIR)/build_fir.py -r \
											$(CANON_FIR_PATH) $(ML_BUILD_FIR_PLATFORM_FILE) $(UPDATE_NAME_FIR))
endif

	-$(ML_INSTALLER_BUILD_FIR)

install_fir: build_fir
	@-$(CP) $(UPDATE_NAME_FIR) $(INSTALL_DIR)/

clean_fir::
	$(call rm_files, $(ML_BUILD_FIR_PLATFORM_FILE) $(UPDATE_NAME))

clean_install_fir: install_fir | clean_fir
back to top