A couple of patches make use of XXX_POST_UNINSTALL_TARGET_HOOKS, which
is not a hook set that Buildroot actually supports.
Signed-off-by: Simon Dawson <spdawson@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CCID_POST_INSTALL_TARGET_HOOKS += CCID_INSTALL_UDEV_RULES
endif
-define CCID_REMOVE_UDEV_RULES
- if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
- rm -f $(TARGET_DIR)/etc/udev/rules.d/92_pcscd_ccid.rules ; \
- fi;
-endef
-CCID_POST_UNINSTALL_TARGET_HOOKS += CCID_REMOVE_UDEV_RULES
-
$(eval $(autotools-package))
XENOMAI_POST_INSTALL_TARGET_HOOKS += XENOMAI_INSTALL_UDEV_RULES
endif # udev
-define XENOMAI_REMOVE_UDEV_RULES
- if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
- for f in $(@D)/ksrc/nucleus/udev/*.rules ; do \
- rm -f $(TARGET_DIR)/etc/udev/rules.d/$$f ; \
- done ; \
- fi;
-endef
-
-XENOMAI_POST_UNINSTALL_TARGET_HOOKS += XENOMAI_REMOVE_UDEV_RULES
-
$(eval $(autotools-package))