Source

Magic Lantern / platform / 5D3.113 / Makefile

#Makefile for 5D Mark III firmware 113

TOP_DIR=../..
include $(TOP_DIR)/Makefile.top

#must be defined first because they are used in Makefile.inc, for $(VERSION) for example
FW_VERSION=113
MODEL=5D3
ML_VERSION=unified1 


# compile position independent (experimental)
CONFIG_PIC=n

#used in CFLAGS
PLATFORM_INC=.

PLATFORM_DIR=$(PLATFORM_PATH)/$(MODEL).$(FW_VERSION)

# magiclantern.lds script MUST be first
# entry.o MUST be second
# menu.o and debug.o must come before the modules
ML_OBJS-y = \
	magiclantern.lds \
	entry.o \
	boot-hack.o \
	stubs.o \
	version.o \
	exmem.o \
	bmp.o \
	video_hacks.o \
	fio-5d3.o \
	font-dyn.o \
	config.o \
	menu.o \
	debug.o \
	stdio.o \
	bitrate-5d3.o \
	tweaks.o \
	lens.o \
	property.o \
	propvalues.o \
	gui.o \
	gui-common.o \
	misc.o \
	picstyle.o \
	cfn.o \
	zebra.o \
	shoot.o \
	chdk-gui_draw.o \
	movtweaks.o \
	menuhelp.o \
	menuindex.o \
	focus.o \
	notify_box.o \
	dialog_test.o \
	vram.o \
	aj_port.o \
	fps-engio.o \
	tasks.o \
	tskmon.o \
	state-object.o \
	hdr.o \
	lv-img-engio.o \
	beep.o \
	audio-ak.o \
	vsync-lite.o \
	battery.o \
	ph_info_disp.o \
	flexinfo.o \
	afma.o \
	chdk-dng.o \

#include generic rules and definitions
#TOP_DIR defined in upper Makefile
include ../../Makefile.inc

# DryOSmemory map
# RESTARTSTART is selected to be just above the end of the bss
#
ROMBASEADDR		= 0xFF0C0000
RESTARTSTART	= 0x00069500
AUTOEXEC_BASE   = 0x40800000
FIR_BASE        = 0x40800120

CFLAGS += -DCONFIG_5D3_MINIMAL=1 -DCONFIG_NO_SNAP_SIM=1

x: 
	make clean
	make autoexec-fir.bin
	python ../../../dumper/build_fir.py -r ../../../dumper/5D300113.FIR autoexec-fir.bin ml-5D3-113.fir