Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
83
Issues
83
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
7633285f
Commit
7633285f
authored
Mar 29, 2012
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usb-loader: Improve the building script
parent
90e1017f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
build.sh
usb-loader/samba_applets/isp-project/build.sh
+14
-8
build.sh
usb-loader/samba_applets/isp-project/dataflash/build.sh
+0
-3
build.sh
usb-loader/samba_applets/isp-project/extram/build.sh
+0
-3
No files found.
usb-loader/samba_applets/isp-project/build.sh
View file @
7633285f
...
...
@@ -8,6 +8,8 @@
#### Function to compile each modules
compile_module
()
{
printf
"
\n\n
Compiling module
$1
:
\n
"
#Go to the mopdule directory
cd
${
root
}
/
${
1
}
...
...
@@ -17,19 +19,23 @@ compile_module()
# Append '+' symbol if some files need to be commited to git
if
[[
-n
`
git status
-s
.
`
]]
;
then
GITS
=
'+'
;
else
GITS
=
''
;
fi
;
if
[[
-n
$2
]]
;
then
#Execute specific make commands such as make clean, make install
make
$2
else
#Compile the module
make
CROSS_COMPILE
=
${
CROSS_COMPILE
}
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
DEFINES
=
"-D__GIT__=
\\\"
${
GITR
}${
GITS
}
\\\"
"
INSTALLDIR
=
../../
$2
make
CROSS_COMPILE
=
${
CROSS_COMPILE
}
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
DEFINES
=
"-D__GIT__=
\\\"
${
GITR
}${
GITS
}
\\\"
"
INSTALLDIR
=
../../
fi
}
#### Setup global variable
CROSS_COMPILE
=
/opt/wrs/misc/cd-g++lite/bin/arm-none-eabi-
root
=
"
$(
echo
$(
/bin/pwd
)
/
$dir
|
sed
's-/.$--'
)
"
root
=
"
$(
dirname
$(
pwd
)
/
$0
)
"
#### Compilation of dataflash module
compile_module dataflash
$
2
compile_module dataflash
$
1
#### Compilation of extern ram module
compile_module extram
$
2
compile_module extram
$
1
less
usb-loader/samba_applets/isp-project/dataflash/build.sh
deleted
100755 → 0
View file @
90e1017f
#!/bin/sh
make
CROSS_COMPILE
=
/opt/gcc-codesourcery/bin/arm-none-eabi-
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
INSTALLDIR
=
../../
$1
\ No newline at end of file
usb-loader/samba_applets/isp-project/extram/build.sh
deleted
100755 → 0
View file @
90e1017f
#!/bin/sh
make
CROSS_COMPILE
=
/opt/gcc-codesourcery/bin/arm-none-eabi-
CHIP
=
at91sam9g45
BOARD
=
at91sam9g45-ek
MEMORIES
=
sram
TRACE_LEVEL
=
5
DYN_TRACES
=
1
INSTALLDIR
=
../../
$1
\ No newline at end of file
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