Files
LPT26x-HSF-4MB-Hilink_14.2.…/build/script/__pycache__/pack_tool.cpython-37.pyc

35 lines
2.7 KiB
Plaintext
Raw Normal View History

2025-05-13 22:00:58 +08:00
B
X<><58>g<EFBFBD> <00>@sZddlZddlZddlZddlmZmZmZddlmZm Z m
Z
dd<05>Z Gdd<07>d<07>Z dS)<08>N)<03>
CopyModule<EFBFBD> output_root<6F> root_path)<03>TargetEnvironment<6E>BuildEnvironment<6E>chip_copy_targetcCs,x&tD]}|t|krt||<01>|SqWdS)N)r<00>print)<02> target_name<6D>chip<69>r <00>9/home/wjt/LPT26x-HSF-4MB-Hilink/build/script/pack_tool.py<70>find_copy_target s

 
r c@s,eZdZdd<02>Zdd<04>Zdd<06>Zdd<08>Zd S)
<EFBFBD>packToolc Cs<||_||_ddddddddd d
d g |_d g|_dg|_dS) N<>binZelf<6C>lstZasmZnm<6E>map<61>mem<65>hex<65>info<66>fwpkgZkoZ
parse_tool)<05> pack_namer <00> pack_suffix<69>pack_dir<69>pack_bin_suffix)<03>selfrr r r r <00>__init__s
zpackTool.__init__cCs*|<01>dt<01>}|<01>dt<02>}|<01>d|j<03>}|S)Nz<root>z
<out_root>z <pack_target>)<04>replacerrr)r<00>pathr r r Z__replace_copy_target_paths  z#packTool.__replace_copy_target_pathcCs<>x<>|D]<5D>}|<00>|d<00>}|<00>|d<00>}|srtj<02>|<04>rrtd|<00>tj<02>|<04>rZt<01>|<04>qtj<02>|<04>rt<08> |<04>qtd||f<00>t
dd<06>}|<06> ||<05>qWdS)N<>src<72>dstz remove %sz copy %s -> %sF)<01> copy_header) <0C>#_packTool__replace_copy_target_path<74>osr<00>existsr<00>isfile<6C>remove<76>isdir<69>shutil<69>rmtreer<00>copy)rr
Z copy_target<65>itemrr<00>cr r r <00>__pack_copy_target__ s
    

zpackTool.__pack_copy_target__c Cs<>t|j<01>}|dk r,|<00>|t||j<00>dSt|j<01>}|<02>d<01>}|<02><06>}tj<08> t
d||j <0B>}tj<08> ||j<01>}|}t d|j<00>tj<08> |<05>s<>t<07>|<05>x<>t<07>|<03>D]<5D>}tj<08>|<07>ddd<00>}||jkr<>q<EFBFBD>tj<08> ||<07>} tj<08> ||<07>}
t<12>| |
<EFBFBD>t d| |
f<00>||jk<07>rq<>tj<08> ||<07>} t d| | f<00>t<12>| | <0B>q<>Wx\t<07>|<03>D]N}||jk<07>r\<5C>qHtj<08> ||<07>} tj<08> ||<07>}
t<12>| |
<EFBFBD>t d| |
f<00><00>qHWdS)Nr
<00>packagezStart pack target %s<><73><EFBFBD><EFBFBD><EFBFBD><EFBFBD>z copy %s -> %szcopytree %s -> %s)r r r,rr<00>get<65>get_output_pathr"r<00>joinrrrr#<00>makedirs<72>listdir<69>splitextrr'r)rr<00>copytree) rr
<00>
target_env<EFBFBD> output_pathZ pack_pathZpack_target_pathZ pack_bin_path<74> file_nameZext_namerrZbin_dstr r r <00>pack/sB


 

    z packTool.packN)<07>__name__<5F>
__module__<EFBFBD> __qualname__rr!r,r:r r r r rsr) r"<00>sysr'<00>utils.build_utilsrrr<00>
enviromentrrrr rr r r r <00><module>s