Skip to content

Commit

Permalink
HACK: mx93: weston-init: Add workaround for meta-imx bbappend
Browse files Browse the repository at this point in the history
Add workaround for NXP's meta-imx weston-init.bbappend which fails in
case weston.sh file is not present. Can be removed later when this is
fixed in upstream (PR opened).

PR URL: nxp-imx/meta-imx#20

Signed-off-by: Primoz Fiser <[email protected]>
Signed-off-by: Stefan Müller-Klieser <[email protected]>
  • Loading branch information
pfiser authored and smk-embedded committed Nov 17, 2023
1 parent 0a069ce commit 59aa658
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions recipes-graphics/wayland/weston-init.bbappend
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,15 @@ INI_UNCOMMENT_ASSIGNMENTS:remove:mx8mq-nxp-bsp = "repaint-window=16"
INI_UNCOMMENT_ASSIGNMENTS:append:mx8mq-nxp-bsp = "drm-device=card0"

SRC_URI:append:mx8-nxp-bsp = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland x11', 'file://weston.config', '', d)}"

# HACK: NXP's meta-imx (mickledore-6.1.36-2.1.0) weston-init.bbappend fails in
# case weston.sh file is not present. This happens because weston.sh is not
# installed by meta-freescale in case DISTROOVERRIDES doesn't contain "fsl" or
# "fslc" strings. Obviously, we use ampliphy DISTRO and thus DISTROOVERRIDES
# does not not contain aforementioned string, hence build fails. Resort to this
# workaround until this is fixed in upstream.
# PR URL: https://github.com/nxp-imx/meta-imx/pull/20
do_install:prepend:mx93-nxp-bsp() {
install -d ${D}${sysconfdir}/profile.d
touch ${D}${sysconfdir}/profile.d/weston.sh
}

0 comments on commit 59aa658

Please sign in to comment.