Skip to contentSkip to conversation

CONFFILES question

DISCUSSION Jaap de Jong 1 participant 2 messages Sep 28, 2011

lore
Share & tools
lore
#0 lore raw

Hi,

I would really like to use some wildcards in a CONFFILES_${PN}.

CONFFILES_${PN} = "/var/lib/myproject/*"
Compiling this works, but installing ends with a error message.

How should I accomplish this? Or is specifying all the files the only way to go?

Jaap

#1 lore raw

This seems to work.

def get_databasefiles():

    import os
    s=''
    for file in os.listdir('/var/lib/myproject'):
        s = s+' '+'/var/lib/myproject/'+file
    return s

CONFFILES_${PN} = "${@get_databasefiles()}"

Quoted 17 lines · Jaap de Jong

Hi,

I would really like to use some wildcards in a CONFFILES_${PN}.

CONFFILES_${PN} = "/var/lib/myproject/*"
Compiling this works, but installing ends with a error message.

How should I accomplish this? Or is specifying all the files the only way to go?

Jaap

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel