From 140ef637ba039f40ca2c7c4e4c92ca22af5febea Mon Sep 17 00:00:00 2001 From: nbd Date: Sun, 3 Jun 2007 06:16:08 +0000 Subject: Add quilt integration for packages make package/-prepare QUILT=1 will apply all patches using quilt Autorebuild will be disabled, so that you can edit all patches in the build dir. When you're done editing patches and everything works, you can call: make package/-refresh That will copy the updated patches from quilt into package//patches, and remove all old patches. Before the patches are overwritten, the correct order of the patches is verified ('cat series' is compared against 'sort series'). git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7471 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- include/package-defaults.mk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include/package-defaults.mk') diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 57f5ed7ef..16d9ae002 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 -- cgit v1.2.3