https://bitbucket.org/hudson/magic-lantern
Raw File
Tip revision: fb11d29c5e341eb9e74c443e3e1f3f4b574d10c8 authored by alex@thinkpad on 06 August 2017, 20:26:25 UTC
Imported scnprintf/vscnprintf from Linux kernel - turns out, we were using snprintf wrong - https://lwn.net/Articles/69419/
Tip revision: fb11d29
Makefile
#Makefile for an autoexec.bin able to run on all cameras

x: prepare-all autoexec-all autoexec.bin
#	cp autoexec-all.bin autoexec.bin
	$(call build,STAT,$(STAT_CMD) autoexec.bin)

prepare-all:
	$(MAKE) -C .. all-supported-unified-models

reboot-all.o : prepare-all

autoexec.bin: autoexec-all.bin
	$(call build,CP,$(CP) autoexec-all.bin autoexec.bin)

autoexec-all: reboot-all.o
	$(call build,LD,$(LD) \
		-o autoexec-all \
		-nostdlib \
		-e _start \
		-Ttext 0x800000 \
		$^ \
	); \

clean::
	$(call rm_files, autoexec-all autoexec-all.bin)

MODEL:=UNIFIED

ML_MODEL_DIR = all

include  ../Makefile.platform

install:: $(PLATFORM_INSTALL_SUPPORTED_TARGETS) autoexec.bin
	$(call build,CP,$(CP) autoexec.bin $(INSTALL_DIR)/)

$(PLATFORM_INSTALL_ALL_TARGETS):
	$(call call_make_platform)
back to top