[Buildroot] [git commit] package/dropbear: use BR2_SYSTEM_DEFAULT_PATH as default PATH

Thomas Petazzoni thomas.petazzoni at bootlin.com
Mon Dec 31 13:33:33 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=c7f3f462c526e51698b6d63284e80ad24c044c34
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

We use the configuration option $(BR2_SYSTEM_DEFAULT_PATH) to set the
default PATH in dropbear sessions.

$(BR2_SYSTEM_DEFAULT_PATH) is a Kconfig string. So it is already
quoted, which is exactly what we want.

Signed-off-by: Markus Mayer <mmayer at broadcom.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 package/dropbear/dropbear.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/dropbear/dropbear.mk b/package/dropbear/dropbear.mk
index 7b1468cfb1..a5a8243bd4 100644
--- a/package/dropbear/dropbear.mk
+++ b/package/dropbear/dropbear.mk
@@ -81,6 +81,12 @@ define DROPBEAR_DISABLE_STANDALONE
 	echo '#define NON_INETD_MODE 0'                 >> $(@D)/localoptions.h
+	echo '#define DEFAULT_PATH $(BR2_SYSTEM_DEFAULT_PATH)' >>$(@D)/localoptions.h
 	$(INSTALL) -D -m 644 package/dropbear/dropbear.service \

More information about the buildroot mailing list