About "DEFAULT_PATH" and "_PATH_SSH_PROGRAM" variables

Matt Johnston matt at ucc.asn.au
Sat Apr 20 10:12:51 WST 2013


The options.h file is intended to be edited for
configuration. I'll add those #ifndefs too though - it
should probably happen for all of the things in options.h

Cheers,
Matt

On Fri, Apr 19, 2013 at 04:24:47PM +0800, Yuan-Yi Chang wrote:
> Hi,
> 
> I'm new to Embedded System World.  There are some problems, "scp not
> found", when I use dropbear-scp to copy some files. I trace the source code
> to find the DEFINE variables: DEFAULT_PATH & _PATH_SSH_PROGRAM.
> 
> Could we redefine it at configure or make process without modify the source
> code?
> 
> like that:
> ===
> +#ifndef _PATH_SSH_PROGRAM
>  #define _PATH_SSH_PROGRAM "/usr/bin/dbclient"
> +#endif
> 
> +#ifndef DEFAULT_PATH
>  #define DEFAULT_PATH "/usr/bin:/bin"
> +#endif
> 
> and then:
> ===
> $ ./configure
> $ CFLAGS=' -D_PATH_SSH_PROGRAM="/path/dbclient"
> -DDDEFAULT_PATH="/usr/bin:/bin:/mnt/ubi_boot/bin"  ' make
> $ CFLAGS=' -D_PATH_SSH_PROGRAM="/path/dbclient"
> -DDDEFAULT_PATH="/usr/bin:/bin:/mnt/ubi_boot/bin"  ' make scp
> 
> 
> Best Regards,
> Yuan-Yi Chang


More information about the Dropbear mailing list