]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
support: move patch-kernel.sh and rename it
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 31 Aug 2011 21:35:04 +0000 (23:35 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 17 Sep 2011 06:15:32 +0000 (08:15 +0200)
The name "patch-kernel.sh" is a bit stupid, since this script is used
to patch everything in Buildroot, not only kernel trees.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
32 files changed:
boot/uboot/uboot.mk
linux/linux.mk
package/Makefile.autotools.in
package/Makefile.package.in
package/argus/argus.mk
package/cups/cups.mk
package/cvs/cvs.mk
package/fis/fis.mk
package/gettext/gettext.mk
package/input-tools/input-tools.mk
package/libeXosip2/libeXosip2.mk
package/libgtk2/libgtk2.mk
package/libosip2/libosip2.mk
package/mii-diag/mii-diag.mk
package/mutt/mutt.mk
package/netkitbase/netkitbase.mk
package/netkittelnet/netkittelnet.mk
package/setserial/setserial.mk
package/sfdisk/sfdisk.mk
package/sysklogd/sysklogd.mk
package/sysvinit/sysvinit.mk
package/thttpd/thttpd.mk
package/tinyhttpd/tinyhttpd.mk
package/ttcp/ttcp.mk
package/uemacs/uemacs.mk
package/vpnc/vpnc.mk
package/xfsprogs/xfsprogs.mk
support/scripts/apply-patches.sh [moved from toolchain/patch-kernel.sh with 100% similarity]
toolchain/gcc/gcc-uclibc-4.x.mk
toolchain/gdb/gdb.mk
toolchain/kernel-headers/kernel-headers.mk
toolchain/uClibc/uclibc.mk

index 776bdefcbcb9d80399dfd6c2fc47fc1fe9b85fde..202995a73b36648e7009832e85e2247a4bad9352 100644 (file)
@@ -52,7 +52,7 @@ endef
 
 ifneq ($(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR)),)
 define UBOOT_APPLY_CUSTOM_PATCHES
-       toolchain/patch-kernel.sh $(@D) $(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR) \
+       support/scripts/apply-patches.sh $(@D) $(BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR) \
                uboot-$(UBOOT_VERSION)-\*.patch
 endef
 
index 6662f7b06d2cc7b58f9f0070df1e356dcfb2fda4..d289b284270967eb9f344669862d44efbd4b4036 100644 (file)
@@ -100,11 +100,11 @@ LINUX_POST_DOWNLOAD_HOOKS += LINUX_DOWNLOAD_PATCHES
 define LINUX_APPLY_PATCHES
        for p in $(LINUX_PATCHES) ; do \
                if echo $$p | grep -q -E "^ftp://|^http://" ; then \
-                       toolchain/patch-kernel.sh $(@D) $(DL_DIR) `basename $$p` ; \
+                       support/scripts/apply-patches.sh $(@D) $(DL_DIR) `basename $$p` ; \
                elif test -d $$p ; then \
-                       toolchain/patch-kernel.sh $(@D) $$p linux-\*.patch ; \
+                       support/scripts/apply-patches.sh $(@D) $$p linux-\*.patch ; \
                else \
-                       toolchain/patch-kernel.sh $(@D) `dirname $$p` `basename $$p` ; \
+                       support/scripts/apply-patches.sh $(@D) `dirname $$p` `basename $$p` ; \
                fi \
        done
 endef
index 90c89244182086b890627205f7ccd8e7ddccbb4e..12c503827b830d26b707e1cbb065a681864d127c 100644 (file)
@@ -152,11 +152,11 @@ define LIBTOOL_PATCH_HOOK
                        ltmain_version=`sed -n '/^[     ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' $$$$i | \
                        sed -e 's/\([0-9].[0-9]*\).*/\1/' -e 's/\"//'`; \
                        if test $$$${ltmain_version} = '1.5'; then \
-                               toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} support/libtool buildroot-libtool-v1.5.patch; \
                        elif test $$$${ltmain_version} = "2.2"; then\
-                               toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} support/libtool buildroot-libtool-v2.2.patch; \
                        elif test $$$${ltmain_version} = "2.4"; then\
-                               toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} support/libtool buildroot-libtool-v2.4.patch; \
                        fi \
                done \
        fi
