diff options
| author | Khem Raj <raj.khem@gmail.com> | 2024-05-13 14:16:55 -0700 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2024-05-23 08:44:44 -0700 |
| commit | ffc64e9c6fee0af7eea3466135416d011172a5e6 (patch) | |
| tree | b9effa069d9af3c63d6f3a41caff6b887450522c /meta-oe/recipes-extended/zram | |
| parent | a90f89dbc7eff2ae83bab6a6676f4737c0b48a8d (diff) | |
| download | meta-openembedded-ffc64e9c6fee0af7eea3466135416d011172a5e6.tar.gz | |
recipes: Start WORKDIR -> UNPACKDIR transition
Replace references of WORKDIR with UNPACKDIR where it makes sense to do
so in preparation for changing the default value of UNPACKDIR.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-extended/zram')
| -rw-r--r-- | meta-oe/recipes-extended/zram/zram_0.2.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-oe/recipes-extended/zram/zram_0.2.bb b/meta-oe/recipes-extended/zram/zram_0.2.bb index b4b3a27b2b..800dd6b7c4 100644 --- a/meta-oe/recipes-extended/zram/zram_0.2.bb +++ b/meta-oe/recipes-extended/zram/zram_0.2.bb | |||
| @@ -21,17 +21,17 @@ do_install () { | |||
| 21 | # Install systemd related configuration file | 21 | # Install systemd related configuration file |
| 22 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then | 22 | if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then |
| 23 | install -d ${D}${sysconfdir}/init.d | 23 | install -d ${D}${sysconfdir}/init.d |
| 24 | install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/zram | 24 | install -m 0755 ${UNPACKDIR}/init ${D}${sysconfdir}/init.d/zram |
| 25 | fi | 25 | fi |
| 26 | 26 | ||
| 27 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then | 27 | if ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}; then |
| 28 | install -d ${D}${libexecdir} | 28 | install -d ${D}${libexecdir} |
| 29 | install -m 0755 ${WORKDIR}/zram-swap-init ${D}${libexecdir} | 29 | install -m 0755 ${UNPACKDIR}/zram-swap-init ${D}${libexecdir} |
| 30 | install -m 0755 ${WORKDIR}/zram-swap-deinit ${D}${libexecdir} | 30 | install -m 0755 ${UNPACKDIR}/zram-swap-deinit ${D}${libexecdir} |
| 31 | install -d ${D}${systemd_unitdir}/system | 31 | install -d ${D}${systemd_unitdir}/system |
| 32 | install -m 0644 ${WORKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service | 32 | install -m 0644 ${UNPACKDIR}/zram-swap.service ${D}${systemd_unitdir}/system/zram-swap.service |
| 33 | sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service | 33 | sed -i -e "s,@LIBEXECDIR@,${libexecdir},g" ${D}${systemd_unitdir}/system/zram-swap.service |
| 34 | install -m 0644 ${WORKDIR}/dev-zram0.swap ${D}${systemd_unitdir}/system/dev-zram0.swap | 34 | install -m 0644 ${UNPACKDIR}/dev-zram0.swap ${D}${systemd_unitdir}/system/dev-zram0.swap |
| 35 | fi | 35 | fi |
| 36 | } | 36 | } |
| 37 | 37 | ||
