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