We can update BOARD after rules.mk is parsed to adjust the build directory to be removed when executing the clean target.
Because other variables all use immediate assignment := they're not effected when we make this change to BOARD.
But due to the way make works, when it goes to actually execute the clean target on the second pass BOARD is now set to _build like we want.
A hopefully simple fix for #1
We can update
BOARD
afterrules.mk
is parsed to adjust the build directory to be removed when executing the clean target. Because other variables all use immediate assignment:=
they're not effected when we make this change toBOARD
.But due to the way make works, when it goes to actually execute the
clean
target on the second passBOARD
is now set to_build
like we want.