make and make otapackage

android-source, build, makefile

Solution

Just to answer, `make otapackage` will do same thing as `make` just with additional of creating zip ota file.

Problem

In AOSP development does `make otapackage` command do everyhing as `make` command with additionally creating .zip file? Reason I am asking is because right now for making `otapackage` I first execute `make` and than `make otapackage`, and I was wondering if first make is unnecessary? I have found some posts but I am not 100% sure if I understood. http://xda-university.com/as-a-developer/getting-started-building-android-from-source Running “make” will produce a basic, image based build, which is not easily flashed to a device. Chances are, you want to build a flash-able update.zip style file which can easily be installed to a device. To do this, use the command “make otapackage” (for CyanogenMod ROMs, “make bacon” is used instead).

Original source