Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Baitboat
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
Baitboat
Commits
b59f2d43
Commit
b59f2d43
authored
11 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
build: put px4io elf files in build directory
parent
cacba13c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Tools/scripts/build_binaries.sh
+7
-1
7 additions, 1 deletion
Tools/scripts/build_binaries.sh
mk/px4_targets.mk
+2
-0
2 additions, 0 deletions
mk/px4_targets.mk
with
9 additions
and
1 deletion
Tools/scripts/build_binaries.sh
+
7
−
1
View file @
b59f2d43
...
@@ -35,7 +35,7 @@ checkout() {
...
@@ -35,7 +35,7 @@ checkout() {
# check if we should skip this build because we have already
# check if we should skip this build because we have already
# built this version
# built this version
skip_build
()
{
skip_build
()
{
[
"
$FORCE_BUILD
"
-eq
"1"
]
&&
return
1
[
"
$FORCE_BUILD
"
=
"1"
]
&&
return
1
tag
=
"
$1
"
tag
=
"
$1
"
ddir
=
"
$2
"
ddir
=
"
$2
"
bname
=
$(
basename
$ddir
)
bname
=
$(
basename
$ddir
)
...
@@ -106,6 +106,12 @@ build_arduplane() {
...
@@ -106,6 +106,12 @@ build_arduplane() {
make px4
&&
make px4
&&
copyit ArduPlane-v1.px4
$ddir
$tag
&&
copyit ArduPlane-v1.px4
$ddir
$tag
&&
copyit ArduPlane-v2.px4
$ddir
$tag
copyit ArduPlane-v2.px4
$ddir
$tag
if
[
"
$tag
"
=
"latest"
]
;
then
copyit px4io-v1.bin
$binaries
/PX4IO/
$hdate
/PX4IO
$tag
copyit px4io-v1.elf
$binaries
/PX4IO/
$hdate
/PX4IO
$tag
copyit px4io-v2.bin
$binaries
/PX4IO/
$hdate
/PX4IO
$tag
copyit px4io-v2.elf
$binaries
/PX4IO/
$hdate
/PX4IO
$tag
fi
}
}
}
}
popd
popd
...
...
This diff is collapsed.
Click to expand it.
mk/px4_targets.mk
+
2
−
0
View file @
b59f2d43
...
@@ -87,6 +87,7 @@ px4-io-v1: $(PX4_ROOT)/Archives/px4io-v1.export
...
@@ -87,6 +87,7 @@ px4-io-v1: $(PX4_ROOT)/Archives/px4io-v1.export
$(
v
)
make
-C
$(
PX4_ROOT
)
px4io-v1_default
$(
v
)
make
-C
$(
PX4_ROOT
)
px4io-v1_default
$(
v
)
/bin/rm
-f
px4io-v1.bin
$(
v
)
/bin/rm
-f
px4io-v1.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Images/px4io-v1_default.bin px4io-v1.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Images/px4io-v1_default.bin px4io-v1.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Build/px4io-v1_default.build/firmware.elf px4io-v1.elf
$(
v
)
mkdir
-p
$(
MK_DIR
)
/PX4/ROMFS/px4io/
$(
v
)
mkdir
-p
$(
MK_DIR
)
/PX4/ROMFS/px4io/
$(
v
)
rm
-f
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
rm
-f
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
cp
px4io-v1.bin
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
cp
px4io-v1.bin
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
...
@@ -101,6 +102,7 @@ px4-io-v2: $(PX4_ROOT)/Archives/px4io-v2.export
...
@@ -101,6 +102,7 @@ px4-io-v2: $(PX4_ROOT)/Archives/px4io-v2.export
$(
v
)
/bin/rm
-f
px4io-v1.bin
$(
v
)
/bin/rm
-f
px4io-v1.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Build/px4io-v2_default.build/firmware.bin px4io-v2.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Build/px4io-v2_default.build/firmware.bin px4io-v2.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Images/px4io-v2_default.bin px4io-v2.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Images/px4io-v2_default.bin px4io-v2.bin
$(
v
)
cp
$(
PX4_ROOT
)
/Build/px4io-v2_default.build/firmware.elf px4io-v2.elf
$(
v
)
mkdir
-p
$(
MK_DIR
)
/PX4/ROMFS/px4io/
$(
v
)
mkdir
-p
$(
MK_DIR
)
/PX4/ROMFS/px4io/
$(
v
)
rm
-f
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
rm
-f
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
cp
px4io-v2.bin
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
$(
v
)
cp
px4io-v2.bin
$(
MK_DIR
)
/PX4/ROMFS/px4io/px4io.bin
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment