Changeset e9f7778 in mainline


Ignore:
Timestamp:
2021-03-22T21:35:16Z (3 years ago)
Author:
Jakub Jermář <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
dbf1be5
Parents:
b27553c
Message:

tools/ew.py: Add support for Raspberry Pi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    rb27553c re9f7778  
    139139                return 'system-x86_64', pc_options(64)
    140140        elif platform == 'arm32':
    141                 return 'system-arm', '-M integratorcp'
     141                if machine == 'integratorcp':
     142                        return 'system-arm', '-M integratorcp'
     143                elif machine == 'raspberrypi':
     144                        return 'system-arm', '-M raspi1ap'
    142145        elif platform == 'arm64':
    143146                # Search for the EDK2 firmware image
     
    299302        elif cfg['image'] == 'image.boot':
    300303                cmdline += ' -kernel image.boot'
     304        elif cfg['image'] == 'kernel.img@rpi':
     305                cmdline += ' -bios boot/image.boot.bin'
    301306        else:
    302307                cmdline += ' ' + cfg['image']
     
    339344                        'xhci' : False,
    340345                        'tablet' : False
    341                 }
     346                },
     347                'raspberrypi' : {
     348                        'run' : qemu_run,
     349                        'image' : 'kernel.img@rpi',
     350                        'audio' : False,
     351                        'console' : True,
     352                        'hdd' : False,
     353                        'net' : False,
     354                        'tablet' : False,
     355                        'usb' : False,
     356                        'xhci' : False
     357                },
    342358        },
    343359        'arm64' : {
Note: See TracChangeset for help on using the changeset viewer.