xref: /OK3568_Linux_fs/u-boot/lib/libfdt/test_libfdt.py (revision 4882a59341e53eb6f0b4789bf948001014eff981)
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