Skip to content

Commit 533261d

Browse files
refres
1 parent 645e805 commit 533261d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+8283
-0
lines changed

Android.mk

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
LOCAL_PATH:= $(call my-dir)
2+
3+
common_src_files := \
4+
VolumeManager.cpp \
5+
CommandListener.cpp \
6+
VoldCommand.cpp \
7+
NetlinkManager.cpp \
8+
NetlinkHandler.cpp \
9+
Volume.cpp \
10+
DirectVolume.cpp \
11+
Process.cpp \
12+
Ext4.cpp \
13+
Fat.cpp \
14+
Loop.cpp \
15+
Devmapper.cpp \
16+
ResponseCode.cpp \
17+
Xwarp.cpp \
18+
fstrim.c \
19+
cryptfs.c
20+
21+
common_c_includes := \
22+
$(KERNEL_HEADERS) \
23+
system/extras/ext4_utils \
24+
external/openssl/include
25+
26+
common_shared_libraries := \
27+
libsysutils \
28+
libcutils \
29+
liblog \
30+
libdiskconfig \
31+
libhardware_legacy \
32+
liblogwrap \
33+
libcrypto
34+
35+
include $(CLEAR_VARS)
36+
37+
LOCAL_MODULE := libvold
38+
39+
LOCAL_SRC_FILES := $(common_src_files)
40+
41+
LOCAL_C_INCLUDES := $(common_c_includes)
42+
43+
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
44+
45+
LOCAL_STATIC_LIBRARIES := libfs_mgr
46+
47+
LOCAL_MODULE_TAGS := eng tests
48+
49+
include $(BUILD_STATIC_LIBRARY)
50+
51+
include $(CLEAR_VARS)
52+
53+
LOCAL_MODULE:= vold
54+
55+
LOCAL_SRC_FILES := \
56+
main.cpp \
57+
$(common_src_files)
58+
59+
LOCAL_C_INCLUDES := $(common_c_includes)
60+
61+
LOCAL_CFLAGS := -Werror=format
62+
63+
LOCAL_SHARED_LIBRARIES := $(common_shared_libraries)
64+
65+
LOCAL_STATIC_LIBRARIES := libfs_mgr
66+
67+
ifeq ($(BOARD_USES_HDMI),true)
68+
LOCAL_CFLAGS += -DBOARD_USES_HDMI
69+
LOCAL_SHARED_LIBRARIES += libhdmiclient
70+
LOCAL_C_INCLUDES += \
71+
device/samsung/$(TARGET_BOARD_PLATFORM)/libhdmi/libhdmiservice
72+
73+
ifeq ($(TARGET_SOC),exynos4x12)
74+
LOCAL_CFLAGS += -DSAMSUNG_EXYNOS4x12
75+
endif
76+
77+
ifeq ($(TARGET_SOC),exynos5250)
78+
LOCAL_CFLAGS += -DSAMSUNG_EXYNOS5250
79+
endif
80+
81+
ifeq ($(BOARD_USE_V4L2_ION),true)
82+
LOCAL_CFLAGS += -DBOARD_USE_V4L2_ION
83+
endif
84+
85+
ifeq ($(BOARD_USE_V4L2),true)
86+
LOCAL_CFLAGS += -DBOARD_USE_V4L2
87+
endif
88+
endif
89+
90+
include $(BUILD_EXECUTABLE)
91+
92+
include $(CLEAR_VARS)
93+
94+
LOCAL_SRC_FILES:= vdc.c
95+
96+
LOCAL_MODULE:= vdc
97+
98+
LOCAL_C_INCLUDES := $(KERNEL_HEADERS)
99+
100+
LOCAL_CFLAGS :=
101+
102+
LOCAL_SHARED_LIBRARIES := libcutils
103+
104+
include $(BUILD_EXECUTABLE)

Asec.h

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Copyright (C) 2008 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
#ifndef _ASEC_H
18+
#define _ASEC_H
19+
20+
struct asec_superblock {
21+
#define ASEC_SB_MAGIC 0xc0def00d
22+
unsigned int magic;
23+
24+
#define ASEC_SB_VER 1
25+
unsigned char ver;
26+
27+
#define ASEC_SB_C_CIPHER_NONE 0
28+
#define ASEC_SB_C_CIPHER_TWOFISH 1
29+
#define ASEC_SB_C_CIPHER_AES 2
30+
unsigned char c_cipher;
31+
32+
#define ASEC_SB_C_CHAIN_NONE 0
33+
unsigned char c_chain;
34+
35+
#define ASEC_SB_C_OPTS_NONE 0
36+
#define ASEC_SB_C_OPTS_EXT4 1
37+
unsigned char c_opts;
38+
39+
#define ASEC_SB_C_MODE_NONE 0
40+
unsigned char c_mode;
41+
} __attribute__((packed));
42+
43+
#endif

CleanSpec.mk

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright (C) 2007 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+
#
15+
16+
# If you don't need to do a full clean build but would like to touch
17+
# a file or delete some intermediate files, add a clean step to the end
18+
# of the list. These steps will only be run once, if they haven't been
19+
# run before.
20+
#
21+
# E.g.:
22+
# $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
23+
# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
24+
#
25+
# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
26+
# files that are missing or have been moved.
27+
#
28+
# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
29+
# Use $(OUT_DIR) to refer to the "out" directory.
30+
#
31+
# If you need to re-do something that's already mentioned, just copy
32+
# the command and add it to the bottom of the list. E.g., if a change
33+
# that you made last week required touching a file and a change you
34+
# made today requires touching the same file, just copy the old
35+
# touch step and add it to the end of the list.
36+
#
37+
# ************************************************
38+
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
39+
# ************************************************
40+
41+
# For example:
42+
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
43+
#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
44+
#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
45+
#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
46+
47+
# ************************************************
48+
# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
49+
# ************************************************

0 commit comments

Comments
 (0)