AR := $(CROSS_COMPILE)gcc-ar
NM := $(CROSS_COMPILE)gcc-nm
RANLIB := $(CROSS_COMPILE)gcc-ranlib
+ABIDW := abidw
PKGS =
-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,$^)
$(MAKE) -C $$x $@ ; \
done
-efivar efivar-static static:
+abidw efivar efivar-static static:
$(MAKE) -C src $@
$(SUBDIRS) :
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 )
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
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