debian/rules.d/scripts/mod/gendef.py: Use Python 3
This commit is contained in:
parent
6f97cae880
commit
f757f30817
|
@ -83,6 +83,7 @@ linux (4.17.3-1) UNRELEASED; urgency=medium
|
|||
(CVE-2018-12633)
|
||||
* [x86] vboxguest: Enable VBOXGUEST and DRM_VBOXVIDEO as modules
|
||||
* aufs: Update support patchset to aufs4.x-rcN-20180611
|
||||
* debian/rules.d/scripts/mod/gendef.py: Use Python 3
|
||||
|
||||
[ Romain Perier ]
|
||||
* [x86] amdgpu: Enable DCN 1.0 Raven family (Closes: #901349)
|
||||
|
|
|
@ -16,7 +16,7 @@ modpost.real-%:
|
|||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
|
||||
|
||||
modpost-opts.h: $(top_srcdir)/scripts/mod/modpost.c
|
||||
python $(wrapperdir)/gendef.py $< > $@
|
||||
$(wrapperdir)/gendef.py $< > $@
|
||||
|
||||
modpost.o: modpost.c modpost-opts.h
|
||||
$(CC) $(CFLAGS) -I $(CURDIR) -c -o $@ $<
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/python
|
||||
#!/usr/bin/python3
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
@ -10,11 +10,11 @@ for line in open(sys.argv[1]):
|
|||
else:
|
||||
raise RuntimeError
|
||||
|
||||
print '#define GETOPT_OPTIONS "%s"' % options
|
||||
print('#define GETOPT_OPTIONS "%s"' % options)
|
||||
|
||||
print '#define GETOPT_CASE',
|
||||
print('#define GETOPT_CASE', end=' ')
|
||||
for c in options:
|
||||
if c == ':' or c == 'T':
|
||||
continue
|
||||
print "case '%c':" % c,
|
||||
print
|
||||
print("case '%c':" % c, end=' ')
|
||||
print()
|
||||
|
|
Loading…
Reference in New Issue