88# | | | |_| | | | | |_| |
99# |_| _\__,_|_| |_|\__\_\_____ __ __ _ _
1010# | |_| |__ ___ / _ \| ____| \/ | | | | _ __ _ _ _ __ _ __ ___ _ __
11+ #
12+ # ___
13+ # _ __ _ _ _ __ / _ \
14+ # | '__| | | | '_ \| | | |
15+ # | | | |_| | | | | |_| |
16+ # |_| _\__,_|_| |_|\__\_\_____ __ __ _ _
17+ # | |_| |__ ___ / _ \| ____| \/ | | | | _ __ _ _ _ __ _ __ ___ _ __
1118# | __| '_ \ / _ \ | | | | _| | |\/| | | | | | '__| | | | '_ \| '_ \ / _ \ '__|
1219# | |_| | | | __/ | |_| | |___| | | | |_| | | | | |_| | | | | | | | __/ |
1320# \__|_| |_|\___| \__\_\_____|_| |_|\___/ |_| \__,_|_| |_|_| |_|\___|_|
1421#
1522#
1623#
24+ # | |_| | | | __/ | |_| | |___| | | | |_| | | | | |_| | | | | | | | __/ |
25+ # \__|_| |_|\___| \__\_\_____|_| |_|\___/ |_| \__,_|_| |_|_| |_|\___|_|
26+ #
27+ #
28+ #
1729# Add argument with +
1830# Remove argument with -
1931# Avoid using the pre-configured arguments by prefixing nothing
@@ -144,6 +156,7 @@ def parse_config(file):
144156def main (* opts ):
145157 """
146158 Get options from the command line, parse them and run the
159+ Get options from the command line, parse them and run the
147160 QEMU binaires using the computed argmuments
148161 """
149162
@@ -168,16 +181,11 @@ def main(*opts):
168181 ARGS [op .lstrip ("+" )] = "1"
169182 continue
170183
184+
171185 if '=' in op :
172186 #! if this fail here, this mean that there was an '=' in the value (weird)
173187 key , value = op .lstrip ("+" ).split ('=' )
174- < << << << Updated upstream
175188 ARGS [key ] = value
176- | | | | | | | Stash base
177- CONFIG [key ] = value
178- == == == =
179- CONFIG [key ] = value
180- >> >> >> > Stashed changes
181189
182190
183191
@@ -186,19 +194,9 @@ def main(*opts):
186194 use_default_config :bool = real [0 ].startswith ('-' )
187195
188196 # Refactor the too greedy search function
189- < << << << Updated upstream
190197 config_file :str = find ('emu' if use_default_config else real [0 ])
191198 qemu :str = find ('qemu-aarch64' )
192199
193- | | | | | | | Stash base
194- config_file :str = find ('emu' if use_default_config else real [0 ])
195- qemu :str = find ('qemu' )
196- == == == =
197- config_file :str = find ('emu' if use_default_config else real [0 ])
198- qemu :str = find ('qemu' )
199- >> >> >> > Stashed changes
200-
201-
202200 if not config_file or not qemu :
203201 print (f'config_file={ config_file } ' )
204202 print (f'qemu_path={ qemu } ' )
0 commit comments