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
856d6546
Commit
856d6546
authored
12 years ago
by
Andrew Tridgell
Browse files
Options
Downloads
Patches
Plain Diff
PX4-build: cope with relative path in PX4_ROOT
parent
d7b1c693
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mk/px4_targets.mk
+8
-0
8 additions, 0 deletions
mk/px4_targets.mk
with
8 additions
and
0 deletions
mk/px4_targets.mk
+
8
−
0
View file @
856d6546
...
...
@@ -2,6 +2,14 @@
ifneq
($(PX4_ROOT),)
# try to cope with relative paths
ifeq
($(wildcard $(PX4_ROOT)/nuttx),)
PX4_ROOT
:=
$(
shell
cd
$(
SKETCHBOOK
)
/
$(
PX4_ROOT
)
&&
pwd
)
endif
ifeq
($(wildcard $(PX4_ROOT)/nuttx),)
$(error ERROR
:
PX4_ROOT not set correctly - no nuttx directory found)
endif
PX4_CONFIG_FILE
=
$(
MK_DIR
)
/PX4/config_px4fmu_APM.mk
SKETCHFLAGS
=
$(
SKETCHLIBINCLUDES
)
-I
$(
PWD
)
-DCONFIG_HAL_BOARD
=
HAL_BOARD_PX4
-DSKETCHNAME
=
"
\\\"
$(
SKETCH
)
\\\"
"
-DSKETCH_MAIN
=
ArduPilot_main
PX4_MAKE
=
make
-C
$(
BUILDROOT
)
-f
$(
PX4_ROOT
)
/makefiles/firmware.mk
CONFIG_FILE
=
$(
PWD
)
/
$(
PX4_CONFIG_FILE
)
EXTRADEFINES
=
"
$(
SKETCHFLAGS
)
"
$(
EXTRAFLAGS
)
APM_MODULE_DIR
=
$(
BUILDROOT
)
SKETCHBOOK
=
$(
SKETCHBOOK
)
PX4_ROOT
=
$(
PX4_ROOT
)
...
...
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