Skip to content

Commit 3625af9

Browse files
samitolvanenGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "Error correction: Add a tool for en/decoding files"
2 parents c82ca9f + 29bf737 commit 3625af9

File tree

6 files changed

+1218
-0
lines changed

6 files changed

+1218
-0
lines changed

verity/Android.mk

+2
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,5 @@ LOCAL_STATIC_LIBRARIES := libsparse_host libz
105105
LOCAL_SHARED_LIBRARIES := libcrypto-host libbase
106106
LOCAL_CFLAGS += -Wall -Werror
107107
include $(BUILD_HOST_EXECUTABLE)
108+
109+
include $(call first-makefiles-under,$(LOCAL_PATH))

verity/fec/Android.mk

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
LOCAL_PATH:= $(call my-dir)
2+
3+
ifeq ($(HOST_OS),linux)
4+
5+
include $(CLEAR_VARS)
6+
LOCAL_CLANG := true
7+
LOCAL_SANITIZE := integer
8+
LOCAL_MODULE := fec
9+
LOCAL_SRC_FILES := main.cpp image.cpp
10+
LOCAL_MODULE_TAGS := optional
11+
LOCAL_STATIC_LIBRARIES := \
12+
libsparse_host \
13+
libz \
14+
libcrypto_static \
15+
libfec_host \
16+
libfec_rs_host \
17+
libext4_utils_host \
18+
libsquashfs_utils_host
19+
LOCAL_SHARED_LIBRARIES := libbase
20+
LOCAL_CFLAGS += -Wall -Werror -O3
21+
LOCAL_C_INCLUDES += external/fec
22+
include $(BUILD_HOST_EXECUTABLE)
23+
24+
endif # HOST_OS == linux
25+
26+
include $(CLEAR_VARS)
27+
LOCAL_CLANG := true
28+
LOCAL_SANITIZE := integer
29+
LOCAL_MODULE := fec
30+
LOCAL_FORCE_STATIC_EXECUTABLE := true
31+
LOCAL_SRC_FILES := main.cpp image.cpp
32+
LOCAL_MODULE_TAGS := optional
33+
LOCAL_STATIC_LIBRARIES := \
34+
libcrypto_static \
35+
libfec \
36+
libfec_rs \
37+
libbase \
38+
libext4_utils_static \
39+
libsquashfs_utils \
40+
libcutils
41+
LOCAL_CFLAGS += -Wall -Werror -O3 -DIMAGE_NO_SPARSE=1
42+
LOCAL_C_INCLUDES += external/fec
43+
include $(BUILD_EXECUTABLE)

0 commit comments

Comments
 (0)