@@ -305,6 +305,9 @@ def get_argparse(default_args=None, argparse_args=None):
305
305
Use the docker download Ubuntu root filesystem instead of the default Buildroot one.
306
306
'''
307
307
)
308
+ parser .add_argument (
309
+ '--dp650' , default = False , action = 'store_true'
310
+ )
308
311
parser .add_argument (
309
312
'-L' , '--linux-build-id' , default = default_build_id ,
310
313
help = 'Linux build ID. Allows you to keep multiple separate Linux builds. Default: %(default)s'
@@ -737,12 +740,6 @@ def setup(parser):
737
740
common .buildroot_toolchain_prefix = 'arm-buildroot-linux-uclibcgnueabihf'
738
741
common .crosstool_ng_toolchain_prefix = 'arm-unknown-eabi'
739
742
common .ubuntu_toolchain_prefix = 'arm-linux-gnueabihf'
740
- if common .emulator == 'gem5' :
741
- if common .machine is None :
742
- common .machine = 'VExpress_GEM5_V1'
743
- else :
744
- if common .machine is None :
745
- common .machine = 'virt'
746
743
common .is_arm = True
747
744
elif args .arch == 'aarch64' :
748
745
common .armv = 8
@@ -751,12 +748,6 @@ def setup(parser):
751
748
common .buildroot_toolchain_prefix = 'aarch64-buildroot-linux-uclibc'
752
749
common .crosstool_ng_toolchain_prefix = 'aarch64-unknown-elf'
753
750
common .ubuntu_toolchain_prefix = 'aarch64-linux-gnu'
754
- if common .emulator == 'gem5' :
755
- if common .machine is None :
756
- common .machine = 'VExpress_GEM5_V1'
757
- else :
758
- if common .machine is None :
759
- common .machine = 'virt'
760
751
common .is_arm = True
761
752
elif args .arch == 'x86_64' :
762
753
common .crosstool_ng_toolchain_prefix = 'x86_64-unknown-elf'
@@ -769,6 +760,16 @@ def setup(parser):
769
760
else :
770
761
if common .machine is None :
771
762
common .machine = 'pc'
763
+ if is_arm :
764
+ if common .emulator == 'gem5' :
765
+ if common .machine is None :
766
+ if args .dp650 :
767
+ common .machine = 'VExpress_GEM5_V1_DPU'
768
+ else :
769
+ common .machine = 'VExpress_GEM5_V1'
770
+ else :
771
+ if common .machine is None :
772
+ common .machine = 'virt'
772
773
common .buildroot_out_dir = os .path .join (common .out_dir , 'buildroot' )
773
774
common .buildroot_build_dir = os .path .join (common .buildroot_out_dir , 'build' , args .buildroot_build_id , args .arch )
774
775
common .buildroot_download_dir = os .path .join (common .buildroot_out_dir , 'download' )
0 commit comments