Revert "Revert "build: apply_profile: support for 'D-Link DIR-300 RevA1' and cleanup/helper for more generic HW-detection""

This reverts commit e858809f7a28ced9767b2b96ba3f5dfb07853499.