From 1b8c5586b3f2ea70b77bad8271c0b348fcb7c863 Mon Sep 17 00:00:00 2001 From: Daniel Rossier Date: Tue, 22 Sep 2026 11:52:39 +0200 Subject: [PATCH] buildroot: drop the inert BR2_EXTERNAL_DIRS=.. from the build BR2_EXTERNAL_DIRS is generated by buildroot from BR2_EXTERNAL; passing it on the command line registers no external tree. BR2_EXTERNAL_NAMES and BR2_EXTERNAL_MKS stay empty, and the package infrastructure iterates over BR2_EXTERNAL_NAMES, not over BR2_EXTERNAL_DIRS. Its only two consumers are out of reach here: the %_defconfig rule, which this invocation does not target (do_configure passes no such variable), and an include of $(dir)/docs/*/*.mk, which does not exist under the output directory. Diffing the complete make variable database with and without the flag shows a single difference out of 314601 entries: the variable itself. The rootfs overlays and post_image.sh are reached by the defconfig through $(BASE_DIR)/board/..., not by any br2-external mechanism. --- build/meta-rootfs/recipes-rootfs/buildroot/buildroot_2024.11.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/meta-rootfs/recipes-rootfs/buildroot/buildroot_2024.11.bb b/build/meta-rootfs/recipes-rootfs/buildroot/buildroot_2024.11.bb index da79dc379..7373a9abc 100644 --- a/build/meta-rootfs/recipes-rootfs/buildroot/buildroot_2024.11.bb +++ b/build/meta-rootfs/recipes-rootfs/buildroot/buildroot_2024.11.bb @@ -56,7 +56,7 @@ do_build () { bbnote "Building buildroot based rootfs..." cd ${IB_TARGET} - make O=${IB_ROOTFS_PATH} BR2_EXTERNAL_DIRS=.. BR2_DL_DIR="${IB_BUILDROOT_DL_DIR}" --no-print-directory + make O=${IB_ROOTFS_PATH} BR2_DL_DIR="${IB_BUILDROOT_DL_DIR}" --no-print-directory } do_clean[nostamp] = "1"