OSDN Git Service

Make a target to update .abixml files.
authorPeter Jones <pjones@redhat.com>
Mon, 13 Feb 2017 16:05:25 +0000 (11:05 -0500)
committerPeter Jones <pjones@redhat.com>
Mon, 13 Feb 2017 16:49:50 +0000 (11:49 -0500)
Signed-off-by: Peter Jones <pjones@redhat.com>
Make.defaults
Make.rules
Makefile
efivar.spec.in
src/Makefile

index c9d599f..cb1db26 100644 (file)
@@ -20,6 +20,7 @@ LDFLAGS := $(LDFLAGS)
 AR     := $(CROSS_COMPILE)gcc-ar
 NM     := $(CROSS_COMPILE)gcc-nm
 RANLIB := $(CROSS_COMPILE)gcc-ranlib
+ABIDW  := abidw
 
 PKGS   =
 
index a7d6a23..40ba497 100644 (file)
@@ -22,6 +22,9 @@ include $(TOPDIR)/Make.version
          -Wl,--version-script=$(MAP) \
          -o $@ $^ $(LDLIBS)
 
+%.abixml : %.so
+       $(ABIDW) --headers-dir $(TOPDIR)/src/include/efivar/ --out-file $@ $^
+
 %.o : %.c
        $(CC) $(cflags) -fPIC $(CPPFLAGS) -c -o $@ $(filter %.c %.o %.S,$^)
 
index 504a747..1162647 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ install :
                $(MAKE) -C $$x $@ ; \
        done
 
-efivar efivar-static static:
+abidw efivar efivar-static static:
        $(MAKE) -C src $@
 
 $(SUBDIRS) :
@@ -58,7 +58,7 @@ test-archive: efivar.spec
 tag:
        git tag -s $(GITTAG) refs/heads/master
 
-archive: tag efivar.spec
+archive: abidw tag efivar.spec
        @rm -rf /tmp/efivar-$(VERSION) /tmp/efivar-$(VERSION)-tmp
        @mkdir -p /tmp/efivar-$(VERSION)-tmp
        @git archive --format=tar $(GITTAG) | ( cd /tmp/efivar-$(VERSION)-tmp/ ; tar x )
index 5da1828..37d7302 100644 (file)
@@ -7,7 +7,7 @@ URL:            https://github.com/rhinstaller/efivar
 Requires:       %{name}-libs = %{version}-%{release}
 ExclusiveArch: %{ix86} x86_64 aarch64
 
-BuildRequires:  popt-devel popt-static git glibc-static
+BuildRequires:  popt-devel popt-static git glibc-static libabigail
 Source0:        https://github.com/rhinstaller/efivar/releases/download/efivar-%{version}/efivar-%{version}.tar.bz2
 
 %description
index a5d98ec..7d67b4a 100644 (file)
@@ -32,6 +32,9 @@ all : $(TARGETS)
 
 static : $(STATICTARGETS)
 
+abidw : $(patsubst %.so,%.abixml,$(LIBTARGETS))
+       git commit -m "Update .abixml files" -s $^
+
 ./guid-symbols.c : include/efivar/efivar-guids.h
 ./guids.bin : include/efivar/efivar-guids.h
 ./names.bin : include/efivar/efivar-guids.h