dropbear: simplify rebuild on config changes
It's hard or even impossible to track affected sources so it's safe to remove all built objects (if any). Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
This commit is contained in:
parent
d8ff2d8cba
commit
3dc05213e0
1 changed files with 2 additions and 9 deletions
|
@ -233,11 +233,6 @@ define Build/Configure/dropbear_headers
|
||||||
))
|
))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Configure/dropbear_objects
|
|
||||||
grep -ERZl -e '($(subst $(space),|,$(strip $(sort $(patsubst !!%,%,$(foreach s,$(DB_OPT_COMMON) $(DB_OPT_CONFIG),$(word 1,$(subst $(comma),$(space),$(s)))))))))' \
|
|
||||||
$(PKG_BUILD_DIR)/ | sed -zE 's/^(.+)\.[^.]+$$$$/\1.o/' | sort -uV | xargs -0 -r rm -fv || :
|
|
||||||
endef
|
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
rm -f $(PKG_BUILD_DIR)/localoptions.h
|
rm -f $(PKG_BUILD_DIR)/localoptions.h
|
||||||
$(Build/Configure/Default)
|
$(Build/Configure/Default)
|
||||||
|
@ -245,10 +240,8 @@ define Build/Configure
|
||||||
: > $(PKG_BUILD_DIR)/localoptions.h
|
: > $(PKG_BUILD_DIR)/localoptions.h
|
||||||
$(Build/Configure/dropbear_headers)
|
$(Build/Configure/dropbear_headers)
|
||||||
|
|
||||||
# Enforce rebuild of files depending on configured options
|
# Enforce rebuild
|
||||||
$(Build/Configure/dropbear_objects)
|
rm -rf $(PKG_BUILD_DIR)/obj
|
||||||
|
|
||||||
# Rebuild them on config change
|
|
||||||
+$(MAKE) -C $(PKG_BUILD_DIR)/libtomcrypt clean
|
+$(MAKE) -C $(PKG_BUILD_DIR)/libtomcrypt clean
|
||||||
+$(MAKE) -C $(PKG_BUILD_DIR)/libtommath clean
|
+$(MAKE) -C $(PKG_BUILD_DIR)/libtommath clean
|
||||||
endef
|
endef
|
||||||
|
|
Loading…
Reference in a new issue