Skip to content

Commit

Permalink
Merge pull request #94 from OSSystemsEmbeddedLinux/topic/update
Browse files Browse the repository at this point in the history
Change the S variable assignment
  • Loading branch information
otavio authored Jun 10, 2024
2 parents 5a38081 + 306fb05 commit 8086e5c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
6 changes: 3 additions & 3 deletions recipes-browser/cog/cog-init.bb
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ do_compile[noexec] = "1"

do_install() {
if ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','true','false',d)}; then
install -Dm 0755 ${WORKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/cog
install -Dm 0755 ${UNPACKDIR}/${PN}.initd ${D}${sysconfdir}/init.d/cog
fi
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
install -Dm 0644 ${WORKDIR}/${PN}.service ${D}${systemd_system_unitdir}/cog.service
install -Dm 0644 ${UNPACKDIR}/${PN}.service ${D}${systemd_system_unitdir}/cog.service
fi

install -Dm 0644 ${WORKDIR}/${PN}.default ${D}${sysconfdir}/default/cog
install -Dm 0644 ${UNPACKDIR}/${PN}.default ${D}${sysconfdir}/default/cog

echo ${COG_ENV} >> ${D}${sysconfdir}/default/cog

Expand Down
2 changes: 1 addition & 1 deletion recipes-core/base-files/base-files_%.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EOF
addtask do_generate_locale_conf after do_compile before do_install

do_install:append() {
install -Dm 0644 ${WORKDIR}/profile.d_locale.sh ${D}${sysconfdir}/profile.d/locale.sh
install -Dm 0644 ${S}/profile.d_locale.sh ${D}${sysconfdir}/profile.d/locale.sh

if [ "${@d.getVar('DEFAULT_SYSTEM_LOCALE', True)}" != "" ]; then
install -Dm 0644 ${WORKDIR}/locale.conf ${D}${sysconfdir}/locale.conf
Expand Down
6 changes: 2 additions & 4 deletions recipes-core/initrdscripts/initramfs-framework-psplash_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ SRC_URI = " \
file://psplash-finish \
"

S = "${WORKDIR}"

do_install() {
# psplash
install -Dm 0755 ${WORKDIR}/psplash ${D}/init.d/11-psplash
install -Dm 0755 ${WORKDIR}/psplash-finish ${D}/init.d/98-psplash_finish
install -Dm 0755 ${S}/psplash ${D}/init.d/11-psplash
install -Dm 0755 ${S}/psplash-finish ${D}/init.d/98-psplash_finish
}

PACKAGES = "initramfs-module-psplash"
Expand Down
6 changes: 2 additions & 4 deletions recipes-core/tiny-init-system/tiny-init-system.bb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@ SRC_URI = "\
file://rc.local.sample \
"

S = "${WORKDIR}"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
install -m 0755 ${WORKDIR}/init ${D}
install -Dm 0755 ${WORKDIR}/rc.local.sample ${D}${sysconfdir}/rc.local.sample
install -m 0755 ${S}/init ${D}
install -Dm 0755 ${S}/rc.local.sample ${D}${sysconfdir}/rc.local.sample
}

FILES:${PN} = "/init ${sysconfdir}/rc.local.sample"
Expand Down

0 comments on commit 8086e5c

Please sign in to comment.