[Packaging] Backport the incremental Tizen build changes from master.

There's a very long explanation of the changes in the original pull-request, #1127.