summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-core/safec/safec_%.bbappend
blob: 4ce29534de7c242795b0a607828ea16482187144 (plain)
1
2
3
4
5
6
7
8
9
10
11
RDEPENDS_${PN} = ""
do_install_append() {
    F=$(find ${D} -name check_for_unsafe_apis)
    if [ -n "${F}" ]; then
        # remove the unused perl script
        rm -f "${F}"
        # remove the script's destination directory, only if it is empty
        rmdir "$(dirname ${F})" 2>/dev/null || :
    fi
}