[yocto] Merging of two recipes

Bipnesh, Abhinav (Abhinav) abhinavbipnesh at avaya.com
Thu Jun 11 02:54:36 PDT 2015


Hi,

Currently I have two different recipes for similar type of package with a minor differences. Below is the list

1.       One being packaged as tar.gz and don't have pre or post install activity

2.       Other one being packaged as RPM and have a post install section in it.
Below is the extract of the recipes

Test.bb

PACKAGES = "test-ch test-da test-de test-el \
            test-en test-enu test-es test-eso \
            test-fi test-fr test-frc test-hu \
            test-it test-jp test-ko test-nl \
            test-no test-pl test-pt test-ptb \
            test-ru test-sv test-trk test-zhh \
"
addtask convert after do_fetch before do_install

do_install_append() {
    for lang in ${LANGS}; do
        install -d ${D}/system/test/${lang}
        install -m 0644 ${WORKDIR}/adpcm/${lang}/* ${D}/system/test/${lang}
        install -m 0755 ${S}/../vmpro/Build_Scripts/vmpro500L-build/audio_converter.sh ${D}/system/test/${lang}
    done
}

#ch
FILES_test-ch   = "${S}/alaw/ch"
FILES_test-ch   += "/system/test/ch"

pkg_postinst_test-ch(){
    echo "Post installation of test-ch"
    cd /system/test/ch/
    ./test.sh
}

# da
FILES_test-da   = "${S}/alaw/da"
FILES_test-da   += "/system/test/da"

pkg_postinst_test-da(){
    echo "Post installation of test-da"
    cd /system/test/da/
    ./test.sh
}

. . .

Test1.bb

PACKAGES = "test-ch test-da test-de test-el \
            test-en test-enu test-es test-eso \
            test-fi test-fr test-frc test-hu \
            test-it test-jp test-ko test-nl \
            test-no test-pl test-pt test-ptb \
            test-ru test-sv test-trk test-zhh \
            "

addtask do_convert after do_fetch before do_install

do_install_append() {
    for lang in ${LANGS}; do
        install -d ${D}/system/test/${lang}
        install -m 0644 ${WORKDIR}/law/${lang}/* ${D}/system/test/${lang}
    done
}

#ch
FILES_test-ch   += "/system/test/ch"

# da
FILES_test-da   += "/system/test/da"

# de
FILES_test-de   += "/system/test/de"


So I want to merge these both recipes to produce the same artificats as above but using a single recipe. So any thoughts how to do it.

Thanks,
Abhinav
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150611/22bb68c1/attachment.html>


More information about the yocto mailing list