Skip to content

Commit

Permalink
waf: moved SKETCHBOOK to AP_BUILD_ROOT in ap_version.h
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Oct 19, 2023
1 parent 6835013 commit 4b0db29
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 1 addition & 0 deletions Tools/ardupilotwaf/boards.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,7 @@ def pre_build(self, bld):
def build(self, bld):
bld.ap_version_append_str('GIT_VERSION', bld.git_head_hash(short=True))
bld.ap_version_append_int('GIT_VERSION_INT', int("0x" + bld.git_head_hash(short=True), base=16))
bld.ap_version_append_str('AP_BUILD_ROOT', bld.srcnode.abspath())
import time
ltime = time.localtime()
if bld.env.build_dates:
Expand Down
6 changes: 0 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
Expand Up @@ -584,12 +584,6 @@ def configure(cfg):
else:
cfg.env.ENABLE_HEADER_CHECKS = False

# TODO: Investigate if code could be changed to not depend on the
# source absolute path.
cfg.env.prepend_value('DEFINES', [
'SKETCHBOOK="' + cfg.srcnode.abspath() + '"',
])

# Always use system extensions
cfg.define('_GNU_SOURCE', 1)

Expand Down

0 comments on commit 4b0db29

Please sign in to comment.