Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 1 | # Copyright (C) 2008 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 15 | LOCAL_PATH := $(call my-dir) |
| 16 | include $(CLEAR_VARS) |
| 17 | |
Conn O'Griofa | d920104 | 2014-03-25 01:26:49 +0000 | [diff] [blame] | 18 | BOARD_RECOVERY_DEFINES := BOARD_BML_BOOT BOARD_BML_RECOVERY |
| 19 | |
| 20 | $(foreach board_define,$(BOARD_RECOVERY_DEFINES), \ |
| 21 | $(if $($(board_define)), \ |
| 22 | $(eval LOCAL_CFLAGS += -D$(board_define)=\"$($(board_define))\") \ |
| 23 | ) \ |
| 24 | ) |
| 25 | |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 26 | LOCAL_SRC_FILES := applypatch.c bspatch.c freecache.c imgpatch.c utils.c |
| 27 | LOCAL_MODULE := libapplypatch |
| 28 | LOCAL_MODULE_TAGS := eng |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 29 | LOCAL_C_INCLUDES += \ |
| 30 | external/bzip2 \ |
| 31 | external/zlib \ |
| 32 | $(commands_recovery_local_path) |
Dees Troy | d63c764 | 2013-11-03 13:03:55 +0000 | [diff] [blame] | 33 | LOCAL_STATIC_LIBRARIES += libmtdutils libmincrypttwrp libbz libz |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 34 | |
| 35 | include $(BUILD_STATIC_LIBRARY) |
| 36 | |
| 37 | include $(CLEAR_VARS) |
| 38 | |
| 39 | LOCAL_SRC_FILES := main.c |
| 40 | LOCAL_MODULE := applypatch |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 41 | LOCAL_MODULE_TAGS := optional |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 42 | LOCAL_C_INCLUDES += $(commands_recovery_local_path) |
Dees Troy | d63c764 | 2013-11-03 13:03:55 +0000 | [diff] [blame] | 43 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 44 | LOCAL_SHARED_LIBRARIES += libz libcutils libstdc++ libc |
| 45 | |
| 46 | include $(BUILD_EXECUTABLE) |
| 47 | |
| 48 | include $(CLEAR_VARS) |
| 49 | |
| 50 | LOCAL_SRC_FILES := main.c |
| 51 | LOCAL_MODULE := applypatch_static |
| 52 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Matt Mower | 031163b | 2014-11-01 15:13:03 -0500 | [diff] [blame] | 53 | LOCAL_MODULE_TAGS := optional |
Matt Mower | 55c75ca | 2014-08-31 11:30:15 -0500 | [diff] [blame] | 54 | LOCAL_C_INCLUDES += $(commands_recovery_local_path) |
Dees Troy | d63c764 | 2013-11-03 13:03:55 +0000 | [diff] [blame] | 55 | LOCAL_STATIC_LIBRARIES += libapplypatch libmtdutils libmincrypttwrp libbz libminelf |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 56 | LOCAL_STATIC_LIBRARIES += libz libcutils libstdc++ libc |
| 57 | |
| 58 | include $(BUILD_EXECUTABLE) |
| 59 | |
| 60 | include $(CLEAR_VARS) |
| 61 | |
| 62 | LOCAL_SRC_FILES := imgdiff.c utils.c bsdiff.c |
| 63 | LOCAL_MODULE := imgdiff |
| 64 | LOCAL_FORCE_STATIC_EXECUTABLE := true |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 65 | LOCAL_C_INCLUDES += external/zlib external/bzip2 |
| 66 | LOCAL_STATIC_LIBRARIES += libz libbz |
Dees_Troy | 51a0e82 | 2012-09-05 15:24:24 -0400 | [diff] [blame] | 67 | LOCAL_MODULE_TAGS := eng |
Doug Zongker | 512536a | 2010-02-17 16:11:44 -0800 | [diff] [blame] | 68 | |
| 69 | include $(BUILD_HOST_EXECUTABLE) |