diff options
author | Denys Dmytriyenko <denys@konsulko.com> | 2022-02-22 04:14:01 +0000 |
---|---|---|
committer | Ryan Eatmon <reatmon@ti.com> | 2022-02-22 12:01:39 -0600 |
commit | fa8035fc263960e06742945da00cb4777e4b24f7 (patch) | |
tree | 592e8178d7b5f719480172a83eaa80c34cf0fbd9 /meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw | |
parent | d39f85d1d079e14b89768b7a9d3adb059013e07b (diff) | |
download | meta-ti-fa8035fc263960e06742945da00cb4777e4b24f7.tar.gz |
meta-ti: use nonarch_base_libdir for firmware installations
Firmware images should always be installed under /lib and hence should use
nonarch_base_libdir, as regular base_libdir is configuration-specific and
doesn't always resolve to /lib.
Signed-off-by: Denys Dmytriyenko <denys@konsulko.com>
Signed-off-by: Ryan Eatmon <reatmon@ti.com>
Diffstat (limited to 'meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw')
-rwxr-xr-x | meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb index ed36951f..371086c1 100755 --- a/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb +++ b/meta-ti-bsp/recipes-bsp/cpsw9g-eth-fw/cpsw9g-eth-fw_git.bb | |||
@@ -21,18 +21,18 @@ CPSW9G_FW_DIR = "${S}/ethfw" | |||
21 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" | 21 | CPSW9G_FW_FILENAME = "app_remoteswitchcfg_server_pdk_mem_map_strip.xer5f" |
22 | 22 | ||
23 | # make sure that lib/firmware, and all its contents are part of the package | 23 | # make sure that lib/firmware, and all its contents are part of the package |
24 | FILES:${PN} += "${base_libdir}/firmware" | 24 | FILES:${PN} += "${nonarch_base_libdir}/firmware" |
25 | 25 | ||
26 | do_install() { | 26 | do_install() { |
27 | install -d ${D}${base_libdir}/firmware | 27 | install -d ${D}${nonarch_base_libdir}/firmware |
28 | # Ethernet firmware to be loaded on Main R5 core(needs read permission) | 28 | # Ethernet firmware to be loaded on Main R5 core(needs read permission) |
29 | install -m 0644 ${CPSW9G_FW_DIR}/${CPSW9G_FW_FILENAME} ${D}${base_libdir}/firmware | 29 | install -m 0644 ${CPSW9G_FW_DIR}/${CPSW9G_FW_FILENAME} ${D}${nonarch_base_libdir}/firmware |
30 | } | 30 | } |
31 | 31 | ||
32 | TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw" | 32 | TARGET_MAIN_R5FSS0_0 = "j7-main-r5f0_0-fw" |
33 | ALTERNATIVE:${PN} = "j7-main-r5f0_0-fw" | 33 | ALTERNATIVE:${PN} = "j7-main-r5f0_0-fw" |
34 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" | 34 | ALTERNATIVE_LINK_NAME[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${TARGET_MAIN_R5FSS0_0}" |
35 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${base_libdir}/firmware/${CPSW9G_FW_FILENAME}" | 35 | ALTERNATIVE_TARGET[j7-main-r5f0_0-fw] = "${nonarch_base_libdir}/firmware/${CPSW9G_FW_FILENAME}" |
36 | ALTERNATIVE_PRIORITY = "17" | 36 | ALTERNATIVE_PRIORITY = "17" |
37 | 37 | ||
38 | INHIBIT_PACKAGE_STRIP = "1" | 38 | INHIBIT_PACKAGE_STRIP = "1" |