|
@@ -807,6 +807,14 @@ endif # merged /usr
|
|
|
|
|
|
touch $(TARGET_DIR)/usr
|
|
|
|
|
|
+# Note: this will run in the filesystem context, so will use a copy
|
|
|
+# of target/, not the real one, so the files are still available on
|
|
|
+# re-builds (foo-rebuild, etc...)
|
|
|
+define ROOTFS_RM_HWDB_DATA
|
|
|
+ rm -rf $(TARGET_DIR)/usr/lib/udev/hwdb.d/ $(TARGET_DIR)/etc/udev/hwdb.d/
|
|
|
+endef
|
|
|
+ROOTFS_PRE_CMD_HOOKS += ROOTFS_RM_HWDB_DATA
|
|
|
+
|
|
|
.PHONY: target-post-image
|
|
|
target-post-image: $(TARGETS_ROOTFS) target-finalize staging-finalize
|
|
|
@rm -f $(ROOTFS_COMMON_TAR)
|