diff --git a/recipes-bsp/ntp/ntp_4.2.8p1.bb b/recipes-bsp/ntp/ntp_4.2.8p1.bb index be5f6d9..e20b08e 100644 --- a/recipes-bsp/ntp/ntp_4.2.8p1.bb +++ b/recipes-bsp/ntp/ntp_4.2.8p1.bb @@ -101,6 +101,10 @@ do_install_append() { install -d ${D}${systemd_unitdir}/ntp-units.d install -m 0644 ${WORKDIR}/ntpd.list ${D}${systemd_unitdir}/ntp-units.d/60-ntpd.list + + if [ `ls -A ${D}${libexecdir} | wc -l` -eq 0 ]; then + rm -rf ${D}${libexecdir} + fi } PACKAGES += "ntpdate sntp ${PN}-tickadj ${PN}-utils ${PN}-perl"