All of lore.kernel.org
 help / color / mirror / Atom feed
* if else blocks in recipes(bitbake)
@ 2016-08-12  8:46 S.Jaritz
  2016-08-12  9:51 ` Burton, Ross
  0 siblings, 1 reply; 2+ messages in thread
From: S.Jaritz @ 2016-08-12  8:46 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 2179 bytes --]

Hej

If have a simple problem. On one system a program is started as a daemon 
and on the other one not. In my recipe the program is build. by using 
update-rc.d I create the init script for systemV. The code looks like:
##########
SUMMARY = "myApp"
SECTION = "myApp"
LICENSE = "CLOSED"

DEPENDS = "dbus glibmm libsigc++-2.0 libconfig"
RDEPENDS_${PN} = "bash initscripts"

inherit cmake update-rc.d

SRCREV = "${AUTOREV}"
SRC_URI = "gitsm://myServer/myApp;protocol=http;branch=develop"

PVBASE := "${PV}"
PV = "${PVBASE}.${SRCPV}"

S = "${WORKDIR}/git/"

INITSCRIPT_PARAMS = "start 95 2 3 4 5 . stop 01 0 1 6 ."
INITSCRIPT_NAME = "myAppD.sh"

CONFFILES_${PN} += "${sysconfdir}/init.d/myAppD.sh"
##########
Would like to that(pseudo-code):
##########
BUILDVAR = "yes"

if BUILDVAR == "yes" then
        INITSCRIPT_PARAMS = "start 95 2 3 4 5 . stop 01 0 1 6 ."
        INITSCRIPT_NAME = "myAppD.sh"
 
        CONFFILES_${PN} += "${sysconfdir}/init.d/myAppD.sh"
endif
##########

How to tell this bitbake? 

Regards!

Stefan Jaritz

------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jaritz@esa-grimma.de
Internet: www.esa-grimma.de


Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker

Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755


Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte 
Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich 
erhalten 
haben, informieren Sie bitte sofort den Absender und löschen Sie diese 
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser 
Mail 
ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you 
are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is 
strictly 
forbidden.

[-- Attachment #2: Type: text/html, Size: 3992 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-12  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-12  8:46 if else blocks in recipes(bitbake) S.Jaritz
2016-08-12  9:51 ` Burton, Ross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.