From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Korsgaard Date: Mon, 16 Jan 2017 13:55:20 +0100 Subject: [Buildroot] [PATCH] core/br2-external: fix use of relative paths In-Reply-To: <1484407252-8713-1-git-send-email-yann.morin.1998@free.fr> (Yann E. MORIN's message of "Sat, 14 Jan 2017 16:20:52 +0100") References: <1484407252-8713-1-git-send-email-yann.morin.1998@free.fr> Message-ID: <87h94zcgg7.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Yann" == Yann E MORIN writes: > When the path to a br2-external tree is relative, make enters an endless > recursive loop (paths elided for brevity): > $ make BR2_EXTERNAL=.. foo_defconfig > make[1]: stat: ../configs/../configs/../configs[...]/toto_defconfig: Filename too long > make[1]: *** No rule to make target '../configs/../configs/../configs[...]/toto_defconfig', > needed by '../configs/../configs/../configs[...]/toto_defconfig'. Stop. > Makefile:79: recipe for target '_all' failed > make: *** [_all] Error 2 > It is a bit complex to understand the actual technical reason for this > never-ending expansion; it seems it happens in the code generated by the > percent_defconfig macro. Not sure why, though... > But the root cause is the relative path. > Just use absolute, canonical paths to br2-external trees. Always. > Reported-by: outtierbert at gmail.com > Signed-off-by: "Yann E. MORIN" Committed after adding to the commit message that this fixes #9576 -- Bye, Peter Korsgaard