Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
H
hostCompiledSimulation
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
hostCompiledSimulation
Commits
23b5bc00
Commit
23b5bc00
authored
Jul 04, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile, fixing some bugs
Signed-off-by:
Gaurav Kukreja
<
gaurav@gauravk.in
>
parent
66a464a5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
47 deletions
+14
-47
Makefile
examples/Makefile
+9
-43
Makefile.macros
examples/Makefile.macros
+5
-4
No files found.
examples/Makefile
View file @
23b5bc00
...
@@ -2,8 +2,8 @@ include ../Makefile.macros
...
@@ -2,8 +2,8 @@ include ../Makefile.macros
include
Makefile.macros
include
Makefile.macros
#EXAMPLES = sieve crc32 adpcm sha basicmath
#EXAMPLES = sieve crc32 adpcm sha basicmath
EXAMPLES
=
sha sieve
#
EXAMPLES = sha sieve
#EXAMPLES = simpl
e
EXAMPLES
=
siev
e
STARTADR
=
0x10000214
STARTADR
=
0x10000214
# Space separated list of all C files in APPDIR
# Space separated list of all C files in APPDIR
...
@@ -29,21 +29,14 @@ app:
...
@@ -29,21 +29,14 @@ app:
$(MAKE)
-C
$$
e/
$(APPDIR)
PHASE
=
final all
;
\
$(MAKE)
-C
$$
e/
$(APPDIR)
PHASE
=
final all
;
\
done
done
run
:
run_ir2c hc_dev
#run: run_ir2c
run_test
:
ir2c back_annotate
ir2c
:
run_test_all
:
set
-e
;
for
e
in
$(EXAMPLES)
;
do
\
set
-e
;
for
e
in
$(EXAMPLES)
;
do
\
$(MAKE)
APPBASEDIR
=
$$
e
run_test
;
\
$(MAKE)
APPBASEDIR
=
$$
e
ir2c_full
;
\
done
done
ir2c
:
run_ir2c compile_ir2c test_ir2c
ir2c_full
:
run_ir2c compile_ir2c test_ir2c
ir2c_all
:
set
-e
;
for
e
in
$(EXAMPLES)
;
do
\
$(MAKE)
APPBASEDIR
=
$$
e ir2c
;
\
done
run_ir2c
:
run_ir2c
:
set
-e
;
$
(
foreach s,
$(SRC)
,
$(IR2C)
$(s)
>
$(APPBASEDIR)
/
$(IRDIR)
/
$
(
basename
$
(
notdir
$(s)
))
_IR.c
;
)
set
-e
;
$
(
foreach s,
$(SRC)
,
$(IR2C)
$(s)
>
$(APPBASEDIR)
/
$(IRDIR)
/
$
(
basename
$
(
notdir
$(s)
))
_IR.c
;
)
...
@@ -59,40 +52,13 @@ test_ir2c:
...
@@ -59,40 +52,13 @@ test_ir2c:
clean_ir2c
:
clean_ir2c
:
@
echo
Cleaning up IR 2 C
test
@
echo
Cleaning up IR 2 C
test
-
rm
$(APPBASEDIR)
/
$(IRDIR)
/
*
IR.c
-
rm
-rf
$(APPBASEDIR)
/
$(IRDIR)
/
*
IR.c
$(MAKE)
-C
$(APPBASEDIR)
/
$(IRDIR)
clean
back_annotate
:
hc_dev compile_hc test_hc
back_annotate_all
:
set
-e
;
for
e
in
$(EXAMPLES)
;
do
\
$(MAKE)
APPBASEDIR
=
$$
e back_annotate
;
\
done
hc_dev
:
$(BA)
-i
$(APPBASEDIR)
/
$(IRDIR)$(IRFILE)
-I
$(APPBASEDIR)
/
$(OBJDIR)
set
-e
;
$
(
foreach h,
$(HDR)
,
$(LN)
-f
../
$(APPDIR)
/
$
(
basename
$
(
notdir
$(h)
))
.h
$(APPBASEDIR)
/
$(HC_DIR)
/
$
(
basename
$
(
notdir
$(h)
))
.h
;
)
mapping
:
$(MAP)
-i
$(APPBASEDIR)
/
$(IRDIR)$(IRFILE)
-I
$(APPBASEDIR)
/
$(OBJDIR)
compile_hc
:
$(MAKE)
-C
$(APPBASEDIR)
/
$(HC_DIR)
test_hc
:
$(MAKE)
-C
$(APPBASEDIR)
/
$(HC_DIR)
test
#adding - to rm so that errors are ignored
clean_ba
:
@
echo
Cleaning up back annotation
test
-
rm
$(ENV_IN_DAT_DIR)
/
*
.dat
$(ENV_OUT_DAT_DIR)
/
*
.dat
$(ENV_IN_PWR_TOOL_DIR)
/
*
.xml
$(ENV_OUT_PWR_TOOL_DIR)
/
*
$(ENV_HC_DIR)
/
*
.c
$(ENV_HC_DIR)
/
*
.out
clean
:
clean
:
for
e
in
$(EXAMPLES)
;
do
\
for
e
in
$(EXAMPLES)
;
do
\
$(MAKE)
-C
$$
e/
$(APPDIR)
clean
;
\
$(MAKE)
-C
$$
e/
$(APPDIR)
clean
;
\
$(MAKE)
APPBASEDIR
=
$$
e clean_plat_app clean_plat_hc
;
\
$(MAKE)
APPBASEDIR
=
$$
e clean_ir2c
;
\
$(MAKE)
APPBASEDIR
=
$$
e clean_ir2c clean_ba
;
\
done
done
...
...
examples/Makefile.macros
View file @
23b5bc00
...
@@ -2,8 +2,9 @@
...
@@ -2,8 +2,9 @@
#APPBASEDIR=sieve
#APPBASEDIR=sieve
#APPBASEDIR=basicmath
#APPBASEDIR=basicmath
#APPBASEDIR=crc32
#APPBASEDIR=crc32
APPBASEDIR
=
adpcm
#
APPBASEDIR=adpcm
#APPBASEDIR=sha
#APPBASEDIR=sha
APPBASEDIR
=
simple
##################
##################
#Define directory where application source files are stored. Must contain IR files too
#Define directory where application source files are stored. Must contain IR files too
...
@@ -46,7 +47,7 @@ PYTHON = python
...
@@ -46,7 +47,7 @@ PYTHON = python
RM
=
rm
RM
=
rm
TOUCH
=
touch
TOUCH
=
touch
LN
=
ln
-s
LN
=
ln
-s
CROSS_GCC
=
arm-
linux-gnueabi-gcc-4.4
CROSS_GCC
=
arm-
none-eabi-gcc
CROSS_OBJDUMP
=
arm-
linux-gnueabi-objdump
CROSS_OBJDUMP
=
arm-
none-eabi-objdump
GCC
=
gcc-4.4
GCC
=
gcc-4.4
HOST_OBJDUMP
=
objdump
HOST_OBJDUMP
=
objdump
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