[LEDE-DEV] Makefile question

David Lang david at lang.hm
Sun Feb 12 22:15:16 PST 2017


On Sun, 12 Feb 2017, Philip Prindeville wrote:

>>>>>> If you look for where the /files/* are copied into the filesystem, that is probably the place you would want to add your scripting hooks.
>>>>>
>>>>> Good idea.  I’ll look there.
>>>>
>>>> Once you find this, may I suggest that you create /scripts/* and contribute the infrastructure to support it back upstream?
>>>>
>>>> I have seen a lot of people wanting to do similar things.
>>>
>>>
>>> Surprisingly, I’m still trying to find in the Makefiles where $(topdir)/files/ gets copied over…
>>>
>>> -Philip
>>
>> It's prepare_rootfs doing this job at the moment.
>>
>>                yousong
>
> Sorry to be thick headed, but what’s the path to that?

grep -r "/files/" finds

scripts/env:            cp -a "$ENVDIR/files/"* "$BASEDIR/files" 2>/dev/null >/dev/null


More information about the Lede-dev mailing list