Skip to content

Instantly share code, notes, and snippets.

@cmbaughman
Created July 20, 2014 14:25
Show Gist options
  • Save cmbaughman/26256314be61da19520d to your computer and use it in GitHub Desktop.
Save cmbaughman/26256314be61da19520d to your computer and use it in GitHub Desktop.
Make file template used in porting MIUI to a new device (see [https://github.com/MiCode/patchrom]).
# Makefile for porting MIUI
#
local-zip-file := stockrom.zip
local-out-zip-file := MIUI_YOURDEVICE.zip
local-previous-target-dir :=
local-density :=
local-miui-modified-apps :=
local-miui-removed-apps :=
local-modified-apps :=
# To include the local targets before and after zip the final ZIP file,
# and the local-targets should:
# (1) be defined after including porting.mk if using any global variable(see porting.mk)
# (2) the name should be leaded with local- to prevent any conflict with global targets
local-pre-zip :=
local-after-zip:=
otatype := fullota
include $(PORT_BUILD)/porting.mk
local-pre-zip-misc:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment