On 2/13/20 4:05 PM, Guillermo Rodriguez Garcia wrote:

>>>>>
>>>>>>>>> +# 
>>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>> +# Install
>>>>>>>>> +# 
>>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>> +
>>>>>>>>> +$(STATEDIR)/tf-a.install:
>>>>>>>>> +       @$(call targetinfo)
>>>>>>>>> +ifeq ($(TF_A_ARTIFACTS_SRC),)
>>>>>>>>> +       $(warning TF_A_ARTIFACTS is empty. nothing to install.)
>>>>>>>>> +else
>>>>>>>>> +       @install -m644 -D \
>>>>>>>>> +               
>>>>>>>>> --target-directory=$(PTXCONF_SYSROOT_TARGET)/usr/lib/firmware \
>>>>>>>>

> OK this makes sense.
> 
> But, you should at least make sure
> $(PTXCONF_SYSROOT_TARGET)/usr/lib/firmware exists before trying to
> copy anything into it.

That's why -D is there. From man install(1):

-D     create all leading components of DEST except the last, or all components 
of
        --target-directory, then copy SOURCE to DEST

Cheers
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | https://www.pengutronix.de/ |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to