2017-06-22 18:31:27 +00:00
|
|
|
DESCRITOPN = "Remap all available system devices of Litecell15 platform as symbolic links to easy to reach place in /var/lc15/"
|
|
|
|
LICENSE = "BSD"
|
|
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/BSD;md5=3775480a712fc46a69647678acb234cb"
|
|
|
|
|
|
|
|
SRC_URI = "file://lc15-sysdev-remap \
|
2017-07-14 12:09:57 +00:00
|
|
|
file://mnt-rom-factory.automount \
|
|
|
|
file://mnt-rom-factory.mount \
|
2017-07-17 14:20:26 +00:00
|
|
|
file://mnt-rom-user.automount \
|
|
|
|
file://mnt-rom-user.mount \
|
2017-07-14 12:09:57 +00:00
|
|
|
file://mnt-storage.automount \
|
|
|
|
file://mnt-storage.mount \
|
2017-07-14 09:35:28 +00:00
|
|
|
file://lc15-sysdev-remap.service"
|
2017-06-22 18:31:27 +00:00
|
|
|
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
|
2017-07-17 11:38:39 +00:00
|
|
|
inherit gitver-repo systemd
|
2017-06-22 18:31:27 +00:00
|
|
|
|
|
|
|
REPODIR = "${THISDIR}"
|
|
|
|
REPOFILE = "lc15-sysdev-remap_1.0.bb"
|
|
|
|
PR := "r${REPOGITFN}"
|
|
|
|
|
|
|
|
REPODIR = "${THISDIR}/files"
|
|
|
|
REPOFILE = ""
|
|
|
|
PR := "${PR}.${REPOGITFN}"
|
|
|
|
|
2017-07-17 11:38:39 +00:00
|
|
|
SYSTEMD_PACKAGES = "${PN}"
|
|
|
|
SYSTEMD_AUTO_ENABLE_${PN}="enable"
|
2017-07-17 14:20:26 +00:00
|
|
|
SYSTEMD_SERVICE_${PN} = "lc15-sysdev-remap.service mnt-rom-factory.automount mnt-rom-factory.mount mnt-rom-user.automount mnt-rom-user.mount mnt-storage.automount mnt-storage.mount"
|
2017-07-17 11:38:39 +00:00
|
|
|
|
2017-06-22 18:31:27 +00:00
|
|
|
do_install() {
|
|
|
|
install -d ${D}${bindir}
|
2017-07-17 11:38:39 +00:00
|
|
|
install -d ${D}/${systemd_unitdir}/system
|
2017-06-22 18:31:27 +00:00
|
|
|
install -m 0755 ${S}/lc15-sysdev-remap ${D}${bindir}/lc15-sysdev-remap
|
2017-07-14 09:35:28 +00:00
|
|
|
install -m 0644 ${S}/lc15-sysdev-remap.service ${D}${systemd_unitdir}/system/
|
2017-07-14 12:09:57 +00:00
|
|
|
install -m 0644 ${S}/mnt-rom-factory.automount ${D}${systemd_unitdir}/system/
|
|
|
|
install -m 0644 ${S}/mnt-rom-factory.mount ${D}${systemd_unitdir}/system/
|
2017-07-17 14:20:26 +00:00
|
|
|
install -m 0644 ${S}/mnt-rom-user.automount ${D}${systemd_unitdir}/system/
|
|
|
|
install -m 0644 ${S}/mnt-rom-user.mount ${D}${systemd_unitdir}/system/
|
2017-07-14 12:09:57 +00:00
|
|
|
install -m 0644 ${S}/mnt-storage.automount ${D}${systemd_unitdir}/system/
|
|
|
|
install -m 0644 ${S}/mnt-storage.mount ${D}${systemd_unitdir}/system/
|
2017-06-22 18:31:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} += "${bindir} \
|
|
|
|
${sysconfdir}"
|
|
|
|
|
|
|
|
INSANE_SKIP_${PN} = "arch"
|