Skip to content

MLBuild

GeorgB edited this page Mar 23, 2017 · 2 revisions

This page describes the build setup for the Magic Lantern modules.

Step-By-Step Guide

  1. Clone from Bitbucket

NOTE: mercurial must be installed

hg clone -u unified https://bitbucket.org/hudson/magic-lantern
  1. Install Cross-Compiler for ARM architecture

    a. Ubuntu

    sudo apt-get install gcc-arm-none-eabi libnewlib-arm-none-eabi gcc-32bit lib32gcc-4.8-dev gcc-multilib g++-multilib
    

    b. Arch

    sudo pacman -S arm-none-eabi-gcc arm-none-eabi-newlib gcc-multilib
    
  2. Edit Makefile.user in magic-lantern

Set Cross-Compiler Path

NOTE:

If the following error occurs:

../Makefile.modules:79: recipe for target 'io_crypt.dep' failed make: *** [io_crypt.dep] Error 1

Change this line (note the "$$8")

$(call build,DEPENDS,$(READELF) -sW $< | $(GREP) GLOBAL | $(GREP) 00000000 | $(GREP) UND | $(AWK) "{printt \$$8;}" | sort > $@ && cd $(MODULES_DIR) && $(PYTHON) checkdep.py $(MODULE_NAME))

to match this (note the "$8")

$(call build,DEPENDS,$(READELF) -sW $< | $(GREP) GLOBAL | $(GREP) 00000000 | $(GREP) UND | $(AWK) "{printt \$8;}" | sort > $@ && cd $(MODULES_DIR) && $(PYTHON) checkdep.py $(MODULE_NAME))

Clone this wiki locally