sdk: track files with git and use it to implement proper clean targets
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 10 Jan 2015 11:17:02 +0000 (11:17 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 10 Jan 2015 11:17:02 +0000 (11:17 +0000)
commitf1dfc77d7b7bfa2883e5542953cf97babc9de684
tree410f6b2e0f69f909b2fa99e2446ae70c2a956411
parent515dd33cf9a41b4b73a3f01a40ac357bf5fc2711
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