vendor: add cookies task
Change-Id: I1a792cdaff66984b9bf90ef8d9dfbdd90704fcc8
diff --git a/build/envsetup.sh b/build/envsetup.sh
index 2aca176..b27e71a 100644
--- a/build/envsetup.sh
+++ b/build/envsetup.sh
@@ -4,7 +4,7 @@
- breakfast: Setup the build environment, but only list
devices we support.
- brunch: Sets up build environment using breakfast(),
- and then comiles using mka() against bacon target.
+ and then comiles using mka() against cookies target.
- mka: Builds using SCHED_BATCH on all processors.
- pushboot: Push a file from your OUT dir to your phone and
reboots it, using absolute path.
@@ -16,7 +16,7 @@
{
breakfast $*
if [ $? -eq 0 ]; then
- time mka bacon
+ time mka cookies
else
echo "No such item in brunch menu. Try 'breakfast'"
return 1
diff --git a/build/tasks/cookies.mk b/build/tasks/cookies.mk
new file mode 100644
index 0000000..914dea6
--- /dev/null
+++ b/build/tasks/cookies.mk
@@ -0,0 +1,8 @@
+
+OMNI_TARGET_PACKAGE := $(PRODUCT_OUT)/omni-$(ROM_VERSION).zip
+
+.PHONY: cookies
+cookies: $(INTERNAL_OTA_PACKAGE_TARGET)
+ $(hide) ln -f $(INTERNAL_OTA_PACKAGE_TARGET) $(OMNI_TARGET_PACKAGE)
+ $(hide) $(MD5SUM) $(LINEAGE_TARGET_PACKAGE) | sed "s|$(PRODUCT_OUT)/||" > $(LINEAGE_TARGET_PACKAGE).md5sum
+ @echo -e "Package complete: $(OMNI_TARGET_PACKAGE)" >&2