diff options
| -rw-r--r-- | recipes-bsp/firmware-imx/firmware-imx.inc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/recipes-bsp/firmware-imx/firmware-imx.inc b/recipes-bsp/firmware-imx/firmware-imx.inc index 558f7fb32..3aa99a620 100644 --- a/recipes-bsp/firmware-imx/firmware-imx.inc +++ b/recipes-bsp/firmware-imx/firmware-imx.inc | |||
| @@ -11,28 +11,28 @@ SRC_URI = "${FSL_MIRROR}/firmware-imx-${PV}.bin;fsl-eula=true" | |||
| 11 | inherit fsl-eula-unpack | 11 | inherit fsl-eula-unpack |
| 12 | 12 | ||
| 13 | do_install() { | 13 | do_install() { |
| 14 | install -d ${D}/lib/firmware/imx | 14 | install -d ${D}${base_libdir}/firmware/imx |
| 15 | cp -rfv firmware/* ${D}/lib/firmware/ | 15 | cp -rfv firmware/* ${D}${base_libdir}/firmware/ |
| 16 | 16 | ||
| 17 | mv ${D}/lib/firmware/epdc/ ${D}/lib/firmware/imx/epdc/ | 17 | mv ${D}${base_libdir}/firmware/epdc/ ${D}${base_libdir}/firmware/imx/epdc/ |
| 18 | mv ${D}/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted ${D}/lib/firmware/imx/epdc/epdc_ED060XH2C1.fw | 18 | mv ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw |
| 19 | 19 | ||
| 20 | find ${D}/lib/firmware -type f -exec chmod 644 '{}' ';' | 20 | find ${D}${base_libdir}/firmware -type f -exec chmod 644 '{}' ';' |
| 21 | find ${D}/lib/firmware -type f -exec chown root:root '{}' ';' | 21 | find ${D}${base_libdir}/firmware -type f -exec chown root:root '{}' ';' |
| 22 | 22 | ||
| 23 | # Remove files not going to be installed | 23 | # Remove files not going to be installed |
| 24 | find ${D}/lib/firmware/ -name '*.mk' -exec rm '{}' ';' | 24 | find ${D}${base_libdir}/firmware/ -name '*.mk' -exec rm '{}' ';' |
| 25 | } | 25 | } |
| 26 | 26 | ||
| 27 | python populate_packages_prepend() { | 27 | python populate_packages_prepend() { |
| 28 | vpudir = bb.data.expand('/lib/firmware/vpu', d) | 28 | vpudir = bb.data.expand('${base_libdir}/firmware/vpu', d) |
| 29 | do_split_packages(d, vpudir, '^vpu_fw_([^_]*).*\.bin', | 29 | do_split_packages(d, vpudir, '^vpu_fw_([^_]*).*\.bin', |
| 30 | output_pattern='firmware-imx-vpu-%s', | 30 | output_pattern='firmware-imx-vpu-%s', |
| 31 | description='Freescale IMX Firmware %s', | 31 | description='Freescale IMX Firmware %s', |
| 32 | extra_depends='', | 32 | extra_depends='', |
| 33 | prepend=True) | 33 | prepend=True) |
| 34 | 34 | ||
| 35 | sdmadir = bb.data.expand('/lib/firmware/sdma', d) | 35 | sdmadir = bb.data.expand('${base_libdir}/firmware/sdma', d) |
| 36 | do_split_packages(d, sdmadir, '^sdma-([^-]*).*\.bin', | 36 | do_split_packages(d, sdmadir, '^sdma-([^-]*).*\.bin', |
| 37 | output_pattern='firmware-imx-sdma-%s', | 37 | output_pattern='firmware-imx-sdma-%s', |
| 38 | description='Freescale IMX Firmware %s', | 38 | description='Freescale IMX Firmware %s', |
| @@ -46,6 +46,6 @@ PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-*" | |||
| 46 | 46 | ||
| 47 | PACKAGES =+ "${PN}-epdc" | 47 | PACKAGES =+ "${PN}-epdc" |
| 48 | 48 | ||
| 49 | FILES_${PN}-epdc = "/lib/firmware/imx/epdc/" | 49 | FILES_${PN}-epdc = "${base_libdir}/firmware/imx/epdc/" |
| 50 | 50 | ||
| 51 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" | 51 | PACKAGE_ARCH = "${MACHINE_SOCARCH}" |
