forked from pantavisor/pantavisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatom.mk
99 lines (63 loc) · 1.99 KB
/
atom.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
## backward compatility modules (null op) to keep old global.config's happy
LOCAL_MODULE := pv_lxc
include $(BUILD_CUSTOM)
include $(CLEAR_VARS)
LOCAL_MODULE := init
LOCAL_DESCRIPTION := Pantavisor
LOCAL_LIBRARIES := libthttp mbedtls picohttpparser zlib lxc
LOCAL_CONDITIONAL_LIBRARIES := OPTIONAL:e2fsprogs OPTIONAL:dropbear-pv OPTIONAL:cryptsetup
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_DM_VERITY=$(CONFIG_ALCHEMY_BUILD_INIT_DM)"
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_DM_CRYPT=$(CONFIG_ALCHEMY_BUILD_INIT_CRYPT)"
LOCAL_CODECHECK_C := clang
ifeq ($(CONFIG_ALCHEMY_BUILD_PVZRAM), y)
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_PVZRAM_TEST=ON"
endif
ifeq ($(PANTAVISOR_DEBUG), yes)
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_DEBUG=ON"
else
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_DEBUG=OFF"
endif
include $(BUILD_CMAKE)
include $(CLEAR_VARS)
LOCAL_DESTDIR := ./
LOCAL_MODULE := rpiab_test
LOCAL_C_INCLUDES := $(LOCAL_PATH)/utils/
LOCAL_LDFLAGS := -static
LOCAL_SRC_FILES := rpiab.test.c \
utils/timer.c \
utils/pvsignals.c \
utils/tsh.c \
$(NULL)
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_DESTDIR := ./
LOCAL_MODULE := tsh_test
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_SRC_FILES := utils/tsh.test.c \
utils/tsh.c \
utils/timer.c
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
LOCAL_LIBRARIES := libthttp
LOCAL_DESTDIR := ./
LOCAL_MODULE := json_test
LOCAL_C_INCLUDES := $(LOCAL_PATH)
LOCAL_SRC_FILES := utils/json.test.c \
utils/json.c
include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS)
# keep this as null-op target for backward compatibilityyy
LOCAL_MODULE := init-dm
include $(BUILD_CUSTOM)
include $(CLEAR_VARS)
# keep this as null-op target for backward compatibilityyy
LOCAL_MODULE := init-crypt
include $(BUILD_CUSTOM)
include $(CLEAR_VARS)
LOCAL_DESTDIR := ./
LOCAL_MODULE := pvtests
LOCAL_LIBRARIES += argp-standalone
LOCAL_CMAKE_CONFIGURE_ARGS += "-DPANTAVISOR_TESTS=ON"
include $(BUILD_CMAKE)