Lines Matching refs:file

62 def append_atf_node(file, atf_index, phy_addr):  argument
67 print >> file, '\t\tatf@%d {' % atf_index
68 print >> file, '\t\t\tdescription = \"ARM Trusted Firmware\";'
69 print >> file, '\t\t\tdata = /incbin/("%s");' % data
70 print >> file, '\t\t\ttype = "firmware";'
71 print >> file, '\t\t\tarch = "arm64";'
72 print >> file, '\t\t\tos = "arm-trusted-firmware";'
73 print >> file, '\t\t\tcompression = "none";'
74 print >> file, '\t\t\tload = <0x%08x>;' % phy_addr
76 print >> file, '\t\t\tentry = <0x%08x>;' % phy_addr
77 print >> file, '\t\t\thash {'
78 print >> file, '\t\t\t\talgo = "sha256";'
79 print >> file, '\t\t\t};'
80 print >> file, '\t\t};'
81 print >> file, ''
83 def append_fdt_node(file, dtbs): argument
90 print >> file, '\t\tfdt {'
91 print >> file, '\t\t\tdescription = "U-Boot device tree blob";'
92 print >> file, '\t\t\tdata = /incbin/("u-boot.dtb");'
93 print >> file, '\t\t\ttype = "flat_dt";'
94 print >> file, '\t\t\tarch = "arm64";'
95 print >> file, '\t\t\tcompression = "none";'
96 print >> file, '\t\t\thash {'
97 print >> file, '\t\t\t\talgo = "sha256";'
98 print >> file, '\t\t\t};'
99 print >> file, '\t\t};'
100 print >> file, ''
103 def append_conf_section(file, cnt, dtname, atf_cnt): argument
104 print >> file, '\t\tconfig {'
105 print >> file, '\t\t\tdescription = "Rockchip armv8 with ATF";'
106 print >> file, '\t\t\trollback-index = <0x0>;'
107 print >> file, '\t\t\tfirmware = "atf@1";'
108 print >> file, '\t\t\tloadables = "uboot",',
110 print >> file, '"atf@%d"' % (i+1),
112 print >> file, ',',
114 print >> file, ';'
115 print >> file, '\t\t\tfdt = "fdt";'
116 print >> file, '\t\t\tsignature {'
117 print >> file, '\t\t\t\talgo = "sha256,rsa2048";'
118 print >> file, '\t\t\t\tpadding = "pss";'
119 print >> file, '\t\t\t\tkey-name-hint = "dev";'
120 print >> file, '\t\t\t\tsign-images = "fdt", "firmware", "loadables";'
121 print >> file, '\t\t\t};'
122 print >> file, '\t\t};'
123 print >> file, ''
125 def append_conf_node(file, dtbs, atf_cnt): argument
130 print >> file, '\tconfigurations {'
131 print >> file, '\t\tdefault = "config";'
134 append_conf_section(file, cnt, dtname, atf_cnt)
136 print >> file, '\t};'
137 print >> file, ''