[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH v1.1 10/10] tools/libs: Write out an ABI analysis when abi-dumper is available
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- CC: Ian Jackson <iwj@xxxxxxxxxxxxxx> CC: Wei Liu <wl@xxxxxxx> CC: Juergen Gross <jgross@xxxxxxxx> v2: * Swap XEN_COMPILE_ARCH for XEN_TARGET_ARCH * Swap abi-dumper for $(ABI_DUMPER) --- tools/libs/libs.mk | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk index ac68996ab2..a82d1783cc 100644 --- a/tools/libs/libs.mk +++ b/tools/libs/libs.mk @@ -49,6 +49,8 @@ PKG_CONFIG_LOCAL := $(PKG_CONFIG_DIR)/$(PKG_CONFIG) LIBHEADER ?= $(LIB_FILE_NAME).h LIBHEADERS = $(foreach h, $(LIBHEADER), $(XEN_INCLUDE)/$(h)) +PKG_ABI := lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR)-$(XEN_TARGET_ARCH)-abi.dump + $(PKG_CONFIG_LOCAL): PKG_CONFIG_PREFIX = $(XEN_ROOT) $(PKG_CONFIG_LOCAL): PKG_CONFIG_INCDIR = $(XEN_INCLUDE) $(PKG_CONFIG_LOCAL): PKG_CONFIG_LIBDIR = $(CURDIR) @@ -94,6 +96,13 @@ lib$(LIB_FILE_NAME).so.$(MAJOR): lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR): $(PIC_OBJS) libxen$(LIBNAME).map $(CC) $(LDFLAGS) $(PTHREAD_LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,lib$(LIB_FILE_NAME).so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(PIC_OBJS) $(LDUSELIBS) $(APPEND_LDFLAGS) +# If abi-dumper is available, write out the ABI analysis +ifneq ($(ABI_DUMPER),) +libs: $(PKG_ABI) +$(PKG_ABI): lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) headers.lst + $(ABI_DUMPER) $< -o $@ -public-headers headers.lst -lver $(MAJOR).$(MINOR) +endif + .PHONY: install install: build $(INSTALL_DIR) $(DESTDIR)$(libdir) -- 2.11.0
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |