2009-06-10 14:11:53 -07:00
|
|
|
# Copyright 2009 The Android Open Source Project
|
|
|
|
|
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
updater_src_files := \
|
|
|
|
install.c \
|
|
|
|
updater.c
|
|
|
|
|
|
|
|
#
|
2009-06-26 13:38:55 -07:00
|
|
|
# Build a statically-linked binary to include in OTA packages
|
2009-06-10 14:11:53 -07:00
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2009-06-26 13:38:55 -07:00
|
|
|
# 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
|
|
|
|
|
2009-06-10 14:11:53 -07:00
|
|
|
LOCAL_SRC_FILES := $(updater_src_files)
|
|
|
|
|
2009-06-11 17:21:44 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES := libapplypatch libedify libmtdutils libminzip libz
|
|
|
|
LOCAL_STATIC_LIBRARIES += libmincrypt libbz
|
2009-06-10 14:11:53 -07:00
|
|
|
LOCAL_STATIC_LIBRARIES += libcutils libstdc++ libc
|
|
|
|
LOCAL_C_INCLUDES += $(LOCAL_PATH)/..
|
|
|
|
|
|
|
|
LOCAL_MODULE := updater
|
|
|
|
|
|
|
|
LOCAL_FORCE_STATIC_EXECUTABLE := true
|
|
|
|
|
|
|
|
include $(BUILD_EXECUTABLE)
|