sdk: track files with git and use it to implement proper clean targets
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Jan 2015 11:17:02 +0000 (11:17 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 10 Jan 2015 11:17:02 +0000 (11:17 +0000)
commit3e2d4d98c294bbb43b82fb997179f4731d2407e0
tree410f6b2e0f69f909b2fa99e2446ae70c2a956411
parent9131488a184318e492027d156beeba3a23ff93e2
sdk: track files with git and use it to implement proper clean targets

Initialize a Git repository in the SDK and use git reset / git clean
to rollback any SDK changes with "make clean" or "make dirclean".

This approach is more robust than nuking entire directory trees because
some parts of them might have been shipped with the original archive.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43904 3c298f89-4303-0410-b956-a3cf2f4a3e73
include/toplevel.mk
target/sdk/files/Makefile