Hi Yocto experts!
Background
----------------
I have a device that I build two different images for (test and prod). For
the prod variant I do not want the swupdate service to start the webserver.
Currently I have a swupdate.service that overwrites the default from
swupdate.
I have been experimenting with an approach where I use OVERRIDES to control
the inclusion of the systemd service.
Is this a "good" (tm) way of doing this? Or is there a better way?
my-test-image.bb
-----------------------
DISTRO_VARIANT = "test"
my-prod-image.bb
-----------------------
DISTRO_VARIANT = "prod"
swupdate_%.bbappend
-------------------------------
OVERRIDES:append = ":${DISTRO_VARIANT}"
do_install:test:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/hello-test.service ${D}/${systemd_unitdir}/system
}
do_install:prod:append() {
install -d ${D}/${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/hello-prod.service ${D}/${systemd_unitdir}/system
}
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#59545): https://lists.yoctoproject.org/g/yocto/message/59545
Mute This Topic: https://lists.yoctoproject.org/mt/97929833/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-