[XEN PATCH v4 0/3] xen: rework compat headers generation

Anthony PERARD posted 3 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230119152256.15832-1-anthony.perard@citrix.com
Test gitlab-ci failed
xen/include/Makefile            |   6 +-
xen/tools/compat-xlat-header.py | 432 ++++++++++++++++++++++++++
xen/tools/get-fields.sh         | 528 --------------------------------
3 files changed, 434 insertions(+), 532 deletions(-)
create mode 100644 xen/tools/compat-xlat-header.py
delete mode 100644 xen/tools/get-fields.sh
[XEN PATCH v4 0/3] xen: rework compat headers generation
Posted by Anthony PERARD 1 year, 3 months ago
Patch series available in this git branch:
https://xenbits.xen.org/git-http/people/aperard/xen-unstable.git br.build-system-xen-include-rework-v4

v4:
- new patch removing get_typedefs() from the existing script
  (and thus also removing it from the new script)
- Adding some optimisation, mainly pre-compile regex
  It's slightly faster.

v3:
- Rewrite script into python instead of perl.
  (last patch of the series)

v2:
- new patch [1/4] to fix issue with command line that can be way too long
- other small changes, and reorder patches

Hi,

This patch series is about 2 improvement. First one is to use $(if_changed, )
in "include/Makefile" to make the generation of the compat headers less verbose
and to have the command line part of the decision to rebuild the headers.
Second one is to replace one slow script by a much faster one, and save time
when generating the headers.

Thanks.

Anthony PERARD (3):
  build: include/compat, remove typedefs handling
  build: replace get-fields.sh by a python script
  build: compat-xlat-header.py: optimisation to search for just '{'
    instead of [{}]

 xen/include/Makefile            |   6 +-
 xen/tools/compat-xlat-header.py | 432 ++++++++++++++++++++++++++
 xen/tools/get-fields.sh         | 528 --------------------------------
 3 files changed, 434 insertions(+), 532 deletions(-)
 create mode 100644 xen/tools/compat-xlat-header.py
 delete mode 100644 xen/tools/get-fields.sh

-- 
Anthony PERARD