X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/51eaa39dca81819630481c2cfc955bac69ff944d..efefaf61f9d2b701556f8d77dc9acfed176575dc:/include/package-defaults.mk?ds=inline diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 57f5ed7ef..877fff833 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -33,12 +33,11 @@ define Package/Default DESCRIPTION:= endef +Build/Patch:=$(Build/Patch/Default) ifneq ($(strip $(PKG_UNPACK)),) define Build/Prepare/Default $(PKG_UNPACK) - @if [ -d ./patches -a "$$$$(ls ./patches | wc -l)" -gt 0 ]; then \ - $(PATCH) $(PKG_BUILD_DIR) ./patches; \ - fi + $(Build/Patch) endef endif @@ -78,6 +77,7 @@ CONFIGURE_CMD = ./configure define Build/Configure/Default (cd $(PKG_BUILD_DIR)/$(CONFIGURE_PATH)/$(strip $(3)); \ if [ -x $(CONFIGURE_CMD) ]; then \ + $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(PKG_BUILD_DIR)/$(3)/ && \ $(CONFIGURE_VARS) \ $(2) \ $(CONFIGURE_CMD) \