xen/flask: Drop the gen-policy.py script
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sat, 7 Dec 2019 16:20:55 +0000 (16:20 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Dec 2019 17:23:39 +0000 (17:23 +0000)
commit8d5671eb31e4bf119bc067d4d8ca1c00cd779f84
tree867bb78b1af434557d1642fcbc8797b03ca25bcc
parent4935a5433db28077fe6313f920bbedcd54516cec
xen/flask: Drop the gen-policy.py script

The script is Python 2 specific, and fails with string/binary issues with
Python 3:

  Traceback (most recent call last):
    File "gen-policy.py", line 14, in <module>
      for char in sys.stdin.read():
    File "/usr/lib/python3.5/codecs.py", line 321, in decode
      (result, consumed) = self._buffer_decode(data, self.errors, final)
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8c in position 0: invalid start byte

Fixing the script to be compatible isn't hard, but using python here is
wasteful.  Drop the script entirely, and write an equivelent flask-policy.S
instead.  This removes the need for a $(PYTHON) and $(CC) pass.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Acked-by: Julien Grall <julien@xen.org>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/include/asm-arm/asm_defns.h
xen/include/asm-x86/asm_defns.h
xen/xsm/flask/Makefile
xen/xsm/flask/flask-policy.S [new file with mode: 0644]
xen/xsm/flask/gen-policy.py [deleted file]