https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 859b97c84c054ec61e26ec6359c2f2801040faaa authored by g3gg0 on 12 October 2012, 18:03:24 UTC
7D: about page update
Tip revision: 859b97c
Makefile
#Makefile for 7D firmware 203

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

#must be defined first because they are used in Makefile.inc, for $(VERSION) for example
FW_VERSION=203
MODEL=7D
UPDATE_NAME=7D_203.fir
ML_VERSION=unified1 

#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 \
	$(SRC_DIR)/entry.o \
	boot-hack.o \
	stubs.o \
	version.o \
	bmp.o \
	font-dyn.o \
	config.o \
	menu.o \
	debug.o \
	stdio.o \
	audio-ak.o \
	bitrate.o \
	property.o \
	propvalues.o \
	gui.o \
	gui-common.o \
	misc.o \
	tweaks.o \
	lens.o \
	picstyle.o \
	cfn.o \
	zebra.o \
	shoot.o \
	chdk-gui_draw.o \
	movtweaks.o \
	my_memset.o \
	menuhelp.o \
	menuindex.o \
	af_patterns.o \
	focus.o \
	notify_box.o \
	bootflags.o \
	dialog_test.o \
	vram.o \
	morse.o \
	aj_port.o \
	fps-engio.o \
	hdr.o \
	lv-img-engio.o \
	state-object.o \
	tasks.o \
	tskmon.o \
	beep.o \
	ptp.o \
	ptp-ml.o \
	ptp-chdk.o \
	vsync-lite.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   = 0xF8010000
RESTARTSTART  = 0xC80100

CFLAGS += -DCONFIG_7D_MINIMAL=1

all: autoexec.bin

FIR-MASTER: autoexec-fir-master
FIR-SLAVE: autoexec-fir-slave

autoexec-fir-master: CFLAGS += -DCONFIG_7D_FIR_MASTER
autoexec-fir-slave: CFLAGS += -DCONFIG_7D_FIR_SLAVE

autoexec-fir-master: clean autoexec-fir
	$(call build,OBJCOPY,$(OBJCOPY) -O binary autoexec-fir $@.bin)
	$(STAT_CMD) $@.bin;
	$(READELF) -l autoexec-fir | grep -C 2 MemSiz

    
autoexec-fir-slave: clean autoexec-fir
	$(call build,OBJCOPY,$(OBJCOPY) -O binary autoexec-fir $@.bin)
	$(STAT_CMD) $@.bin;
	$(READELF) -l autoexec-fir | grep -C 2 MemSiz
back to top