makefile: Fix recursive makes
Since the Kbuild bump to 5.1 and specifically commitaf1a993570("kbuild: make -r/-R effective in top Makefile for old Make versions") the recursion rules have changed. 'make O=/output/dir/' as well as './test/py/test.py --bd sandbox --build' is working fine but anything that recursively called the makefile was failing e.g 'make tests', 'make qcheck' etc, which calls a bash script that ends up calling the makefile again. The reason is that the internal 'sub_make_done' variable of the makefile was set after the first pass and the output dir was never evaluated properly. Reset the variable value if we are executing any of these tests. Fixes:af1a993570("kbuild: make -r/-R effective in top Makefile for old Make versions") Reported-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org> Test-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
committed by
Tom Rini
parent
b10c055d4e
commit
38f40e6de6
Reference in New Issue
Block a user