xref: /openbmc/u-boot/lib/libfdt/test_libfdt.py (revision c98b171e)
1#!/usr/bin/python
2
3import os
4import sys
5
6our_path = os.path.dirname(os.path.realpath(__file__))
7sys.path.append(os.path.join(our_path, '../../b/sandbox_spl/tools'))
8
9import libfdt
10
11with open('b/sandbox_spl/u-boot.dtb') as fd:
12    fdt = fd.read()
13
14print libfdt.fdt_path_offset(fdt, "/aliases")
15