ad3db099d5
updater (which is only needed in OTA packages) is getting included in /system/bin, where it just takes up (quite a bit of) space. Use the hack of including it only in eng builds so it's not there for user builds.
31 lines
758 B
Makefile
31 lines
758 B
Makefile
# Copyright 2009 The Android Open Source Project
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
updater_src_files := \
|
|
install.c \
|
|
updater.c
|
|
|
|
#
|
|
# Build a statically-linked binary to include in OTA packages
|
|
#
|
|
include $(CLEAR_VARS)
|
|
|
|
# Build only in eng, so we don't end up with a copy of this in /system
|
|
# on user builds. (TODO: find a better way to build device binaries
|
|
# needed only for OTA packages.)
|
|
LOCAL_MODULE_TAGS := eng
|
|
|
|
LOCAL_SRC_FILES := $(updater_src_files)
|
|
|
|
LOCAL_STATIC_LIBRARIES := libapplypatch libedify libmtdutils libminzip libz
|
|
LOCAL_STATIC_LIBRARIES += libmincrypt libbz
|
|
LOCAL_STATIC_LIBRARIES += libcutils libstdc++ libc
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
LOCAL_MODULE := updater
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
include $(BUILD_EXECUTABLE)
|