Thread (4 messages) flat view 4 messages, 3 authors, 2012-08-01

[Buildroot] Manual password entry for DOWNLOAD_SCP scheme

From: Thomas De Schampheleire <hidden>
Date: 2012-07-31 14:55:52

Please keep the buildroot mailing list in copy of all mails.

On Tue, Jul 31, 2012 at 1:18 PM, Steve Goldberg
[off-list ref] wrote:
Thomas,

Problem solved.  The DOWNLOAD_SCP requires two arguments, full path with
filename and filename.

Reading package/pkg-download.mk shows

DOWNLOAD $(FOO_SITE),$(FOO_SOURCE)

but scp seems to need

DOWNLOAD $(FOO_SITE)/$(FOO_SOURCE), $(FOO_SOURCE)
[...]
This is a summary of the ti-tools.mk.

XDC_VERSION=3_16_01_27
XDC_SITE=scp://host:/home/steve/TI_Tools
XDC_SOURCE=xdctools_setuplinux_$(XDC_VERSION).bin

$(DL_DIR)/$(XDC_SOURCE) :
        $(call DOWNLOAD_SCP,$(XDC_SITE)/$(XDC_SOURCE))
Note that you should call DOWNLOAD instead of DOWNLOAD_SCP directly.
This will make sure to respect the primary site and other mechanisms
that are in place.

Best regards,
Thomas


From: indeliblesteve at hotmail.com
To: patrickdepinguin+buildroot at gmail.com
Subject: RE: [Buildroot] Manual password entry for DOWNLOAD_SCP scheme
Date: Tue, 31 Jul 2012 04:07:15 -0700


Thomas,
quoted
[off-list ref] wrote:
quoted
I'm putting together a TI toolchain package but as some of the required
packages are export controlled I need to host them on my institutional
machine to control access. I think scp is the best choice for this but
the
scp scheme does not prompt for passwords and users who haven't setup
public-key ssh access are unable to download the packages. Why does the
DOWNLOAD_SCP scheme not prompt the user for a password?
In my test, using scp as primary site, it does ask for a password if
one is required.
How have you configured the package? Have you specified a user?
This is a summary of the ti-tools.mk.

XDC_VERSION=3_16_01_27
XDC_SITE=scp://host:/home/steve/TI_Tools
XDC_SOURCE=xdctools_setuplinux_$(XDC_VERSION).bin

$(DL_DIR)/$(XDC_SOURCE) :
        $(call DOWNLOAD_SCP,$(XDC_SITE)/$(XDC_SOURCE))
quoted
Have you tried running scp manually? Is a password requested there? Is
the same command used as Buildroot does?
Yes, I've manually run the scp command that is generated and it does prompt
for a password.

This is what buildroot generates.

make -C /home/steve/plat/overo/src/buildroot O=/home/steve/plat/overo/.
mkdir -p /home/steve/plat/overo/host/ti/tools
test -e /home/isteve/plat/overo/download/ || scp
'host:/home/steve/TI_Tools/xdctools_setuplinux_3_16_01_27.bin'
/home/isteve/plat/overo/download/

manually running scp
'host:/home/steve/TI_Tools/xdctools_setuplinux_3_16_01_27.bin'
/home/isteve/plat/overo/download/
prompts me for password.  I do not specify username as scp assumes the
username of the current user which is okay for my purposes.

Thanks.

Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help