90 Commits

Author SHA1 Message Date
Alejandro Mery
79ea14d4e0 Relicensed as GPLv2+ 2012-06-15 22:34:22 +02:00
Alejandro Mery
de158a9273 fexc: fix error returning (closes #2) 2012-06-14 14:11:15 +02:00
Alejandro Mery
8fcf5def3a script_bin: add pr_debug() helper 2012-06-14 14:06:30 +02:00
Alejandro Mery
9bb5adf7d5 script_bin: add pr_debug() helper 2012-06-14 10:45:37 +02:00
Alejandro Mery
3cabfc519b script_bin: fix typo 2012-06-14 10:14:00 +02:00
Alejandro Mery
e4dc28068c script_fex: don't put a tab before the =
it's annoying
2012-06-07 23:29:19 +02:00
Alejandro Mery
4977886293 common: add ARRAY_SIZE() macro 2012-05-12 13:38:59 +02:00
Alejandro Mery
e36d38660b README: updated to reflect fexc 2012-05-11 16:30:41 +02:00
Alejandro Mery
a14b0a7aa8 script_bin: move bin structs from script.h to script_bin.h 2012-05-11 16:20:48 +02:00
Alejandro Mery
0fd1bc1004 bin2fex: split across script_bin and script_fex 2012-05-11 16:13:39 +02:00
Alejandro Mery
473b30dcad fexc: allow bin inputs that aren't regular files 2012-05-11 12:46:52 +02:00
Alejandro Mery
73b18fcfc9 fexc: move bin2fex's main() in 2012-05-11 12:02:10 +02:00
Alejandro Mery
650b1dfa79 script_fex: move parser from fex2bin.c and make fexc use it 2012-05-11 10:50:41 +02:00
Alejandro Mery
02a8f0abd2 fexc: use script_bin.o 2012-05-11 10:34:51 +02:00
Alejandro Mery
c3e7cb1d51 fexc: move fex2bin's main() in 2012-05-11 10:26:36 +02:00
Alejandro Mery
a2d5f0a42e fexc: use script.o 2012-05-11 09:22:47 +02:00
Alejandro Mery
1fc1addd2d fexc: finish main() 2012-05-11 09:08:19 +02:00
Alejandro Mery
5ebef7dc14 fexc: indentify optional input and output filenames from the arguments 2012-05-11 01:14:45 +02:00
Alejandro Mery
2ed5673a9a build: making bin2fex and fex2bin mere symlinks to fexc 2012-05-11 00:51:54 +02:00
Alejandro Mery
8b85878f26 fexc: set formats for bin2fex and implement -q 2012-05-10 12:30:15 +02:00
Alejandro Mery
90e67cba62 fexc: prepare for multitool support and validate input and output format options 2012-05-10 12:05:33 +02:00
Alejandro Mery
020f001c20 fexc: add do-nothing fexc tool 2012-05-10 09:55:10 +02:00
Alejandro Mery
352188a376 renamed sunxi-tools.h to common.h 2012-05-10 09:33:41 +02:00
Alejandro Mery
a4c457453e README: add required copyright line 2012-05-07 13:08:04 +02:00
Alejandro Mery
a178838b1f README: add content 2012-05-07 13:04:11 +02:00
Alejandro Mery
a431934d95 script_bin: and finally generate the bin 2012-05-07 12:37:22 +02:00
Alejandro Mery
ecafed9c0b bin2fex: renamed length to words where proper 2012-05-07 12:36:59 +02:00
Alejandro Mery
b78b4f31ec fex2bin: fixed bug parsing GPIO port 2012-05-07 12:34:47 +02:00
Alejandro Mery
ca7c27734f script_bin: generate_bin: calculate base offsets and write header 2012-05-07 10:56:24 +02:00
Alejandro Mery
919237127d fex2bin: call generate_bin() and write data out on success 2012-05-07 10:25:24 +02:00
Alejandro Mery
2abe140ba4 fex2bin: open out as fd instead of FILE* 2012-05-07 09:59:27 +02:00
Alejandro Mery
049f0daf13 fex2bin: refactored generate_bin() as calculate_bin_size() into script_bin.c 2012-05-07 09:39:02 +02:00
Alejandro Mery
4484aac3fd bin2fex: pr_err() and pr_info() to stderr _and_ out 2012-05-07 00:00:31 +02:00
Alejandro Mery
2f14c61702 fex2bin: calculate bin size to allocate 2012-05-06 23:54:04 +02:00
Alejandro Mery
05846bc397 sunxi-tools.h: add list_insert() and list_next() helpers 2012-05-06 23:24:57 +02:00
Alejandro Mery
25e78f0c2a script: moved script_bin_* structs from bin2fex.h to script.h 2012-05-06 21:57:07 +02:00
Alejandro Mery
85d240fa43 bin2fex: refactored script_bin_head including the array of sections 2012-05-06 21:51:22 +02:00
Alejandro Mery
315a590a89 bin2fex: renamed script_* structs to script_bin_* 2012-05-06 21:45:27 +02:00
Alejandro Mery
fa9dede45a fex2bin: temporarily introduce VERBOSE define to silent the parser (need getopt) 2012-05-06 21:34:00 +02:00
Alejandro Mery
97976d056e fex2bin: finish parsing GPIO data 2012-05-06 21:30:38 +02:00
Alejandro Mery
fd16859d79 script: changed gpio data to int32_t 2012-05-06 21:28:46 +02:00
Alejandro Mery
65059d0543 fex2bin: sighly cleaned key=value parsing loop 2012-05-06 20:37:53 +02:00
Alejandro Mery
4348a750b0 fex2bin: break parsing loop when it's not ok 2012-05-06 20:29:36 +02:00
Alejandro Mery
7020ebff4e fex2bin: add verbose logs to stderr of detected entries 2012-05-06 18:51:13 +02:00
Alejandro Mery
acea6b5011 fex2bin: parse GPIO number 2012-05-06 16:51:39 +02:00
Alejandro Mery
6eabb9cc8f fex2bin: constructing the script tree... except GPIOs 2012-05-06 16:24:26 +02:00
Alejandro Mery
4d6b096caa script: renamed script_*_entry_append() to _new() and changed to receive the section instead of the script 2012-05-06 16:05:32 +02:00
Alejandro Mery
bdd5abdbe1 script: rename script_section_append() to script_section_new() 2012-05-06 16:04:03 +02:00
Alejandro Mery
1d0c2f15f0 fex2bin: add warning about it's unfunctional state 2012-05-06 12:50:00 +02:00
Alejandro Mery
e72443c0bb fex2bin: parse single word values and identify GPIO ones 2012-05-05 20:06:23 +02:00