mirror of
https://github.com/nxp-imx/meta-imx.git
synced 2026-01-27 11:32:16 +01:00
Yocto 5.1 new changes make it can not install SRC_URI reference file from WORKDIR. - Replace WORKDIR with UNPACKDIR. - Refine do_install:append:gpu_2d. Signed-off-by: Jun Zhu <junzhu@nxp.com>
26 lines
800 B
Plaintext
26 lines
800 B
Plaintext
# Freescale imx extra configuration
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
|
|
|
RDEPENDS:${PN} += " bash "
|
|
|
|
SYSVINIT-GPU = " file://rc_mxc.S file://rc_gpu.S"
|
|
|
|
SRC_URI:append:imxgpu2d = " ${SYSVINIT-GPU}"
|
|
|
|
do_install:append:imxgpu2d() {
|
|
# Install rc_mxc.S to /etc/init.d
|
|
install -d ${D}${sysconfdir} ${D}${sysconfdir}/init.d
|
|
install -m 0755 ${UNPACKDIR}/rc_mxc.S ${D}${sysconfdir}/init.d
|
|
|
|
echo "mxc::respawn:/etc/init.d/rc_mxc.S" >> ${D}${sysconfdir}/inittab
|
|
|
|
# Install rc_gpu.S to /etc/init.d
|
|
install -m 0755 ${UNPACKDIR}/rc_gpu.S ${D}${sysconfdir}/init.d
|
|
|
|
echo "gpu::sysinit:/etc/init.d/rc_gpu.S" >> ${D}${sysconfdir}/inittab
|
|
}
|
|
|
|
FILES:${PN}:append:imxgpu2d = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
|
|
|
|
PACKAGE_ARCH:imxgpu2d = "${MACHINE_ARCH}"
|