[Buildroot] [PATCH] package: dropbear: make PATH configurable

Christopher McCrory chrismcc at gmail.com
Fri Mar 9 17:10:46 UTC 2018


On Thu, Mar 8, 2018 at 4:34 PM, Christopher McCrory <chrismcc at gmail.com>
wrote:

<snip>



>
> $ ssh brcmstb
> # echo $PATH
> /bin:/usr/bin:/sbin:/usr/sbin
>
>
>
>
> ssh -t $host echo $PATH
>
>
I thought that would work (forcing a term), but it doesn't


This will do what you want on your local project

$ cat output/local.mk
DROPBEAR_CONF_OPTS += --enable-foo=bar

define DROPBEAR_CUSTOM_PATH
$(SED) 's|^\(#define DEFAULT_PATH\).*|\1
"/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"|'
$(@D)/options.h
endef

DROPBEAR_POST_EXTRACT_HOOKS += DROPBEAR_CUSTOM_PATH






-- 
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20180309/4ec865f7/attachment-0002.html>


More information about the buildroot mailing list