• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2012 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
15LOCAL_PATH := $(call my-dir)
16
17supported_platforms := linux-x86 darwin-x86
18cur_platform := $(filter $(HOST_OS)-$(HOST_ARCH),$(supported_platforms))
19
20ifdef cur_platform
21
22#
23# host libebl
24#
25#
26include $(CLEAR_VARS)
27
28LIBEBL_SRC_FILES := \
29        eblauxvinfo.c \
30        eblbackendname.c \
31        eblbsspltp.c \
32        eblcheckobjattr.c \
33        ebl_check_special_section.c \
34        ebl_check_special_symbol.c \
35        eblclosebackend.c \
36        eblcopyrelocp.c \
37        eblcorenote.c \
38        eblcorenotetypename.c \
39        ebldebugscnp.c \
40        ebldynamictagcheck.c \
41        ebldynamictagname.c \
42        eblelfclass.c \
43        eblelfdata.c \
44        eblelfmachine.c \
45        eblgotpcreloccheck.c \
46        eblgstrtab.c \
47        eblmachineflagcheck.c \
48        eblmachineflagname.c \
49        eblmachinesectionflagcheck.c \
50        eblnonerelocp.c \
51        eblobjecttypename.c \
52        eblobjnote.c \
53        eblobjnotetypename.c \
54        eblopenbackend.c \
55        eblosabiname.c \
56        eblreginfo.c \
57        eblrelativerelocp.c \
58        eblrelocsimpletype.c \
59        eblreloctypecheck.c \
60        eblreloctypename.c \
61        eblrelocvaliduse.c \
62        eblretval.c \
63        eblsectionname.c \
64        eblsectionstripp.c \
65        eblsectiontypename.c \
66        eblshflagscombine.c \
67        eblstrtab.c \
68        eblsymbolbindingname.c \
69        eblsymboltypename.c \
70        ebl_syscall_abi.c \
71        eblsysvhashentrysize.c
72
73LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
74
75LOCAL_C_INCLUDES := \
76	$(LOCAL_PATH)/.. \
77	$(LOCAL_PATH)/../lib \
78	$(LOCAL_PATH)/../libebl \
79	$(LOCAL_PATH)/../libasm \
80	$(LOCAL_PATH)/../libelf \
81	$(LOCAL_PATH)/../libdw
82
83LOCAL_C_INCLUDES += $(LOCAL_PATH)/../host-$(HOST_OS)-fixup
84
85LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -D_GNU_SOURCE
86
87LOCAL_CFLAGS += -include $(LOCAL_PATH)/../host-$(HOST_OS)-fixup/AndroidFixup.h
88
89LOCAL_MODULE:= libebl
90
91include $(BUILD_HOST_STATIC_LIBRARY)
92
93#
94# target libebl
95#
96
97include $(CLEAR_VARS)
98
99LOCAL_SRC_FILES := $(LIBEBL_SRC_FILES)
100
101LOCAL_C_INCLUDES := \
102	$(LOCAL_PATH)/.. \
103	$(LOCAL_PATH)/../lib \
104	$(LOCAL_PATH)/../libebl \
105	$(LOCAL_PATH)/../libasm \
106	$(LOCAL_PATH)/../libelf \
107	$(LOCAL_PATH)/../libdw
108
109LOCAL_C_INCLUDES += $(LOCAL_PATH)/../bionic-fixup
110
111LOCAL_CFLAGS += -include $(LOCAL_PATH)/../bionic-fixup/AndroidFixup.h
112
113LOCAL_CFLAGS += -DHAVE_CONFIG_H -std=gnu99 -Werror
114
115LOCAL_MODULE:= libebl
116
117include $(BUILD_STATIC_LIBRARY)
118
119endif #cur_platform
120