We compiled the upstream qemu and result in this GEN code error:

 

‘’’

GEN     ui/input-keymap-atset1-to-qcode.c

usage: keymap-gen [-h]

                  {code-map,code-table,name-map,name-table,code-docs,name-docs}

                  ...

keymap-gen: error: invalid choice: 'glib2' (choose from 'code-map', 'code-table', 'name-map', 'name-table', 'code-docs', 'name-docs')

‘’’

 

My environment:

1.     CentOS7 with Python 2.7.5

2.     upstream's keycodemapdb

3.     argparse 1.1

 

Root cause is my argparse and python version. But change the invoking order can adapt both new and old argparse.

 

Thanks.