@@ -177,11 +177,11 @@ define AUTORECONF_HOOK
                for i in `find $$($$(PKG)_SRCDIR) -name ltmain.sh`; do \
                        ltmain_version=`sed -n '/^[     ]*VERSION=/{s/^[        ]*VERSION=//;p;q;}' $$$$i | sed 's/\([0-9].[0-9]*\).*/\1/'`; \
                        if test $$$${ltmain_version} = "1.5"; then \
-                               toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} package buildroot-libtool-v1.5.patch; \
                        elif test $$$${ltmain_version} = "2.2"; then\
-                               toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \
                        elif test $$$${ltmain_version} = "2.4"; then\
-                               toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.4.patch; \
+                               support/scripts/apply-patches.sh $$$${i%/*} package buildroot-libtool-v2.4.patch; \
                        fi \
                done \
        fi
index 868bf28420c5983bf1212d095cc30b2cc7d963ca..07511442cb7b8c8310c480a344c44a26f5ac2b70 100644 (file)
@@ -259,15 +259,15 @@ $(BUILD_DIR)/%/.stamp_extracted:
 $(BUILD_DIR)/%/.stamp_patched: NAMEVER = $(RAWNAME)-$($(PKG)_VERSION)
 $(BUILD_DIR)/%/.stamp_patched:
        @$(call MESSAGE,"Patching $($(PKG)_DIR_PREFIX)/$(RAWNAME)")
-       $(if $($(PKG)_PATCH),toolchain/patch-kernel.sh $(@D) $(DL_DIR) $($(PKG)_PATCH))
+       $(if $($(PKG)_PATCH),support/scripts/apply-patches.sh $(@D) $(DL_DIR) $($(PKG)_PATCH))
        $(Q)( \
        if test -d $($(PKG)_DIR_PREFIX)/$(RAWNAME); then \
          if test "$(wildcard $($(PKG)_DIR_PREFIX)/$(RAWNAME)/$(NAMEVER)*.patch*)"; then \
-           toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) $(NAMEVER)\*.patch $(NAMEVER)\*.patch.$(ARCH) || exit 1; \
+           support/scripts/apply-patches.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) $(NAMEVER)\*.patch $(NAMEVER)\*.patch.$(ARCH) || exit 1; \
          else \
-           toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) $(RAWNAME)\*.patch $(RAWNAME)\*.patch.$(ARCH) || exit 1; \
+           support/scripts/apply-patches.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) $(RAWNAME)\*.patch $(RAWNAME)\*.patch.$(ARCH) || exit 1; \
            if test -d $($(PKG)_DIR_PREFIX)/$(RAWNAME)/$(NAMEVER); then \
-             toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME)/$(NAMEVER) \*.patch \*.patch.$(ARCH) || exit 1; \
+             support/scripts/apply-patches.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME)/$(NAMEVER) \*.patch \*.patch.$(ARCH) || exit 1; \
            fi; \
          fi; \
        fi; \
index 2705bac745c8371b9387708a6b99bb1462ee167a..1a90b10123c31ce6e843997406813e12875db083 100644 (file)
@@ -11,7 +11,7 @@ ARGUS_DEPENDENCIES=libpcap
 
 define ARGUS_DEBIAN_PATCH_APPLY
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 
index 169cdb33415010f220fb99c7e030136af8337492..3b9f2e0d3cf7696b2196a693af738013627b5ac4 100644 (file)
@@ -69,7 +69,7 @@ $(DL_DIR)/$(CUPS_SOURCE):
 
 $(CUPS_DIR)/.unpacked: $(DL_DIR)/$(CUPS_SOURCE)
        $(CUPS_CAT) $(DL_DIR)/$(CUPS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(CUPS_DIR) package/cups/ \*.patch
+       support/scripts/apply-patches.sh $(CUPS_DIR) package/cups/ \*.patch
        $(CONFIG_UPDATE) $(CUPS_DIR)
        touch $@
 
index 023e93bafa83631f274d948d7d6b20ed57a3769c..8d56a21071653dfa6910e6d2451ce80863b5cc5e 100644 (file)
@@ -37,7 +37,7 @@ define CVS_DEBIAN_PATCHES
                 do $(SED) 's,^\+\+\+ .*cvs-$(CVS_VERSION)/,+++ cvs-$(CVS_VERSION)/,' $$i; \
                 done; \
                ); \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
        fi
 endef
 endif
index e532aff2b5edc38882631e5bbb88e78713d4587d..29424491c2447dbcb529fd153a9b7cee060d9360 100644 (file)
@@ -18,7 +18,7 @@ fis-source: $(DL_DIR)/$(FIS_SOURCE)
 $(FIS_DIR)/.unpacked: $(DL_DIR)/$(FIS_SOURCE)
        mkdir -p $(FIS_DIR)
        cp -f $(DL_DIR)/$(FIS_SOURCE) $(FIS_DIR)
-       toolchain/patch-kernel.sh $(FIS_DIR) package/fis \*.patch
+       support/scripts/apply-patches.sh $(FIS_DIR) package/fis \*.patch
        touch $@
 
 $(FIS_DIR)/$(FIS_BINARY): $(FIS_DIR)/.unpacked
index 2b308c84abff5585c804c06e20ccd643e6b4163f..332a2ca630f303e969fdf35480ff5b7d09532b86 100644 (file)
@@ -24,7 +24,7 @@ gettext-source: $(DL_DIR)/$(GETTEXT_SOURCE)
 
 $(GETTEXT_DIR)/.unpacked: $(DL_DIR)/$(GETTEXT_SOURCE)
        $(GETTEXT_CAT) $(DL_DIR)/$(GETTEXT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(GETTEXT_DIR) package/gettext/ gettext\*.patch
+       support/scripts/apply-patches.sh $(GETTEXT_DIR) package/gettext/ gettext\*.patch
        $(CONFIG_UPDATE) $(@D)
        $(CONFIG_UPDATE) $(GETTEXT_DIR)/build-aux
        touch $@
index daf07556d6aee461ee363f3ae1732d19997d8bf3..0c5b523c6f694d3fc382d6a6a60b41e8963a49a1 100644 (file)
@@ -15,7 +15,7 @@ INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSTEST)      += jstest
 
 define INPUT_TOOLS_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 
index 415745b26ae3b1e4a0cff230b467c17e797b0eb5..565a259c751e5b3d2fb2dad1eb5650e3800b51e2 100644 (file)
@@ -18,7 +18,7 @@ define LIBEXOSIP2_DEBIAN_PATCHES
                 do $(SED) 's,^\+\+\+ .*cvs-$(LIBEXOSIP2_VERSION)/,+++ cvs-$(LIBEXOSIP2_VERSION)/,' $$i; \
                 done; \
                ); \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
        fi
 endef
 endif
index be4531ecbe5f66f66dd8d9016977f91dc5e89526..f9872b67cad53c5807ef1f356f193f3ad4d3278a 100644 (file)
@@ -139,7 +139,7 @@ HOST_LIBGTK2_CONF_OPT = \
                --disable-debug
 
 define HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
toolchain/patch-kernel.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) host-*.patch
support/scripts/apply-patches.sh $(@D) $($(PKG)_DIR_PREFIX)/$(RAWNAME) host-*.patch
 endef
 
 HOST_LIBGTK2_POST_PATCH_HOOKS += HOST_LIBGTK2_PATCH_REDUCE_DEPENDENCIES_HOOK
index aa15332c9f5f346e817c429ec870bb3dd02bfe5a..da3f9a277ba55ff0dcb0092f44a858cdfdc1a831 100644 (file)
@@ -16,7 +16,7 @@ define LIBOSIP2_DEBIAN_PATCHES
                 do $(SED) 's,^\+\+\+ .*cvs-$(LIBOSIP2_VERSION)/,+++ cvs-$(LIBOSIP2_VERSION)/,' $$i; \
                 done; \
                ); \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*; \
        fi
 endef
 endif
index 01a8b5f7d0da37e561b3ead42eeb9c1489c49bd8..6d3743a158b081b77e52eb0c77a1f595a8cf40ab 100644 (file)
@@ -10,7 +10,7 @@ MII_DIAG_SITE    = $(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mii-diag
 
 define MII_DIAG_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 
index d021aef821a92de89c61615ff618fdbc2aa50256..886768cf37e8b2f9f28efafe947c40cb420f318f 100644 (file)
@@ -16,7 +16,7 @@ MUTT_AUTORECONF=YES
 
 define MUTT_APPLY_DEBIAN_PATCHES
         if [ -d $(@D)/debian/patches ]; then \
-                toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+                support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
         fi
 endef
 
index 311c8b28a24ffb8161aa02f368f9fe595b24f813..dde8f9f6c0a764f2c94642db1e71b50eeeb0bc01 100644 (file)
@@ -22,7 +22,7 @@ $(NETKITBASE_DIR)/.unpacked: $(DL_DIR)/$(NETKITBASE_SOURCE)
        $(SED) "s/main()/main(void)/;" $(NETKITBASE_DIR)/configure
        # don't try to run cross compiled binaries while configuring things
        $(SED) "s~./__conftest~#./__conftest~;" $(NETKITBASE_DIR)/configure
-       toolchain/patch-kernel.sh $(NETKITBASE_DIR) package/netkitbase/ netkitbase\*.patch
+       support/scripts/apply-patches.sh $(NETKITBASE_DIR) package/netkitbase/ netkitbase\*.patch
        touch $(NETKITBASE_DIR)/.unpacked
 
 $(NETKITBASE_DIR)/.configured: $(NETKITBASE_DIR)/.unpacked
index afa3bc451f0162798336c7ba8464b8e13937aff4..e9f40cad0350fbaed84b5de68916a46f00b2848d 100644 (file)
@@ -23,7 +23,7 @@ $(NETKITTELNET_DIR)/.unpacked: $(DL_DIR)/$(NETKITTELNET_SOURCE)
        # Disable termcap support
        $(SED) "s~\(.*termcap\.h.*\)~/* \1 */~;" $(NETKITTELNET_DIR)/telnetd/telnetd.c
        # don't try to run cross compiled binaries while configuring things
-       toolchain/patch-kernel.sh $(NETKITTELNET_DIR) package/netkittelnet/ netkittelnet\*.patch
+       support/scripts/apply-patches.sh $(NETKITTELNET_DIR) package/netkittelnet/ netkittelnet\*.patch
        touch $(NETKITTELNET_DIR)/.unpacked
 
 $(NETKITTELNET_DIR)/.configured: $(NETKITTELNET_DIR)/.unpacked
index f24af73dff8dfad6e7821bc105bcc06c210ff5d7..33c8478d9fb7df311b3077c0164dc8c28ae3929e 100644 (file)
@@ -13,7 +13,7 @@ define SETSERIAL_APPLY_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
                touch $(@D)/gorhack.h; \
                rm $(@D)/debian/patches/01_makefile.dpatch; \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches *.dpatch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches *.dpatch; \
        fi
 endef
 
index 81c4943dc14fd005fe670e31bad335c2ad3f95b1..22ebeaaae9cd0f0f58310fd3b9cf8cd14d74855a 100644 (file)
@@ -14,7 +14,7 @@ $(DL_DIR)/$(SFDISK_SOURCE):
 
 $(SFDISK_DIR)/.patched: $(DL_DIR)/$(SFDISK_SOURCE)
        $(SFDISK_CAT) $(DL_DIR)/$(SFDISK_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(SFDISK_DIR) package/sfdisk/ sfdisk.\*.patch
+       support/scripts/apply-patches.sh $(SFDISK_DIR) package/sfdisk/ sfdisk.\*.patch
        touch $@
 
 
index 11aee2af57e200724ee227c46240b928319e14c9..e08f048e1f0c47e92a14c4928752cc015ab00021 100644 (file)
@@ -15,7 +15,7 @@ endif
 
 define SYSKLOGD_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 
index adcc1ade029c16bd4d86f6dfc324575781bb1945..af5ec42035943f7feb0aa97c7bb57e8ac24234bb 100644 (file)
@@ -15,7 +15,7 @@ endif
 
 define SYSVINIT_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 
index c67aa49cf0257a1602097100891403393772bf55..46c87a13c2abbe258aaa8ec004fdbab8c3089c7c 100644 (file)
@@ -11,7 +11,7 @@ THTTPD_SITE = $(BR2_DEBIAN_MIRROR)/debian/pool/main/t/thttpd/
 ifneq ($(THTTPD_PATCH),)
 define THTTPD_DEBIAN_PATCHES
        if [ -d $(@D)/debian/patches ]; then \
-               toolchain/patch-kernel.sh $(@D) $(@D)/debian/patches \*.patch; \
+               support/scripts/apply-patches.sh $(@D) $(@D)/debian/patches \*.patch; \
        fi
 endef
 endif
index eac416b971fdb937dac0f1c25a1365a161bf93c4..739849f33bf461d653437a78a213df42e018660e 100644 (file)
@@ -23,7 +23,7 @@ tinyhttpd-source: $(DL_DIR)/$(TINYHTTPD_SOURCE)
 #############################################################
 $(TINYHTTPD_DIR)/.unpacked: $(DL_DIR)/$(TINYHTTPD_SOURCE)
        $(TINYHTTPD_CAT) $(DL_DIR)/$(TINYHTTPD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(TINYHTTPD_DIR) package/tinyhttpd/ tinyhttpd\*.patch
+       support/scripts/apply-patches.sh $(TINYHTTPD_DIR) package/tinyhttpd/ tinyhttpd\*.patch
        touch $(TINYHTTPD_DIR)/.unpacked
 
 $(TINYHTTPD_DIR)/$(TINYHTTPD_BINARY): $(TINYHTTPD_DIR)/.unpacked
index 1c4fe6ff10f9b6955fdf2b4c77417a1ddb654a00..006b74ca9c7cfa65cdb6a5f8f69742b881ec3f94 100644 (file)
@@ -15,7 +15,7 @@ $(DL_DIR)/$(TTCP_SOURCE):
 $(TTCP_DIR)/.unpacked: $(DL_DIR)/$(TTCP_SOURCE)
        -mkdir $(TTCP_DIR)
        cp -af $(DL_DIR)/$(TTCP_SOURCE) $(TTCP_DIR)
-       toolchain/patch-kernel.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch
+       support/scripts/apply-patches.sh $(TTCP_DIR) package/ttcp/ ttcp-\*.patch
        touch $(TTCP_DIR)/.unpacked
 
 $(TTCP_DIR)/.configured: $(TTCP_DIR)/.unpacked
index 539ad51f0e839f4b45b8d3e5b83d9faf6a402c35..8355a7f960a7626b8c4d5fad2231e1421e49b2a4 100644 (file)
@@ -18,7 +18,7 @@ uemacs-source: $(DL_DIR)/$(UEMACS_SOURCE)
 
 $(UEMACS_DIR)/.unpacked: $(DL_DIR)/$(UEMACS_SOURCE)
        $(UEMACS_CAT) $(DL_DIR)/$(UEMACS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch
+       support/scripts/apply-patches.sh $(UEMACS_DIR) package/uemacs/ uemacs\*.patch
        touch $(UEMACS_DIR)/.unpacked
 
 $(UEMACS_DIR)/$(UEMACS_BINARY): $(UEMACS_DIR)/.unpacked
index c4f23fa2ab52e4fe299a669aba35d81873552269..5a8c7003682cb5fc98fefc24bd99aaa90fc73e50 100644 (file)
@@ -19,7 +19,7 @@ $(DL_DIR)/$(VPNC_SOURCE):
 
 $(VPNC_DIR)/.unpacked: $(DL_DIR)/$(VPNC_SOURCE)
        $(VPNC_CAT) $(DL_DIR)/$(VPNC_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(VPNC_DIR) package/vpnc vpnc-$(VPNC_VERSION)\*.patch
+       support/scripts/apply-patches.sh $(VPNC_DIR) package/vpnc vpnc-$(VPNC_VERSION)\*.patch
        touch $@
 
 $(VPNC_BINARY): $(VPNC_DIR)/.unpacked
index 204b3cbd6695d8133a072c99757d2b5c7810c8db..68db2f789094495ae50dff642c80e958712be546 100644 (file)
@@ -24,7 +24,7 @@ xfsprogs-source: $(DL_DIR)/$(XFSPROGS_SOURCE)
 
 $(XFSPROGS_DIR)/.unpacked: $(DL_DIR)/$(XFSPROGS_SOURCE)
        $(XFSPROGS_CAT) $(DL_DIR)/$(XFSPROGS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
-       toolchain/patch-kernel.sh $(XFSPROGS_DIR) package/xfsprogs/ xfsprogs\*.patch
+       support/scripts/apply-patches.sh $(XFSPROGS_DIR) package/xfsprogs/ xfsprogs\*.patch
        touch $(XFSPROGS_DIR)/.unpacked
 
 #XFSPROGS_CONFIG_SHARED:=--disable-shared
index 94613fadde3cfbb41d75050dbf25fea0fa9850d3..9232290995c82f5b61e51497ba7284aafb134a5d 100644 (file)
@@ -207,12 +207,12 @@ gcc-patched: $(GCC_DIR)/.patched
 $(GCC_DIR)/.patched: $(GCC_DIR)/.unpacked
        # Apply any files named gcc-*.patch from the source directory to gcc
 ifneq ($(wildcard $(GCC_PATCH_DIR)),)
-       toolchain/patch-kernel.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch $(GCC_PATCH_EXTRA)
+       support/scripts/apply-patches.sh $(GCC_DIR) $(GCC_PATCH_DIR) \*.patch $(GCC_PATCH_EXTRA)
 endif
 
 ifeq ($(ARCH)-$(BR2_GCC_SHARED_LIBGCC),powerpc-y)
 ifneq ($(BR2_SOFT_FLOAT),)
-       toolchain/patch-kernel.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) powerpc-link-with-math-lib.patch.conditional
+       support/scripts/apply-patches.sh $(GCC_DIR) toolchain/gcc/$(GCC_VERSION) powerpc-link-with-math-lib.patch.conditional
 endif
 endif
        touch $@
index caf3e364d923d61027bf67665cbf6b0ea6ff6a50..db46b128698fe15110a625efa306a0bb836a2ded 100644 (file)
@@ -36,7 +36,7 @@ ifeq ($(GDB_VERSION),snapshot)
        ln -sf $(TOOLCHAIN_DIR)/$(shell tar jtf $(DL_DIR)/$(GDB_SOURCE) | head -1 | cut -d"/" -f1) $(GDB_DIR)
 endif
 ifneq ($(wildcard $(GDB_PATCH_DIR)),)
-       toolchain/patch-kernel.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch $(GDB_PATCH_EXTRA)
+       support/scripts/apply-patches.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch $(GDB_PATCH_EXTRA)
 endif
        $(CONFIG_UPDATE) $(@D)
        touch $@
index ce70cab3a1903a6d07c2e43ecd036ae0cc7ec1de..044fcf9477b349054aaa1a593bae7c40459a58cc 100644 (file)
@@ -55,10 +55,10 @@ $(LINUX_HEADERS_UNPACK_DIR)/.unpacked: $(DL_DIR)/$(LINUX_HEADERS_SOURCE)
        touch $@
 
 $(LINUX_HEADERS_UNPACK_DIR)/.patched: $(LINUX_HEADERS_UNPACK_DIR)/.unpacked $(LINUX_HEADERS_DEPENDS)
-       toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers \
+       support/scripts/apply-patches.sh $(LINUX_HEADERS_UNPACK_DIR) toolchain/kernel-headers \
                linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
 ifneq ($(KERNEL_HEADERS_PATCH_DIR),)
-       toolchain/patch-kernel.sh $(LINUX_HEADERS_UNPACK_DIR) $(KERNEL_HEADERS_PATCH_DIR) \
+       support/scripts/apply-patches.sh $(LINUX_HEADERS_UNPACK_DIR) $(KERNEL_HEADERS_PATCH_DIR) \
                linux-$(LINUX_HEADERS_VERSION)-\*.patch{,.gz,.bz2}
 endif
        touch $@
index e74012f6165d9bdd6709a20fc6f66ac15a762b55..0fc5a817eb36e3a4b19f5fdd2d64cbfdb84c09df 100644 (file)
@@ -79,11 +79,11 @@ $(UCLIBC_DIR)/.unpacked: $(DL_DIR)/$(UCLIBC_SOURCE)
 uclibc-patched: $(UCLIBC_DIR)/.patched
 $(UCLIBC_DIR)/.patched: $(UCLIBC_DIR)/.unpacked
 ifneq ($(BR2_UCLIBC_VERSION_SNAPSHOT),y)
-       toolchain/patch-kernel.sh $(UCLIBC_DIR) $(UCLIBC_PATCH_DIR) \
+       support/scripts/apply-patches.sh $(UCLIBC_DIR) $(UCLIBC_PATCH_DIR) \
                uClibc-$(UCLIBC_VERSION)-\*.patch \
                uClibc-$(UCLIBC_VERSION)-\*.patch.$(ARCH)
 else
-       toolchain/patch-kernel.sh $(UCLIBC_DIR) $(UCLIBC_PATCH_DIR) \
+       support/scripts/apply-patches.sh $(UCLIBC_DIR) $(UCLIBC_PATCH_DIR) \
                uClibc.\*.patch uClibc.\*.patch.$(ARCH)
 endif
        touch $@