buildtest
uses wrong build directory
#9742
Labels
Area: build system
Area: Build system
Type: bug
The issue reports a bug / The PR fixes a bug (including spelling errors)
Description
When building using
buildtest
the build is not using the BOARDbin/$(BOARD)
directory but the default BOARD defined in the application MakefileBOARD ?= native
.This also has consequences on
dist/tools/compile_test/compile_test.py
which is usingbuildtest
.EDIT: This only happens when setting variables on the command line as then the
MAKEOVERRIDES
from here are done even if these variables are not set.RIOT/Makefile.include
Line 69 in c7894d2
I think a solution is to only override variables which were set from the command line (by checking
origin
) before changing there value.A better fix would be to never override but require variables to have been set absolute if set from the command line, (and maybe also environment) but it changes the behavior.
Steps to reproduce the issue
I am using #9741 to make it more visible during compilation but can be done without.
When building for
iotlab-m3
the output is saved inbin/native
.When running some compilations with
buildtest
I also sometime had strange issues with packages withnative
but was correct when build alone.I think it is related to an issue with the package
clean
which was shown with this path collision.Expected results
Building in
bin/iotlab-m3
Actual results
Build in
bin/native
.Versions
Ubuntu 16.04
The text was updated successfully, but these errors were encountered: