Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
02a8f0ab
Commit
02a8f0ab
authored
May 11, 2012
by
Alejandro Mery
Browse files
fexc: use script_bin.o
parent
c3e7cb1d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
02a8f0ab
...
...
@@ -17,7 +17,8 @@ $(TOOLS): Makefile common.h
fex2bin bin2fex
:
fexc
ln
-s
$<
$@
fexc
:
script.h script.c
fexc
:
script.h script.c
\
script_bin.h script_bin.c
%
:
%.c %.h
$(CC)
$(CFLAGS)
$(LDFLAGS)
-o
$@
$(
filter
%.c,
$^
)
$(LIBS)
...
...
fexc.c
View file @
02a8f0ab
...
...
@@ -41,21 +41,6 @@ static int script_parse_fex(FILE *UNUSED(in), const char *UNUSED(filename),
return
0
;
}
static
size_t
script_bin_size
(
struct
script
*
UNUSED
(
script
),
size_t
*
UNUSED
(
sections
),
size_t
*
UNUSED
(
entries
))
{
return
0
;
}
static
int
script_generate_bin
(
void
*
UNUSED
(
bin
),
size_t
UNUSED
(
bin_size
),
struct
script
*
UNUSED
(
script
),
size_t
UNUSED
(
sections
),
size_t
UNUSED
(
entries
))
{
return
0
;
}
/*
*/
static
inline
int
script_parse
(
enum
script_format
format
,
...
...
fexc.h
View file @
02a8f0ab
...
...
@@ -22,5 +22,6 @@
#include <stdint.h>
#include "script.h"
#include "script_bin.h"
#endif
script_bin.c
View file @
02a8f0ab
...
...
@@ -32,8 +32,8 @@
/**
*/
size_t
calculate
_bin_size
(
struct
script
*
script
,
size_t
*
sections
,
size_t
*
entries
)
size_t
script
_bin_size
(
struct
script
*
script
,
size_t
*
sections
,
size_t
*
entries
)
{
size_t
words
=
0
,
bin_size
=
0
;
struct
list_entry
*
ls
,
*
le
;
...
...
@@ -91,8 +91,9 @@ size_t calculate_bin_size(struct script *script,
return
bin_size
;
}
int
generate_bin
(
void
*
bin
,
size_t
UNUSED
(
bin_size
),
struct
script
*
script
,
size_t
sections
,
size_t
entries
)
int
script_generate_bin
(
void
*
bin
,
size_t
UNUSED
(
bin_size
),
struct
script
*
script
,
size_t
sections
,
size_t
entries
)
{
struct
script_bin_head
*
head
;
struct
script_bin_section
*
section
;
...
...
script_bin.h
View file @
02a8f0ab
...
...
@@ -17,9 +17,10 @@
#ifndef _SUBXI_TOOLS_SCRIPT_BIN_H
#define _SUBXI_TOOLS_SCRIPT_BIN_H
size_t
calculate_bin_size
(
struct
script
*
script
,
size_t
*
sections
,
size_t
*
entries
);
size_t
script_bin_size
(
struct
script
*
script
,
size_t
*
sections
,
size_t
*
entries
);
int
script_generate_bin
(
void
*
bin
,
size_t
bin_size
,
struct
script
*
script
,
size_t
sections
,
size_t
entries
);
int
generate_bin
(
void
*
bin
,
size_t
bin_size
,
struct
script
*
script
,
size_t
sections
,
size_t
entries
);
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment