Merge "Run device-specific tasks at the end of Makefile." into lmp-dev