[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 09/10] tools/libs: Add rule to generate headers.lst


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 12 Feb 2021 15:39:52 +0000
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>
  • Delivery-date: Fri, 12 Feb 2021 15:40:42 +0000
  • Ironport-sdr: +3kB8HBQiTyA76xd0+qDZKlRG1tgbdPr5WmecmHMH9p0eflak7dFXBsNRNKf0YpyOBw/ab8LZU F/3isO+RAzyYQxC5H/zOoTDy9X8JlkzPpEfXSOdWO3eiyeZFxvwREPxKdYu9R/17l7RregcuU8 DhhRcATOjEHz83jU3MYZ/OibaGmZgsRg5W/a8RwAGFLxTQ7sCXHDbpAtfRrh8XpyT7qK4q4Q0X W+qKAVXl/ZvGfy8bULV4x9F7d9WnUIYpglids200kwapbW9k1x8R+HMf5hI2rQzubnu8MGnKda CPU=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

abi-dumper needs a list of the public header files for shared objects, and
only accepts this in the form of a file.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
CC: Ian Jackson <iwj@xxxxxxxxxxxxxx>
CC: Wei Liu <wl@xxxxxxx>
CC: Juergen Gross <jgross@xxxxxxxx>
---
 tools/libs/.gitignore | 1 +
 tools/libs/libs.mk    | 9 ++++++++-
 2 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 tools/libs/.gitignore

diff --git a/tools/libs/.gitignore b/tools/libs/.gitignore
new file mode 100644
index 0000000000..4a13126144
--- /dev/null
+++ b/tools/libs/.gitignore
@@ -0,0 +1 @@
+*/headers.lst
diff --git a/tools/libs/libs.mk b/tools/libs/libs.mk
index 0b3381755a..ac68996ab2 100644
--- a/tools/libs/libs.mk
+++ b/tools/libs/libs.mk
@@ -76,6 +76,10 @@ endif
 
 headers.chk: $(AUTOINCS)
 
+headers.lst: FORCE
+       @{ $(foreach h,$(LIBHEADERS),echo $(h);) } > $@.tmp
+       @$(call move-if-changed,$@.tmp,$@)
+
 libxen$(LIBNAME).map:
        echo 'VERS_$(MAJOR).$(MINOR) { global: *; };' >$@
 
@@ -118,9 +122,12 @@ TAGS:
 clean:
        rm -rf *.rpm $(LIB) *~ $(DEPS_RM) $(LIB_OBJS) $(PIC_OBJS)
        rm -f lib$(LIB_FILE_NAME).so.$(MAJOR).$(MINOR) 
lib$(LIB_FILE_NAME).so.$(MAJOR)
-       rm -f headers.chk
+       rm -f headers.chk headers.lst
        rm -f $(PKG_CONFIG)
        rm -f _paths.h
 
 .PHONY: distclean
 distclean: clean
+
+.PHONY: FORCE
+FORCE:
-- 
2.11.0




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.