diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-11 18:40:02 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2019-06-11 18:41:56 +0200 |
commit | 3fa96f28bb30643cac3b8a49d3abd7c976acb704 (patch) | |
tree | 544246ae49115aae052c64f11558f52090c6266b /recipes-support/libusbgx/libusbgx_git.bb | |
parent | 3443bf397e0fb71488f8f26dc8cc1e4c9baaa6ff (diff) |
libusbgx: rework g1.schema handlingApalis-iMX8_Console-Image_3.0b1.40-20190612
Add the product name at compile time so that we do not need to provide
slightly different copies of the file.
While at it set package arch to machine arch. The packages created are
machine specific due to the g1.schema file.
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-support/libusbgx/libusbgx_git.bb')
-rw-r--r-- | recipes-support/libusbgx/libusbgx_git.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/recipes-support/libusbgx/libusbgx_git.bb b/recipes-support/libusbgx/libusbgx_git.bb index 17707ee..2cd9e21 100644 --- a/recipes-support/libusbgx/libusbgx_git.bb +++ b/recipes-support/libusbgx/libusbgx_git.bb @@ -16,11 +16,16 @@ SRCBRANCH = "master" SRC_URI = " \ git://github.com/libusbgx/libusbgx.git;branch=${SRCBRANCH} \ file://usbg.service \ - file://g1.schema \ + file://g1.schema.in \ " S = "${WORKDIR}/git" +MACHINE_NAME ?= "${MACHINE}" +do_compile_append () { + sed -e "s:@@PRODUCT_NAME@@:${MACHINE_NAME}:" ${WORKDIR}/g1.schema.in > ${WORKDIR}/g1.schema +} + do_install_append () { if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then install -d ${D}${systemd_unitdir}/system/ @@ -36,6 +41,7 @@ SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE_${PN} = "usbg.service" PACKAGES =+ "${PN}-examples" +PACKAGE_ARCH = "${MACHINE_ARCH}" FILES_${PN}-examples = " \ ${bindir}/gadget-* \ |