Lines Matching refs:f
83 with open(args.edt_pickle, 'rb') as f:
84 edt = pickle.load(f)
106 cmake_props.append(f'"DT_CHOSEN|{node}" "{path}"')
113 cmake_props.append(f'"DT_ALIAS|{alias}" "{path}"')
117 cmake_props.append(f'"DT_NODE|{node.path}" TRUE')
120 cmake_props.append(f'"DT_NODELABEL|{label}" "{node.path}"')
129 cmake_value = f'{cmake_value}{val};'
135 cmake_prop = f'DT_PROP|{node.path}|{item}'
136 cmake_props.append(f'"{cmake_prop}" "{escape(cmake_value)}"')
144 cmake_props.append(f'"DT_REG|{node.path}|NUM" "{len(node.regs)}"')
150 cmake_addr = f'{cmake_addr}NONE;'
152 cmake_addr = f'{cmake_addr}{hex(reg.addr)};'
155 cmake_size = f'{cmake_size}NONE;'
157 cmake_size = f'{cmake_size}{hex(reg.size)};'
159 cmake_props.append(f'"DT_REG|{node.path}|ADDR" "{cmake_addr}"')
160 cmake_props.append(f'"DT_REG|{node.path}|SIZE" "{cmake_size}"')
165 cmake_path = f'{cmake_path}{path};'
170 cmake_comp = f'DT_COMP|{comp}'
171 cmake_props.append(f'"{cmake_comp}" "{cmake_path}"')
179 f'set_target_properties(devicetree_target PROPERTIES {prop})',