summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
diff options
context:
space:
mode:
authorMing Liu <liu.ming50@gmail.com>2023-05-16 15:30:52 +0200
committerKhem Raj <raj.khem@gmail.com>2023-05-16 22:31:14 -0700
commit00cae16967d61e16ea17a4a3de2e42d1fcadf1e3 (patch)
treeeb83361e923743a1767d60744e44d3a3bdc87400 /meta-oe/recipes-support/libusbgx/libusbgx_git.bb
parent4a28c6452fc1b01ed25ed84ae7a733aa6f90276e (diff)
downloadmeta-openembedded-00cae16967d61e16ea17a4a3de2e42d1fcadf1e3.tar.gz
libusbgx: drop hard-coded /usr/bin,/etc
Drop hard-coded /usr/bin,/etc from gadget-start. Signed-off-by: Ming Liu <liu.ming50@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support/libusbgx/libusbgx_git.bb')
-rw-r--r--meta-oe/recipes-support/libusbgx/libusbgx_git.bb4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta-oe/recipes-support/libusbgx/libusbgx_git.bb b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
index 66a5a4071..7998b0c15 100644
--- a/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
+++ b/meta-oe/recipes-support/libusbgx/libusbgx_git.bb
@@ -37,7 +37,9 @@ INITSCRIPT_PARAMS = "defaults"
37INHIBIT_UPDATERCD_BBCLASS = "${@bb.utils.contains('PACKAGECONFIG', 'examples', '1', '0', d)}" 37INHIBIT_UPDATERCD_BBCLASS = "${@bb.utils.contains('PACKAGECONFIG', 'examples', '1', '0', d)}"
38 38
39do_install:append() { 39do_install:append() {
40 install -Dm 0755 ${WORKDIR}/gadget-start ${D}/${bindir}/gadget-start 40 install -Dm 0755 ${WORKDIR}/gadget-start ${D}${bindir}/gadget-start
41 sed -i -e 's,/usr/bin,${bindir},g' -e 's,/etc,${sysconfdir},g' ${D}${bindir}/gadget-start
42
41 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then 43 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
42 install -Dm 0644 ${WORKDIR}/usbgx.service ${D}${systemd_system_unitdir}/usbgx.service 44 install -Dm 0644 ${WORKDIR}/usbgx.service ${D}${systemd_system_unitdir}/usbgx.service
43 fi 45 fi