Lines Matching refs:write
97 f.write('\t\t')
98 f.write(hex(bytes[i]) + ',')
101 f.write('\n')
103 f.write(' ')
128 f.write('/* Generated from ' + ts + ' by ' +
130 f.write('#include <kernel/embedded_ts.h>\n\n')
131 f.write('#include <scattered_array.h>\n\n')
132 f.write('const uint8_t ts_bin_' + ts_uuid.hex + '[] = {\n')
134 f.write('};\n')
138 f.write('#include <kernel/secure_partition.h>\n\n')
139 f.write('const uint8_t fdt_bin_' + ts_uuid.hex + '[] = {\n')
141 f.write('};\n')
142 f.write('SCATTERED_ARRAY_DEFINE_PG_ITEM(sp_images, struct \
144 f.write('\t.fdt = fdt_bin_' + ts_uuid.hex + ',\n')
146 f.write('. image = {')
147 f.write('\t.flags = 0x{:04x},\n'.format(sp_get_flags(ts)))
149 f.write('SCATTERED_ARRAY_DEFINE_PG_ITEM(early_tas, struct \
151 f.write('\t.flags = 0x{:04x},\n'.format(ta_get_flags(ts)))
152 f.write('\t.uuid = {\n')
153 f.write('\t\t.timeLow = 0x{:08x},\n'.format(ts_uuid.time_low))
154 f.write('\t\t.timeMid = 0x{:04x},\n'.format(ts_uuid.time_mid))
155 f.write('\t\t.timeHiAndVersion = ' +
157 f.write('\t\t.clockSeqAndNode = {\n')
160 f.write('\t\t\t')
161 f.write(', '.join('0x' + csn[i:i + 2] for i in range(0, len(csn), 2)))
162 f.write('\n\t\t},\n\t},\n')
163 f.write('\t.size = sizeof(ts_bin_' + ts_uuid.hex +
165 f.write('\t.ts = ts_bin_' + ts_uuid.hex + ',\n')
167 f.write('\t.uncompressed_size = '
170 f.write('}\n')
171 f.write('};\n')