Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 1 | DESCRIPTION = "Different utilities from Android - corressponding configuration files" |
| 2 | SECTION = "console/utils" |
| 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 5 | |
| 6 | SRC_URI = "file://android-gadget-setup" |
| 7 | |
| 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 9 | |
| 10 | do_install() { |
| 11 | install -d ${D}${bindir} |
| 12 | install -m 0755 ${WORKDIR}/android-gadget-setup ${D}${bindir} |
| 13 | } |
Andrew Geissler | 72956ed | 2021-01-08 16:11:14 -0600 | [diff] [blame] | 14 | |
| 15 | python () { |
| 16 | pn = d.getVar('PN') |
| 17 | profprov = d.getVar("PREFERRED_PROVIDER_" + pn) |
| 18 | if profprov and pn != profprov: |
| 19 | raise bb.parse.SkipRecipe("PREFERRED_PROVIDER_%s set to %s, not %s" % (pn, profprov, pn)) |
| 20 | } |