X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/51eaa39dca81819630481c2cfc955bac69ff944d..ec28552f3194c2ac90353e0544495d257b4e3ae8:/include/package-defaults.mk?ds=inline diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 57f5ed7ef..c0e13f412 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -31,14 +31,14 @@ define Package/Default SUBMENUDEP:= TITLE:= DESCRIPTION:= + KCONFIG:= 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 +78,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) \