aboutsummaryrefslogtreecommitdiffstats
path: root/meta-mentor-staging/fsl-bsp-release/recipes-bsp/imx-vpu/imx-vpu_%.bbappend
blob: cc58d38291d1ad2beb6e93e655fb86bc2f0225cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# ---------------------------------------------------------------------------------------------------------------------
# SPDX-License-Identifier: MIT
# ---------------------------------------------------------------------------------------------------------------------

do_install:append:feature-mentor-staging () {
    if [ "${libdir}" != "/usr/lib" ]; then
        install -d "$(dirname "${D}${libdir}")"
        mv "${D}/usr/lib" "${D}${libdir}"
    fi
    if [ "${includedir}" != "/usr/include" ]; then
        install -d "$(dirname "${D}${includedir}")"
        mv "${D}/usr/include" "${D}${includedir}"
    fi
    rmdir --ignore-fail-on-non-empty "${D}/usr"
}