diff options
Diffstat (limited to 'tools/lib/lockdep')
-rw-r--r-- | tools/lib/lockdep/Makefile | 18 | ||||
-rw-r--r-- | tools/lib/lockdep/uinclude/linux/lockdep.h | 3 |
2 files changed, 8 insertions, 13 deletions
diff --git a/tools/lib/lockdep/Makefile b/tools/lib/lockdep/Makefile index 07b0b7542511..bba2f5253b6e 100644 --- a/tools/lib/lockdep/Makefile +++ b/tools/lib/lockdep/Makefile | |||
@@ -1,13 +1,7 @@ | |||
1 | # liblockdep version | ||
2 | LL_VERSION = 0 | ||
3 | LL_PATCHLEVEL = 0 | ||
4 | LL_EXTRAVERSION = 1 | ||
5 | |||
6 | # file format version | 1 | # file format version |
7 | FILE_VERSION = 1 | 2 | FILE_VERSION = 1 |
8 | 3 | ||
9 | MAKEFLAGS += --no-print-directory | 4 | LIBLOCKDEP_VERSION=$(shell make --no-print-directory -sC ../../.. kernelversion) |
10 | |||
11 | 5 | ||
12 | # Makefiles suck: This macro sets a default value of $(2) for the | 6 | # Makefiles suck: This macro sets a default value of $(2) for the |
13 | # variable named by $(1), unless the variable has been set by | 7 | # variable named by $(1), unless the variable has been set by |
@@ -98,7 +92,7 @@ export prefix libdir bindir src obj | |||
98 | libdir_SQ = $(subst ','\'',$(libdir)) | 92 | libdir_SQ = $(subst ','\'',$(libdir)) |
99 | bindir_SQ = $(subst ','\'',$(bindir)) | 93 | bindir_SQ = $(subst ','\'',$(bindir)) |
100 | 94 | ||
101 | LIB_FILE = liblockdep.a liblockdep.so | 95 | LIB_FILE = liblockdep.a liblockdep.so.$(LIBLOCKDEP_VERSION) |
102 | BIN_FILE = lockdep | 96 | BIN_FILE = lockdep |
103 | 97 | ||
104 | CONFIG_INCLUDES = | 98 | CONFIG_INCLUDES = |
@@ -110,8 +104,6 @@ N = | |||
110 | 104 | ||
111 | export Q VERBOSE | 105 | export Q VERBOSE |
112 | 106 | ||
113 | LIBLOCKDEP_VERSION = $(LL_VERSION).$(LL_PATCHLEVEL).$(LL_EXTRAVERSION) | ||
114 | |||
115 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) | 107 | INCLUDES = -I. -I/usr/local/include -I./uinclude -I./include $(CONFIG_INCLUDES) |
116 | 108 | ||
117 | # Set compile option CFLAGS if not set elsewhere | 109 | # Set compile option CFLAGS if not set elsewhere |
@@ -146,7 +138,7 @@ do_app_build = \ | |||
146 | 138 | ||
147 | do_compile_shared_library = \ | 139 | do_compile_shared_library = \ |
148 | ($(print_shared_lib_compile) \ | 140 | ($(print_shared_lib_compile) \ |
149 | $(CC) --shared $^ -o $@ -lpthread -ldl) | 141 | $(CC) --shared $^ -o $@ -lpthread -ldl -Wl,-soname='"$@"';$(shell ln -s $@ liblockdep.so)) |
150 | 142 | ||
151 | do_build_static_lib = \ | 143 | do_build_static_lib = \ |
152 | ($(print_static_lib_build) \ | 144 | ($(print_static_lib_build) \ |
@@ -177,7 +169,7 @@ all: all_cmd | |||
177 | 169 | ||
178 | all_cmd: $(CMD_TARGETS) | 170 | all_cmd: $(CMD_TARGETS) |
179 | 171 | ||
180 | liblockdep.so: $(PEVENT_LIB_OBJS) | 172 | liblockdep.so.$(LIBLOCKDEP_VERSION): $(PEVENT_LIB_OBJS) |
181 | $(Q)$(do_compile_shared_library) | 173 | $(Q)$(do_compile_shared_library) |
182 | 174 | ||
183 | liblockdep.a: $(PEVENT_LIB_OBJS) | 175 | liblockdep.a: $(PEVENT_LIB_OBJS) |
@@ -238,7 +230,7 @@ install_lib: all_cmd | |||
238 | install: install_lib | 230 | install: install_lib |
239 | 231 | ||
240 | clean: | 232 | clean: |
241 | $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d | 233 | $(RM) *.o *~ $(TARGETS) *.a *liblockdep*.so* $(VERSION_FILES) .*.d |
242 | $(RM) tags TAGS | 234 | $(RM) tags TAGS |
243 | 235 | ||
244 | endif # skip-makefile | 236 | endif # skip-makefile |
diff --git a/tools/lib/lockdep/uinclude/linux/lockdep.h b/tools/lib/lockdep/uinclude/linux/lockdep.h index d0f5d6e50214..c1552c28507e 100644 --- a/tools/lib/lockdep/uinclude/linux/lockdep.h +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h | |||
@@ -10,6 +10,9 @@ | |||
10 | 10 | ||
11 | #define MAX_LOCK_DEPTH 2000UL | 11 | #define MAX_LOCK_DEPTH 2000UL |
12 | 12 | ||
13 | #define asmlinkage | ||
14 | #define __visible | ||
15 | |||
13 | #include "../../../include/linux/lockdep.h" | 16 | #include "../../../include/linux/lockdep.h" |
14 | 17 | ||
15 | struct task_struct { | 18 | struct task_struct { |