blob: 605f21a1d4d30996e093cd8d75c29aa12e5531d0 [file] [log] [blame]
#
# Copyright 2020, Data61, CSIRO (ABN 41 687 119 230)
#
# SPDX-License-Identifier: BSD-2-Clause
#
from __future__ import absolute_import, division, print_function, \
unicode_literals
# Add the root directory of this repository to your PYTHONPATH environment
# variable to enable the following import.
import capdl
# Load an ELF file.
elf = capdl.ELF('../tests/arm-elf/hello.bin')
# Generate CapDL.
print(elf.get_spec())