[yocto] Merging of two recipes
Bipnesh, Abhinav (Abhinav)
abhinavbipnesh at avaya.com
Thu Jun 11 03:31:17 PDT 2015
Hi All,
One more thing the convert task has different flow for both the recipes and the names of the package is different as below is snapshot of the actual code.
Also PACKAGE_CLASSES has both rpm and tar. We have explicitly turned off one of the task in the recipe based on the requirement.
Thanks,
Abhinav
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Bipnesh, Abhinav (Abhinav)
Sent: Thursday, June 11, 2015 15:25
To: yocto at yoctoproject.org
Subject: [yocto] Merging of two recipes
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/335d2e7c/attachment.html>
More information about the yocto
mailing list