[yocto] LINUX_VERSION issue in recipe
Damien LEFEVRE
lefevre.da at gmail.com
Fri Apr 27 03:44:57 PDT 2018
Hi,
This must be a stupid basic question. I have the following recipe append:
keymaps_1.0.bbappend
-----------------------------------------------------------------------------
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
SRC_URI_append = " file://keymaps.service \
file://keymap.sh \
"
do_install_append() {
install -d ${D}${sysconfdir}
ln -sf /usr/share/keymaps/i386/qwerty/fi.map.gz
${D}${sysconfdir}/keymap-${LINUX_VERSION}.map.gz
install -d ${D}${systemd_system_unitdir}
install -m 0644 ${WORKDIR}/keymaps.service ${D}${systemd_system_unitdir}
}
FILES_${PN} += " ${sysconfdir}/* \
${systemd_system_unitdir}/* \
"
inherit systemd
SYSTEMD_SERVICE_${PN} = "${PN}.service"
-----------------------------------------------------------------------------
The LINUX_VERSION is not expanded and the final symlink name becomes /etc/
keymap-.map.gz.
What's correct way to get the linux version in the recipe files?
Thanks,
-Damien
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20180427/6a556d2c/attachment.html>
More information about the yocto
mailing list