Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 1 | INHIBIT_DEFAULT_DEPS = "1" |
| 2 | |
| 3 | FILES:${PN} = "${libexecdir} ${bindir}" |
| 4 | |
| 5 | BINNAME = "${@d.getVar("BPN").strip("gcc-")}" |
| 6 | |
| 7 | do_install() { |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 8 | install -d ${D}${bindir} ${D}${libexecdir}/${BP}/ |
| 9 | cp -r ${S}/. ${D}${libexecdir}/${BP} |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 10 | |
| 11 | # Symlink all executables into bindir |
Patrick Williams | 2a25492 | 2023-08-11 09:48:11 -0500 | [diff] [blame] | 12 | for f in ${D}${libexecdir}/${BP}/bin/*; do |
Brad Bishop | bec4ebc | 2022-08-03 09:55:16 -0400 | [diff] [blame] | 13 | ln -rs $f ${D}${bindir}/$(basename $f) |
| 14 | done |
| 15 | } |
| 16 | |
| 17 | INSANE_SKIP:${PN} = "already-stripped libdir staticdev file-rdeps arch dev-so" |
| 18 | |
| 19 | INHIBIT_SYSROOT_STRIP = "1" |
| 20 | INHIBIT_PACKAGE_STRIP = "1" |
| 21 | INHIBIT_PACKAGE_DEBUG_SPLIT = "1" |
| 22 | |
| 23 | # Need to mark these as private until do_package's soname-finder only looks in $libdir |
| 24 | PRIVATE_LIBS = "libgcc_s.so.1 libstdc++.so.6" |
| 25 | |
| 26 | BBCLASSEXTEND = "native nativesdk" |
Patrick Williams | b542dec | 2023-06-09 01:26:37 -0500 | [diff] [blame] | 27 | |
| 28 | # Skipping file deps - we don't control the dependencies for prebuilt libraries, resulting in |
| 29 | # nothing provides libcrypt.so.1()(64bit) needed by nativesdk-gcc-arm-none-eabi |
| 30 | # when packaged as RPM for SDK. |
| 31 | SKIP_FILEDEPS="1" |