]> git.ipfire.org Git - people/ms/u-boot.git/blame - lib/libfdt/test_libfdt.py
dtoc: Support packing the device tree
[people/ms/u-boot.git] / lib / libfdt / test_libfdt.py
CommitLineData
76bce10d
SG
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")