Add lc15-sysdev-remap to sysmobts2100 rootfs
This commit is contained in:
parent
7b529371dd
commit
e1bcfeb0f5
|
@ -11,7 +11,7 @@ CALIB_sysmobts-v2 = "sysmobts-calib sysmobts-util"
|
|||
|
||||
UTIL = ""
|
||||
UTIL_sysmobts-v2 = "sbts2050-util gpsd gps-utils"
|
||||
UTIL_sysmobts2100 = "gpsd gps-utils"
|
||||
UTIL_sysmobts2100 = "gpsd gps-utils lc15-sysdev-remap"
|
||||
|
||||
# TODO: re-add femtobts-calib after it went through the API migration
|
||||
RDEPENDS_${PN} = "\
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Symlink some /sys/devices/.. into /var/lc15/.. to match lc15bts-mgr hardcoded paths
|
||||
After=local-fs.target
|
||||
Before=osmo-bts-lc15.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RuntimeDirectory=lc15
|
||||
ExecStartPre=/bin/ln -f -s /run/lc15 /var/lc15
|
||||
ExecStart=/usr/bin/lc15-sysdev-remap
|
||||
RemainAfterExit=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -3,7 +3,7 @@ LICENSE = "BSD"
|
|||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
|
||||
|
||||
SRC_URI = "file://lc15-sysdev-remap \
|
||||
file://lc15-sysdev-remap.init"
|
||||
file://lc15-sysdev-remap.service"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
|
@ -19,10 +19,14 @@ PR := "${PR}.${REPOGITFN}"
|
|||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -d ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
install -m 0755 ${S}/lc15-sysdev-remap ${D}${bindir}/lc15-sysdev-remap
|
||||
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/
|
||||
ln -sf ../lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/multi-user.target.wants/
|
||||
}
|
||||
|
||||
FILES_${PN} += "${bindir} \
|
||||
${systemd_unitdir} \
|
||||
${sysconfdir}"
|
||||
|
||||
INSANE_SKIP_${PN} = "arch"
|
||||
|
|
Loading…
Reference in New Issue