mirror of
https://github.com/ACwifidude/openwrt.git
synced 2024-02-16 17:59:01 +08:00
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> SVN-Revision: 43904
This commit is contained in:
@ -135,7 +135,7 @@ kernel_menuconfig: prepare_kernel_conf
|
||||
kernel_nconfig: prepare_kernel_conf
|
||||
$(_SINGLE)$(NO_TRACE_MAKE) -C target/linux nconfig
|
||||
|
||||
tmp/.prereq-build: include/prereq-build.mk
|
||||
tmp/.prereq-build: $(if $(SDK),.git/config) include/prereq-build.mk
|
||||
mkdir -p tmp
|
||||
rm -f tmp/.host.mk
|
||||
@$(_SINGLE)$(NO_TRACE_MAKE) -j1 -r -s -f $(TOPDIR)/include/prereq-build.mk prereq 2>/dev/null || { \
|
||||
|
Reference in New Issue
Block a user