Pull request for branch for-2011.11/misc-cleanups
Hello,
This set of patches basically creates a new support/ directory, which is used to group various files needed for the operation of Buildroot which didn't fit properly in other directories :
* The various scripts in the scripts/ directory (after removing the unused, unmaintained ones)
* The libtool related patches
* The patch-kernel.sh script, after renaming it to a more sensible name.
* The kconfig stuff
* The gnuconfig stuff (config.guess and config.sub)
Best regards,
Thomas
The following changes since commit d1dd9588ae76d8c9b79a39af182a45e54ac356dd:
news.html: fix 2011.08 release date (2011-08-31 14:23:26 +0200)
are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2011.11/misc-cleanups
Thomas Petazzoni (7):
scripts: remove old, unmaintained, unused scripts scripts/mkmakefile: fix typo
support: move scripts/ to a new support/ directory
support: move libtool patches in support/libtool
support: move patch-kernel.sh and rename it
support: move kconfig stuff from package/config to support/kconfig
support: move package/gnuconfig to support/gnuconfig
Makefile | 10 +-
boot/uboot/uboot.mk | 2 +-
linux/linux.mk | 6 +-
package/Makefile.autotools.in | 36 ++++--
package/Makefile.package.in | 8 +-
package/argus/argus.mk | 2 +-
package/cups/cups.mk | 4 +-
package/cvs/cvs.mk | 2 +-
package/fis/fis.mk | 2 +-
package/gettext/gettext.mk | 5 +-
package/gnuconfig/README.buildroot | 20 ----
package/gnuconfig/gnuconfig.mk | 3 -
package/input-tools/input-tools.mk | 2 +-
package/libeXosip2/libeXosip2.mk | 2 +-
package/libgtk2/libgtk2.mk | 2 +-
package/libosip2/libosip2.mk | 2 +-
package/lmbench/lmbench.mk | 2 +-
package/mii-diag/mii-diag.mk | 2 +-
package/mutt/mutt.mk | 2 +-
package/netkitbase/netkitbase.mk | 2 +-
package/netkittelnet/netkittelnet.mk | 2 +-
package/setserial/setserial.mk | 2 +-
package/sfdisk/sfdisk.mk | 2 +-
package/sysklogd/sysklogd.mk | 2 +-
package/sysvinit/sysvinit.mk | 2 +-
package/thttpd/thttpd.mk | 2 +-
package/tinyhttpd/tinyhttpd.mk | 2 +-
package/ttcp/ttcp.mk | 2 +-
package/uemacs/uemacs.mk | 2 +-
package/vpnc/vpnc.mk | 2 +-
package/xfsprogs/xfsprogs.mk | 2 +-
scripts/add_new_package.wizard | 120 --------------------
scripts/create_ipkgs | 82 -------------
scripts/get_linux_config.sh | 77 -------------
{package => support}/gnuconfig/.cvsignore | 0
support/gnuconfig/README.buildroot | 25 ++++
{package => support}/gnuconfig/config.guess | 0
{package => support}/gnuconfig/config.sub | 0
.../gnuconfig/patches/config.guess.uclibc.patch | 0
.../gnuconfig/patches/config.sub.ps2.patch | 0
{package/config => support/kconfig}/.gitignore | 0
{package/config => support/kconfig}/Makefile | 0
{package/config => support/kconfig}/Makefile.br | 0
{package/config => support/kconfig}/POTFILES.in | 0
.../config => support/kconfig}/README.buildroot2 | 10 +-
{package/config => support/kconfig}/check.sh | 0
{package/config => support/kconfig}/conf.c | 0
{package/config => support/kconfig}/confdata.c | 0
{package/config => support/kconfig}/expr.c | 0
{package/config => support/kconfig}/expr.h | 0
{package/config => support/kconfig}/foo.h | 0
{package/config => support/kconfig}/gconf.c | 2 +-
{package/config => support/kconfig}/gconf.glade | 0
{package/config => support/kconfig}/images.c | 0
{package/config => support/kconfig}/kconfig_load.c | 0
{package/config => support/kconfig}/kxgettext.c | 0
.../config => support/kconfig}/lex.zconf.c_shipped | 0
{package/config => support/kconfig}/lkc.h | 0
{package/config => support/kconfig}/lkc_proto.h | 0
.../config => support/kconfig}/lxdialog/.gitignore | 0
.../kconfig}/lxdialog/BIG.FAT.WARNING | 0
.../kconfig}/lxdialog/check-lxdialog.sh | 0
.../kconfig}/lxdialog/checklist.c | 0
.../config => support/kconfig}/lxdialog/dialog.h | 0
.../config => support/kconfig}/lxdialog/inputbox.c | 0
.../config => support/kconfig}/lxdialog/menubox.c | 0
.../config => support/kconfig}/lxdialog/textbox.c | 0
.../config => support/kconfig}/lxdialog/util.c | 0
.../config => support/kconfig}/lxdialog/yesno.c | 0
{package/config => support/kconfig}/mconf.c | 0
{package/config => support/kconfig}/menu.c | 0
{package/config => support/kconfig}/nconf.c | 0
{package/config => support/kconfig}/nconf.gui.c | 0
{package/config => support/kconfig}/nconf.h | 0
.../patches/01-kconfig-kernel-to-buildroot.patch | 0
.../patches/02-cpp-comments-to-c-comments.patch | 0
.../patches/03-change-config-option-prefix.patch | 0
.../patches/05-really-clean-everything.patch | 0
.../patches/06-br-build-system-integration.patch | 0
.../kconfig}/patches/08-make-write-deps.patch | 8 +-
.../patches/09-implement-kconfig-probability.patch | 0
.../kconfig}/patches/10-br-build-system.patch | 0
.../patches/11-use-mktemp-for-lxdialog.patch | 0
.../kconfig}/patches/12-fix-glade-file-path.patch | 8 +-
.../patches/14-support-out-of-tree-config.patch | 0
{package/config => support/kconfig}/patches/series | 0
{package/config => support/kconfig}/qconf.cc | 0
{package/config => support/kconfig}/qconf.h | 0
.../kconfig}/streamline_config.pl | 0
{package/config => support/kconfig}/symbol.c | 0
{package/config => support/kconfig}/util.c | 2 +-
{package/config => support/kconfig}/zconf.gperf | 0
.../kconfig}/zconf.hash.c_shipped | 0
{package/config => support/kconfig}/zconf.l | 0
.../config => support/kconfig}/zconf.tab.c_shipped | 0
{package/config => support/kconfig}/zconf.y | 0
.../libtool}/buildroot-libtool-v1.5.patch | 0
.../libtool}/buildroot-libtool-v2.2.patch | 0
.../libtool}/buildroot-libtool-v2.4.patch | 0
.../scripts/apply-patches.sh | 0
{scripts => support/scripts}/build-ext3-img | 0
{scripts => support/scripts}/copy.sh | 0
{scripts => support/scripts}/graph-depends | 0
{scripts => support/scripts}/mkmakefile | 2 +-
{scripts => support/scripts}/pkg-stats | 1 -
{scripts => support/scripts}/setlocalversion | 0
toolchain/elf2flt/elf2flt.mk | 2 +-
toolchain/gcc/gcc-uclibc-4.x.mk | 6 +-
toolchain/gdb/gdb.mk | 4 +-
toolchain/kernel-headers/kernel-headers.mk | 4 +-
toolchain/uClibc/uclibc.mk | 4 +-
111 files changed, 115 insertions(+), 380 deletions(-)
delete mode 100644 package/gnuconfig/README.buildroot
delete mode 100644 package/gnuconfig/gnuconfig.mk
delete mode 100755 scripts/add_new_package.wizard
delete mode 100755 scripts/create_ipkgs
delete mode 100755 scripts/get_linux_config.sh
rename {package => support}/gnuconfig/.cvsignore (100%)
create mode 100644 support/gnuconfig/README.buildroot
rename {package => support}/gnuconfig/config.guess (100%)
rename {package => support}/gnuconfig/config.sub (100%)
rename {package => support}/gnuconfig/patches/config.guess.uclibc.patch (100%)
rename {package => support}/gnuconfig/patches/config.sub.ps2.patch (100%)
rename {package/config => support/kconfig}/.gitignore (100%)
rename {package/config => support/kconfig}/Makefile (100%)
rename {package/config => support/kconfig}/Makefile.br (100%)
rename {package/config => support/kconfig}/POTFILES.in (100%)
rename {package/config => support/kconfig}/README.buildroot2 (58%)
rename {package/config => support/kconfig}/check.sh (100%)
rename {package/config => support/kconfig}/conf.c (100%)
rename {package/config => support/kconfig}/confdata.c (100%)
rename {package/config => support/kconfig}/expr.c (100%)
rename {package/config => support/kconfig}/expr.h (100%)
rename {package/config => support/kconfig}/foo.h (100%)
rename {package/config => support/kconfig}/gconf.c (99%)
rename {package/config => support/kconfig}/gconf.glade (100%)
rename {package/config => support/kconfig}/images.c (100%)
rename {package/config => support/kconfig}/kconfig_load.c (100%)
rename {package/config => support/kconfig}/kxgettext.c (100%)
rename {package/config => support/kconfig}/lex.zconf.c_shipped (100%)
rename {package/config => support/kconfig}/lkc.h (100%)
rename {package/config => support/kconfig}/lkc_proto.h (100%)
rename {package/config => support/kconfig}/lxdialog/.gitignore (100%)
rename {package/config => support/kconfig}/lxdialog/BIG.FAT.WARNING (100%)
rename {package/config => support/kconfig}/lxdialog/check-lxdialog.sh (100%)
rename {package/config => support/kconfig}/lxdialog/checklist.c (100%)
rename {package/config => support/kconfig}/lxdialog/dialog.h (100%)
rename {package/config => support/kconfig}/lxdialog/inputbox.c (100%)
rename {package/config => support/kconfig}/lxdialog/menubox.c (100%)
rename {package/config => support/kconfig}/lxdialog/textbox.c (100%)
rename {package/config => support/kconfig}/lxdialog/util.c (100%)
rename {package/config => support/kconfig}/lxdialog/yesno.c (100%)
rename {package/config => support/kconfig}/mconf.c (100%)
rename {package/config => support/kconfig}/menu.c (100%)
rename {package/config => support/kconfig}/nconf.c (100%)
rename {package/config => support/kconfig}/nconf.gui.c (100%)
rename {package/config => support/kconfig}/nconf.h (100%)
rename {package/config => support/kconfig}/patches/01-kconfig-kernel-to-buildroot.patch (100%)
rename {package/config => support/kconfig}/patches/02-cpp-comments-to-c-comments.patch (100%)
rename {package/config => support/kconfig}/patches/03-change-config-option-prefix.patch (100%)
rename {package/config => support/kconfig}/patches/05-really-clean-everything.patch (100%)
rename {package/config => support/kconfig}/patches/06-br-build-system-integration.patch (100%)
rename {package/config => support/kconfig}/patches/08-make-write-deps.patch (96%)
rename {package/config => support/kconfig}/patches/09-implement-kconfig-probability.patch (100%)
rename {package/config => support/kconfig}/patches/10-br-build-system.patch (100%)
rename {package/config => support/kconfig}/patches/11-use-mktemp-for-lxdialog.patch (100%)
rename {package/config => support/kconfig}/patches/12-fix-glade-file-path.patch (73%)
rename {package/config => support/kconfig}/patches/14-support-out-of-tree-config.patch (100%)
rename {package/config => support/kconfig}/patches/series (100%)
rename {package/config => support/kconfig}/qconf.cc (100%)
rename {package/config => support/kconfig}/qconf.h (100%)
rename {package/config => support/kconfig}/streamline_config.pl (100%)
rename {package/config => support/kconfig}/symbol.c (100%)
rename {package/config => support/kconfig}/util.c (99%)
rename {package/config => support/kconfig}/zconf.gperf (100%)
rename {package/config => support/kconfig}/zconf.hash.c_shipped (100%)
rename {package/config => support/kconfig}/zconf.l (100%)
rename {package/config => support/kconfig}/zconf.tab.c_shipped (100%)
rename {package/config => support/kconfig}/zconf.y (100%)
rename {package => support/libtool}/buildroot-libtool-v1.5.patch (100%)
rename {package => support/libtool}/buildroot-libtool-v2.2.patch (100%)
rename {package => support/libtool}/buildroot-libtool-v2.4.patch (100%)
rename toolchain/patch-kernel.sh => support/scripts/apply-patches.sh (100%)
rename {scripts => support/scripts}/build-ext3-img (100%)
rename {scripts => support/scripts}/copy.sh (100%)
rename {scripts => support/scripts}/graph-depends (100%)
rename {scripts => support/scripts}/mkmakefile (93%)
rename {scripts => support/scripts}/pkg-stats (99%)
rename {scripts => support/scripts}/setlocalversion (100%)Thanks,
Signature · 1 line
Thomas Petazzoni
PATCH 1/7 scripts: remove old, unmaintained, unused scripts
--- scripts/add_new_package.wizard | 120 ---------------------------------------- scripts/create_ipkgs | 82 --------------------------- scripts/get_linux_config.sh | 77 ------------------------- 3 files changed, 0 insertions(+), 279 deletions(-) delete mode 100755 scripts/add_new_package.wizard delete mode 100755 scripts/create_ipkgs delete mode 100755 scripts/get_linux_config.sh
scripts/add_new_package.wizard deleted +0 -120
@@ -1,120 +0,0 @@ -#!/bin/sh - -echo "**** Autotools Add New Package Wizard ****" -echo " This script will generate files to add a" -echo " new package to buildroot." -echo - -echo "What is the name of the package?" -read PACKAGE_NAME - -echo "What is the version number?" -read VERSION_NUM - -echo "What is the web address of the tarball?" -read DOWNLOAD_LOC - -echo "Enter any known dependencies, separated" -echo "by spaces, or just press enter." -read EXTRA_DEPS - -echo "Enter a description of the package." -read DESCRIPTION - -echo "Does autoreconf need to be run first? (y/n)" -read ANSWER - -if [ "$ANSWER" = "y" ]; then - RECONF="YES" -else - RECONF="NO" -fi - -echo "Does it need to be installed to the staging dir?" -echo "Say yes, if other packages depend on it." -echo "(If not sure, just say yes. It will only use more" -echo "space on your hard drive.)" -read ANSWER - -if [ "$ANSWER" = "y" ]; then - STAGING="YES" -else - STAGING="NO" -fi - -echo "Enter an additional subdirectory below package/" -echo "as category, or just press enter." -read SUB_DIR - -if [ -z "$SUB_DIR" ]; then - CATEGORY_DIR=package -else - CATEGORY_DIR=package/${SUB_DIR} -fi - -echo "Enter any configure script options." -read CONFIG_OPTIONS - -URL=${DOWNLOAD_LOC%/*} -TARBALL=${DOWNLOAD_LOC##*/} -EXTENSION=${TARBALL##*.tar.} -NAME_UPPER=`echo ${PACKAGE_NAME} | tr a-z- A-Z_` -PACKAGE_DIR=`dirname $0`/../${CATEGORY_DIR}/${PACKAGE_NAME} - -mkdir -p ${PACKAGE_DIR} - -sed -e 's/ *$//g' > ${PACKAGE_DIR}/${PACKAGE_NAME}.mk <<EOF -############################################################# -# -# ${PACKAGE_NAME} -# -############################################################# -${NAME_UPPER}_VERSION = ${VERSION_NUM} -${NAME_UPPER}_SOURCE = ${PACKAGE_NAME}-\$(${NAME_UPPER}_VERSION).tar.${EXTENSION} -${NAME_UPPER}_SITE = ${URL} -${NAME_UPPER}_AUTORECONF = ${RECONF} -${NAME_UPPER}_INSTALL_STAGING = ${STAGING} -${NAME_UPPER}_INSTALL_TARGET = YES - -${NAME_UPPER}_CONF_OPT = ${CONFIG_OPTIONS} - -${NAME_UPPER}_DEPENDENCIES = uclibc ${EXTRA_DEPS} - -\$(eval \$(call AUTOTARGETS,${CATEGORY_DIR},${PACKAGE_NAME})) -EOF - -cat > ${PACKAGE_DIR}/Config.in <<EOF -config BR2_PACKAGE_${NAME_UPPER} - bool "${PACKAGE_NAME}" - help - ${DESCRIPTION} - - ${URL} -EOF - -echo -echo "**** Manual steps to integrate your new package ****" -echo - -echo "Add the following line to ${CATEGORY_DIR}/Config.in" -echo "in an appropriate location:" -echo "source \"${CATEGORY_DIR}/${PACKAGE_NAME}/Config.in\"" - -if [ -n "$SUB_DIR" ]; then - echo - echo "Additionally add the following line to package/Config.in" - echo "in an appropriate location:" - echo "source \"${CATEGORY_DIR}/Config.in\"" -fi - -if [ -n "$EXTRA_DEPS" ]; then - echo - echo "You need to add \"depends on\" and/or \"select\" lines" - echo "to ${CATEGORY_DIR}/${PACKAGE_NAME}/Config.in" - echo "corresponding to the \"${NAME_UPPER}_DEPENDENCIES\" line" - echo "in ${CATEGORY_DIR}/${PACKAGE_NAME}/${PACKAGE_NAME}.mk" -fi - -echo -echo "After that run \"make menuconfig\", select your new package" -echo "and run \"make\" to build \"${PACKAGE_NAME}\"."
scripts/create_ipkgs deleted +0 -82
82 lines not on this page · raw message
scripts/get_linux_config.sh deleted +0 -77
77 lines not on this page · raw message
Signature · 1 line
1.7.4.1
PATCH 2/7 scripts/mkmakefile: fix typo
In reply to Thomas Petazzoni--- scripts/mkmakefile | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
scripts/mkmakefile +1 -1
@@ -1,7 +1,7 @@ #!/bin/sh # Generates a small Makefile used in the root of the output # directory, to allow make to be started from there. -# The Makefile also allow for more convinient build of external modules +# The Makefile also allow for more convenient build of external modules # Usage # $1 - Kernel src directory
Signature · 1 line
1.7.4.1
PATCH 3/7 support: move scripts/ to a new support/ directory
In reply to Thomas Petazzoni---
Makefile | 6 +++---
{scripts => support/scripts}/build-ext3-img | 0
{scripts => support/scripts}/copy.sh | 0
{scripts => support/scripts}/graph-depends | 0
{scripts => support/scripts}/mkmakefile | 0
{scripts => support/scripts}/pkg-stats | 0
{scripts => support/scripts}/setlocalversion | 0
7 files changed, 3 insertions(+), 3 deletions(-)
rename {scripts => support/scripts}/build-ext3-img (100%)
rename {scripts => support/scripts}/copy.sh (100%)
rename {scripts => support/scripts}/graph-depends (100%)
rename {scripts => support/scripts}/mkmakefile (100%)
rename {scripts => support/scripts}/pkg-stats (100%)
rename {scripts => support/scripts}/setlocalversion (100%)Makefile +3 -3
@@ -37,7 +37,7 @@ DATE:=$(shell date +%Y%m%d) # Compute the full local version string so packages can use it as-is # Need to export it, so it can be got from environment in children (eg. mconf) -export BR2_VERSION_FULL:=$(BR2_VERSION)$(shell $(TOPDIR)/scripts/setlocalversion) +export BR2_VERSION_FULL:=$(BR2_VERSION)$(shell $(TOPDIR)/support/scripts/setlocalversion) noconfig_targets:=menuconfig nconfig gconfig xconfig config oldconfig randconfig \ defconfig %_defconfig savedefconfig allyesconfig allnoconfig silentoldconfig release \
@@ -425,7 +425,7 @@ erase-fakeroots: target-finalize: ifeq ($(BR2_HAVE_DEVFILES),y) - ( scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) ) + ( support/scripts/copy.sh $(STAGING_DIR) $(TARGET_DIR) ) else rm -rf $(TARGET_DIR)/usr/include $(TARGET_DIR)/usr/lib/pkgconfig $(TARGET_DIR)/usr/share/aclocal find $(TARGET_DIR)/lib \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
@@ -607,7 +607,7 @@ endif # ifeq ($(BR2_HAVE_DOT_CONFIG),y) # output directory. outputmakefile: ifeq ($(NEED_WRAPPER),y) - $(Q)$(TOPDIR)/scripts/mkmakefile $(TOPDIR) $(O) + $(Q)$(TOPDIR)/support/scripts/mkmakefile $(TOPDIR) $(O) endif clean:
support/scripts/build-ext3-img renamed from scripts/build-ext3-img +0 -0
support/scripts/copy.sh renamed from scripts/copy.sh +0 -0
support/scripts/graph-depends renamed from scripts/graph-depends +0 -0
support/scripts/mkmakefile renamed from scripts/mkmakefile +0 -0
support/scripts/pkg-stats renamed from scripts/pkg-stats +0 -0
support/scripts/setlocalversion renamed from scripts/setlocalversion +0 -0
Signature · 1 line
1.7.4.1
PATCH 4/7 support: move libtool patches in support/libtool
In reply to Thomas Petazzoni---
package/Makefile.autotools.in | 6 +++---
.../libtool}/buildroot-libtool-v1.5.patch | 0
.../libtool}/buildroot-libtool-v2.2.patch | 0
.../libtool}/buildroot-libtool-v2.4.patch | 0
4 files changed, 3 insertions(+), 3 deletions(-)
rename {package => support/libtool}/buildroot-libtool-v1.5.patch (100%)
rename {package => support/libtool}/buildroot-libtool-v2.2.patch (100%)
rename {package => support/libtool}/buildroot-libtool-v2.4.patch (100%)package/Makefile.autotools.in +3 -3
@@ -151,11 +151,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%/*} package buildroot-libtool-v1.5.patch; \ + toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v1.5.patch; \ elif test $$$${ltmain_version} = "2.2"; then\ - toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.2.patch; \ + toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v2.2.patch; \ elif test $$$${ltmain_version} = "2.4"; then\ - toolchain/patch-kernel.sh $$$${i%/*} package buildroot-libtool-v2.4.patch; \ + toolchain/patch-kernel.sh $$$${i%/*} support/libtool buildroot-libtool-v2.4.patch; \ fi \ done \ fi
support/libtool/buildroot-libtool-v1.5.patch renamed from package/buildroot-libtool-v1.5.patch +0 -0
support/libtool/buildroot-libtool-v2.2.patch renamed from package/buildroot-libtool-v2.2.patch +0 -0
support/libtool/buildroot-libtool-v2.4.patch renamed from package/buildroot-libtool-v2.4.patch +0 -0
Signature · 1 line
1.7.4.1
PATCH 5/7 support: move patch-kernel.sh and rename it
In reply to Thomas PetazzoniThe name "patch-kernel.sh" is a bit stupid, since this script is used to patch everything in Buildroot, not only kernel trees.
--- boot/uboot/uboot.mk | 2 +- linux/linux.mk | 6 +++--- package/Makefile.autotools.in | 12 ++++++------ package/Makefile.package.in | 8 ++++---- package/argus/argus.mk | 2 +- package/cups/cups.mk | 2 +- package/cvs/cvs.mk | 2 +- package/fis/fis.mk | 2 +- package/gettext/gettext.mk | 2 +- package/input-tools/input-tools.mk | 2 +- package/libeXosip2/libeXosip2.mk | 2 +- package/libgtk2/libgtk2.mk | 2 +- package/libosip2/libosip2.mk | 2 +- package/mii-diag/mii-diag.mk | 2 +- package/mutt/mutt.mk | 2 +- package/netkitbase/netkitbase.mk | 2 +- package/netkittelnet/netkittelnet.mk | 2 +- package/setserial/setserial.mk | 2 +- package/sfdisk/sfdisk.mk | 2 +- package/sysklogd/sysklogd.mk | 2 +- package/sysvinit/sysvinit.mk | 2 +- package/thttpd/thttpd.mk | 2 +- package/tinyhttpd/tinyhttpd.mk | 2 +- package/ttcp/ttcp.mk | 2 +- package/uemacs/uemacs.mk | 2 +- package/vpnc/vpnc.mk | 2 +- package/xfsprogs/xfsprogs.mk | 2 +- .../scripts/apply-patches.sh | 0 toolchain/gcc/gcc-uclibc-4.x.mk | 4 ++-- toolchain/gdb/gdb.mk | 2 +- toolchain/kernel-headers/kernel-headers.mk | 4 ++-- toolchain/uClibc/uclibc.mk | 4 ++-- 32 files changed, 44 insertions(+), 44 deletions(-) rename toolchain/patch-kernel.sh => support/scripts/apply-patches.sh (100%)
boot/uboot/uboot.mk +1 -1
@@ -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
linux/linux.mk +3 -3
@@ -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
package/Makefile.autotools.in +6 -6
@@ -151,11 +151,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
@@ -176,11 +176,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
package/Makefile.package.in +4 -4
@@ -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; \
package/argus/argus.mk +1 -1
@@ -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
package/cups/cups.mk +1 -1
@@ -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 $@
package/cvs/cvs.mk +1 -1
@@ -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
package/fis/fis.mk +1 -1
@@ -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
package/gettext/gettext.mk +1 -1
@@ -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 $@
package/input-tools/input-tools.mk +1 -1
@@ -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
package/libeXosip2/libeXosip2.mk +1 -1
@@ -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
package/libgtk2/libgtk2.mk +1 -1
@@ -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
package/libosip2/libosip2.mk +1 -1
@@ -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
package/mii-diag/mii-diag.mk +1 -1
@@ -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
package/mutt/mutt.mk +1 -1
@@ -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
package/netkitbase/netkitbase.mk +1 -1
@@ -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
package/netkittelnet/netkittelnet.mk +1 -1
@@ -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
package/setserial/setserial.mk +1 -1
@@ -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
package/sfdisk/sfdisk.mk +1 -1
@@ -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 $@
package/sysklogd/sysklogd.mk +1 -1
@@ -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
package/sysvinit/sysvinit.mk +1 -1
@@ -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
package/thttpd/thttpd.mk +1 -1
@@ -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
package/tinyhttpd/tinyhttpd.mk +1 -1
@@ -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
package/ttcp/ttcp.mk +1 -1
@@ -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
package/uemacs/uemacs.mk +1 -1
@@ -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
package/vpnc/vpnc.mk +1 -1
@@ -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
package/xfsprogs/xfsprogs.mk +1 -1
@@ -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
support/scripts/apply-patches.sh renamed from toolchain/patch-kernel.sh +0 -0
toolchain/gcc/gcc-uclibc-4.x.mk +2 -2
@@ -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 $@
toolchain/gdb/gdb.mk +1 -1
@@ -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 $@
toolchain/kernel-headers/kernel-headers.mk +2 -2
@@ -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 $@
toolchain/uClibc/uclibc.mk +2 -2
@@ -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 $@
Signature · 1 line
1.7.4.1
PATCH 6/7 support: move kconfig stuff from package/config to support/kconfig
In reply to Thomas Petazzoni---
Makefile | 2 +-
{package/config => support/kconfig}/.gitignore | 0
{package/config => support/kconfig}/Makefile | 0
{package/config => support/kconfig}/Makefile.br | 0
{package/config => support/kconfig}/POTFILES.in | 0
.../config => support/kconfig}/README.buildroot2 | 10 +++++-----
{package/config => support/kconfig}/check.sh | 0
{package/config => support/kconfig}/conf.c | 0
{package/config => support/kconfig}/confdata.c | 0
{package/config => support/kconfig}/expr.c | 0
{package/config => support/kconfig}/expr.h | 0
{package/config => support/kconfig}/foo.h | 0
{package/config => support/kconfig}/gconf.c | 2 +-
{package/config => support/kconfig}/gconf.glade | 0
{package/config => support/kconfig}/images.c | 0
{package/config => support/kconfig}/kconfig_load.c | 0
{package/config => support/kconfig}/kxgettext.c | 0
.../config => support/kconfig}/lex.zconf.c_shipped | 0
{package/config => support/kconfig}/lkc.h | 0
{package/config => support/kconfig}/lkc_proto.h | 0
.../config => support/kconfig}/lxdialog/.gitignore | 0
.../kconfig}/lxdialog/BIG.FAT.WARNING | 0
.../kconfig}/lxdialog/check-lxdialog.sh | 0
.../kconfig}/lxdialog/checklist.c | 0
.../config => support/kconfig}/lxdialog/dialog.h | 0
.../config => support/kconfig}/lxdialog/inputbox.c | 0
.../config => support/kconfig}/lxdialog/menubox.c | 0
.../config => support/kconfig}/lxdialog/textbox.c | 0
.../config => support/kconfig}/lxdialog/util.c | 0
.../config => support/kconfig}/lxdialog/yesno.c | 0
{package/config => support/kconfig}/mconf.c | 0
{package/config => support/kconfig}/menu.c | 0
{package/config => support/kconfig}/nconf.c | 0
{package/config => support/kconfig}/nconf.gui.c | 0
{package/config => support/kconfig}/nconf.h | 0
.../patches/01-kconfig-kernel-to-buildroot.patch | 0
.../patches/02-cpp-comments-to-c-comments.patch | 0
.../patches/03-change-config-option-prefix.patch | 0
.../patches/05-really-clean-everything.patch | 0
.../patches/06-br-build-system-integration.patch | 0
.../kconfig}/patches/08-make-write-deps.patch | 8 ++++----
.../patches/09-implement-kconfig-probability.patch | 0
.../kconfig}/patches/10-br-build-system.patch | 0
.../patches/11-use-mktemp-for-lxdialog.patch | 0
.../kconfig}/patches/12-fix-glade-file-path.patch | 8 ++++----
.../patches/14-support-out-of-tree-config.patch | 0
{package/config => support/kconfig}/patches/series | 0
{package/config => support/kconfig}/qconf.cc | 0
{package/config => support/kconfig}/qconf.h | 0
.../kconfig}/streamline_config.pl | 0
{package/config => support/kconfig}/symbol.c | 0
{package/config => support/kconfig}/util.c | 2 +-
{package/config => support/kconfig}/zconf.gperf | 0
.../kconfig}/zconf.hash.c_shipped | 0
{package/config => support/kconfig}/zconf.l | 0
.../config => support/kconfig}/zconf.tab.c_shipped | 0
{package/config => support/kconfig}/zconf.y | 0
57 files changed, 16 insertions(+), 16 deletions(-)
rename {package/config => support/kconfig}/.gitignore (100%)
rename {package/config => support/kconfig}/Makefile (100%)
rename {package/config => support/kconfig}/Makefile.br (100%)
rename {package/config => support/kconfig}/POTFILES.in (100%)
rename {package/config => support/kconfig}/README.buildroot2 (58%)
rename {package/config => support/kconfig}/check.sh (100%)
rename {package/config => support/kconfig}/conf.c (100%)
rename {package/config => support/kconfig}/confdata.c (100%)
rename {package/config => support/kconfig}/expr.c (100%)
rename {package/config => support/kconfig}/expr.h (100%)
rename {package/config => support/kconfig}/foo.h (100%)
rename {package/config => support/kconfig}/gconf.c (99%)
rename {package/config => support/kconfig}/gconf.glade (100%)
rename {package/config => support/kconfig}/images.c (100%)
rename {package/config => support/kconfig}/kconfig_load.c (100%)
rename {package/config => support/kconfig}/kxgettext.c (100%)
rename {package/config => support/kconfig}/lex.zconf.c_shipped (100%)
rename {package/config => support/kconfig}/lkc.h (100%)
rename {package/config => support/kconfig}/lkc_proto.h (100%)
rename {package/config => support/kconfig}/lxdialog/.gitignore (100%)
rename {package/config => support/kconfig}/lxdialog/BIG.FAT.WARNING (100%)
rename {package/config => support/kconfig}/lxdialog/check-lxdialog.sh (100%)
rename {package/config => support/kconfig}/lxdialog/checklist.c (100%)
rename {package/config => support/kconfig}/lxdialog/dialog.h (100%)
rename {package/config => support/kconfig}/lxdialog/inputbox.c (100%)
rename {package/config => support/kconfig}/lxdialog/menubox.c (100%)
rename {package/config => support/kconfig}/lxdialog/textbox.c (100%)
rename {package/config => support/kconfig}/lxdialog/util.c (100%)
rename {package/config => support/kconfig}/lxdialog/yesno.c (100%)
rename {package/config => support/kconfig}/mconf.c (100%)
rename {package/config => support/kconfig}/menu.c (100%)
rename {package/config => support/kconfig}/nconf.c (100%)
rename {package/config => support/kconfig}/nconf.gui.c (100%)
rename {package/config => support/kconfig}/nconf.h (100%)
rename {package/config => support/kconfig}/patches/01-kconfig-kernel-to-buildroot.patch (100%)
rename {package/config => support/kconfig}/patches/02-cpp-comments-to-c-comments.patch (100%)
rename {package/config => support/kconfig}/patches/03-change-config-option-prefix.patch (100%)
rename {package/config => support/kconfig}/patches/05-really-clean-everything.patch (100%)
rename {package/config => support/kconfig}/patches/06-br-build-system-integration.patch (100%)
rename {package/config => support/kconfig}/patches/08-make-write-deps.patch (96%)
rename {package/config => support/kconfig}/patches/09-implement-kconfig-probability.patch (100%)
rename {package/config => support/kconfig}/patches/10-br-build-system.patch (100%)
rename {package/config => support/kconfig}/patches/11-use-mktemp-for-lxdialog.patch (100%)
rename {package/config => support/kconfig}/patches/12-fix-glade-file-path.patch (73%)
rename {package/config => support/kconfig}/patches/14-support-out-of-tree-config.patch (100%)
rename {package/config => support/kconfig}/patches/series (100%)
rename {package/config => support/kconfig}/qconf.cc (100%)
rename {package/config => support/kconfig}/qconf.h (100%)
rename {package/config => support/kconfig}/streamline_config.pl (100%)
rename {package/config => support/kconfig}/symbol.c (100%)
rename {package/config => support/kconfig}/util.c (99%)
rename {package/config => support/kconfig}/zconf.gperf (100%)
rename {package/config => support/kconfig}/zconf.hash.c_shipped (100%)
rename {package/config => support/kconfig}/zconf.l (100%)
rename {package/config => support/kconfig}/zconf.tab.c_shipped (100%)
rename {package/config => support/kconfig}/zconf.y (100%)Makefile +1 -1
@@ -32,7 +32,7 @@ export BR2_VERSION:=2011.08 # absolute path TOPDIR:=$(shell pwd) CONFIG_CONFIG_IN=Config.in -CONFIG=package/config +CONFIG=support/kconfig DATE:=$(shell date +%Y%m%d) # Compute the full local version string so packages can use it as-is
support/kconfig/.gitignore renamed from package/config/.gitignore +0 -0
support/kconfig/Makefile renamed from package/config/Makefile +0 -0
support/kconfig/Makefile.br renamed from package/config/Makefile.br +0 -0
support/kconfig/POTFILES.in renamed from package/config/POTFILES.in +0 -0
support/kconfig/README.buildroot2 renamed from package/config/README.buildroot2 +5 -5
@@ -1,15 +1,15 @@ -This is a copy of the kconfig code in the kernel (currently 2.6.36-rc1) tweaked +This is a copy of the kconfig code in the kernel (currently 2.6.37-rc1) tweaked to suit Buildroot. To update: - cp -r /usr/src/linux/scripts/kconfig package/config.new - cd package/config.new - cp -a ../config/patches ../config/README.buildroot2 . + cp -r /usr/src/linux/scripts/kconfig support/kconfig.new + cd support/config.new + cp -a ../kconfig/patches ../kconfig/README.buildroot2 . quilt push -a # Fix any conflict cd .. rm -rf config - mv config.new config + mv kconfig.new kconfig Then verify the toplevel targets work: config
support/kconfig/check.sh renamed from package/config/check.sh +0 -0
support/kconfig/conf.c renamed from package/config/conf.c +0 -0
support/kconfig/confdata.c renamed from package/config/confdata.c +0 -0
support/kconfig/expr.c renamed from package/config/expr.c +0 -0
support/kconfig/expr.h renamed from package/config/expr.h +0 -0
support/kconfig/foo.h renamed from package/config/foo.h +0 -0
support/kconfig/gconf.c renamed from package/config/gconf.c +1 -1
@@ -1521,7 +1521,7 @@ int main(int ac, char *av[])/* Determine GUI path */ env =getenv (SRCTREE );if (env) - glade_file =g_strconcat (env,"/package/config/gconf.glade" ,NULL ); + glade_file =g_strconcat (env,"/support/kconfig/gconf.glade" ,NULL );else if (av[0 ][0 ] =='/' ) glade_file =g_strconcat (av[0 ],".glade" ,NULL );else
support/kconfig/gconf.glade renamed from package/config/gconf.glade +0 -0
support/kconfig/images.c renamed from package/config/images.c +0 -0
support/kconfig/kconfig_load.c renamed from package/config/kconfig_load.c +0 -0
support/kconfig/kxgettext.c renamed from package/config/kxgettext.c +0 -0
support/kconfig/lex.zconf.c_shipped renamed from package/config/lex.zconf.c_shipped +0 -0
support/kconfig/lkc.h renamed from package/config/lkc.h +0 -0
support/kconfig/lkc_proto.h renamed from package/config/lkc_proto.h +0 -0
support/kconfig/lxdialog/.gitignore renamed from package/config/lxdialog/.gitignore +0 -0
support/kconfig/lxdialog/BIG.FAT.WARNING renamed from package/config/lxdialog/BIG.FAT.WARNING +0 -0
support/kconfig/lxdialog/check-lxdialog.sh renamed from package/config/lxdialog/check-lxdialog.sh +0 -0
support/kconfig/lxdialog/checklist.c renamed from package/config/lxdialog/checklist.c +0 -0
support/kconfig/lxdialog/dialog.h renamed from package/config/lxdialog/dialog.h +0 -0
support/kconfig/lxdialog/inputbox.c renamed from package/config/lxdialog/inputbox.c +0 -0
support/kconfig/lxdialog/menubox.c renamed from package/config/lxdialog/menubox.c +0 -0
support/kconfig/lxdialog/textbox.c renamed from package/config/lxdialog/textbox.c +0 -0
support/kconfig/lxdialog/util.c renamed from package/config/lxdialog/util.c +0 -0
support/kconfig/lxdialog/yesno.c renamed from package/config/lxdialog/yesno.c +0 -0
support/kconfig/mconf.c renamed from package/config/mconf.c +0 -0
support/kconfig/menu.c renamed from package/config/menu.c +0 -0
support/kconfig/nconf.c renamed from package/config/nconf.c +0 -0
support/kconfig/nconf.gui.c renamed from package/config/nconf.gui.c +0 -0
support/kconfig/nconf.h renamed from package/config/nconf.h +0 -0
support/kconfig/patches/01-kconfig-kernel-to-buildroot.patch renamed from package/config/patches/01-kconfig-kernel-to-buildroot.patch +0 -0
support/kconfig/patches/02-cpp-comments-to-c-comments.patch renamed from package/config/patches/02-cpp-comments-to-c-comments.patch +0 -0
support/kconfig/patches/03-change-config-option-prefix.patch renamed from package/config/patches/03-change-config-option-prefix.patch +0 -0
support/kconfig/patches/05-really-clean-everything.patch renamed from package/config/patches/05-really-clean-everything.patch +0 -0
support/kconfig/patches/06-br-build-system-integration.patch renamed from package/config/patches/06-br-build-system-integration.patch +0 -0
support/kconfig/patches/08-make-write-deps.patch renamed from package/config/patches/08-make-write-deps.patch +4 -4
@@ -2,10 +2,10 @@ util.c | 117 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 116 insertions(+), 1 deletion(-) -Index: config/util.c +Index: kconfig/util.c =================================================================== ---- config.orig/util.c -+++ config/util.c +--- kconfig.orig/util.c ++++ kconfig/util.c @@ -29,6 +29,121 @@ return file; }
@@ -60,7 +60,7 @@ Index: config/util.c + if (!out) + return 1; + fprintf(out, "# ATTENTION! This does not handle 'depends', just 'select'! \n" -+ "# See package/config/util.c write_make_deps()\n#\n"); ++ "# See support/kconfig/util.c write_make_deps()\n#\n"); + menu = &rootmenu;//rootmenu.list; + while (menu) { + sym = menu->sym;
support/kconfig/patches/09-implement-kconfig-probability.patch renamed from package/config/patches/09-implement-kconfig-probability.patch +0 -0
support/kconfig/patches/10-br-build-system.patch renamed from package/config/patches/10-br-build-system.patch +0 -0
support/kconfig/patches/11-use-mktemp-for-lxdialog.patch renamed from package/config/patches/11-use-mktemp-for-lxdialog.patch +0 -0
support/kconfig/patches/12-fix-glade-file-path.patch renamed from package/config/patches/12-fix-glade-file-path.patch +4 -4
@@ -2,16 +2,16 @@ gconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -Index: config/gconf.c +Index: kconfig/gconf.c =================================================================== ---- config.orig/gconf.c -+++ config/gconf.c +--- kconfig.orig/gconf.c ++++ kconfig/gconf.c @@ -1521,7 +1521,7 @@ /* Determine GUI path */ env = getenv(SRCTREE); if (env) - glade_file = g_strconcat(env, "/scripts/kconfig/gconf.glade", NULL); -+ glade_file = g_strconcat(env, "/package/config/gconf.glade", NULL); ++ glade_file = g_strconcat(env, "/support/kconfig/gconf.glade", NULL); else if (av[0][0] == '/') glade_file = g_strconcat(av[0], ".glade", NULL); else
support/kconfig/patches/14-support-out-of-tree-config.patch renamed from package/config/patches/14-support-out-of-tree-config.patch +0 -0
support/kconfig/patches/series renamed from package/config/patches/series +0 -0
support/kconfig/qconf.cc renamed from package/config/qconf.cc +0 -0
support/kconfig/qconf.h renamed from package/config/qconf.h +0 -0
support/kconfig/streamline_config.pl renamed from package/config/streamline_config.pl +0 -0
support/kconfig/symbol.c renamed from package/config/symbol.c +0 -0
support/kconfig/util.c renamed from package/config/util.c +1 -1
@@ -79,7 +79,7 @@ static int write_make_deps(const char *name)if (!out)return 1 ;fprintf (out,"# ATTENTION! This does not handle 'depends', just 'select'! \n" -"# See package/config/util.c write_make_deps()\n#\n" ); +"# See support/kconfig/util.c write_make_deps()\n#\n" ); menu = &rootmenu;//rootmenu.list; while (menu) { sym = menu->sym;
support/kconfig/zconf.gperf renamed from package/config/zconf.gperf +0 -0
support/kconfig/zconf.hash.c_shipped renamed from package/config/zconf.hash.c_shipped +0 -0
support/kconfig/zconf.l renamed from package/config/zconf.l +0 -0
support/kconfig/zconf.tab.c_shipped renamed from package/config/zconf.tab.c_shipped +0 -0
support/kconfig/zconf.y renamed from package/config/zconf.y +0 -0
Signature · 1 line
1.7.4.1
PATCH 7/7 support: move package/gnuconfig to support/gnuconfig
In reply to Thomas PetazzoniThe CONFIG_UPDATE macro is no longer defined in package/gnuconfig/gnuconfig.mk, but instead in package/Makefile.autotools.in. It it also changed a little bit to take the directory of the package sources as argument, and the AUTOTARGETS infrastructure is updated to use this macro.
---
Makefile | 2 +-
package/Makefile.autotools.in | 24 +++++++++++++++----
package/cups/cups.mk | 2 +-
package/gettext/gettext.mk | 3 +-
package/gnuconfig/README.buildroot | 20 ----------------
package/gnuconfig/gnuconfig.mk | 3 --
package/lmbench/lmbench.mk | 2 +-
{package => support}/gnuconfig/.cvsignore | 0
support/gnuconfig/README.buildroot | 25 ++++++++++++++++++++
{package => support}/gnuconfig/config.guess | 0
{package => support}/gnuconfig/config.sub | 0
.../gnuconfig/patches/config.guess.uclibc.patch | 0
.../gnuconfig/patches/config.sub.ps2.patch | 0
support/scripts/pkg-stats | 1 -
toolchain/elf2flt/elf2flt.mk | 2 +-
toolchain/gcc/gcc-uclibc-4.x.mk | 2 +-
toolchain/gdb/gdb.mk | 2 +-
17 files changed, 51 insertions(+), 37 deletions(-)
delete mode 100644 package/gnuconfig/README.buildroot
delete mode 100644 package/gnuconfig/gnuconfig.mk
rename {package => support}/gnuconfig/.cvsignore (100%)
create mode 100644 support/gnuconfig/README.buildroot
rename {package => support}/gnuconfig/config.guess (100%)
rename {package => support}/gnuconfig/config.sub (100%)
rename {package => support}/gnuconfig/patches/config.guess.uclibc.patch (100%)
rename {package => support}/gnuconfig/patches/config.sub.ps2.patch (100%)Makefile +1 -1
@@ -193,7 +193,7 @@ unexport CFLAGS unexport CXXFLAGS unexport GREP_OPTIONS -GNU_HOST_NAME:=$(shell package/gnuconfig/config.guess) +GNU_HOST_NAME:=$(shell support/gnuconfig/config.guess) ############################################################# #
package/Makefile.autotools.in +19 -5
@@ -22,6 +22,23 @@ # ################################################################################ + +# +# Utility function to upgrade config.sub and config.guess files +# +# argument 1 : directory into which config.guess and config.sub need +# to be updated. Note that config.sub and config.guess are searched +# recursively in this directory. +# +define CONFIG_UPDATE + echo $(1) + for file in config.guess config.sub; do \ + for i in $$(find $(1) -name $$file); do \ + cp support/gnuconfig/$$file $$i; \ + done; \ + done +endef + ################################################################################ # AUTOTARGETS_INNER -- defines how the configuration, compilation and # installation of an autotools package should be done, implements a
@@ -131,11 +148,8 @@ endif # Hook to update config.sub and config.guess if needed # define UPDATE_CONFIG_HOOK - for file in config.guess config.sub; do \ - for i in $$$$(find $$(@D) -name $$$$file); do \ - cp package/gnuconfig/$$$$file $$$$i; \ - done; \ - done + @$$(call MESSAGE, "Updating config.sub and config.guess") + $$(call CONFIG_UPDATE,$$(@D)) endef $(2)_POST_PATCH_HOOKS += UPDATE_CONFIG_HOOK
package/cups/cups.mk +1 -1
@@ -70,7 +70,7 @@ $(DL_DIR)/$(CUPS_SOURCE): $(CUPS_DIR)/.unpacked: $(DL_DIR)/$(CUPS_SOURCE) $(CUPS_CAT) $(DL_DIR)/$(CUPS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - support/scripts/apply-patches.sh $(CUPS_DIR) package/cups/ \*.patch - $(CONFIG_UPDATE) $(CUPS_DIR) + $(call CONFIG_UPDATE,$(CUPS_DIR)) touch $@ $(CUPS_DIR)/.configured: $(CUPS_DIR)/.unpacked
package/gettext/gettext.mk +1 -2
@@ -25,8 +25,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) - support/scripts/apply-patches.sh $(GETTEXT_DIR) package/gettext/ gettext\*.patch - $(CONFIG_UPDATE) $(@D) - $(CONFIG_UPDATE) $(GETTEXT_DIR)/build-aux + $(call CONFIG_UPDATE,$(@D)) touch $@ ifneq ($(BR2_TOOLCHAIN_BUILDROOT),y)
package/gnuconfig/README.buildroot deleted +0 -20
@@ -1,20 +0,0 @@ ---- ABOUT --- -This isnt a real package, it just exists to easily update the -config.sub / config.guess files in packages to the latest version -(since many bundled ones don't support the latest possible targets) - ---- HOWTO --- -To use, just add this to your unpack rule in the package.mk: -$(CONFIG_UPDATE) $(PACKAGE_DIR)/ - ---- UPDATE --- -GNU config is now managed in git, so to update: - -# git clone git://git.savannah.gnu.org/config.git -# cp config/config.* . -# for p in $(ls patches/*.patch); do patch -p0 < $p; done -# rm -rf config - -A few local customizations are used to support uClibc so you may -have to make sure they're still needed. The patches are broken -out in the patches/ dir to keep things simple.
package/gnuconfig/gnuconfig.mk deleted +0 -3
@@ -1,3 +0,0 @@ -# See README.buildroot -gnuconfig-source: -CONFIG_UPDATE = cp -f package/gnuconfig/config.sub package/gnuconfig/config.guess
package/lmbench/lmbench.mk +1 -1
@@ -8,7 +8,7 @@ LMBENCH_SOURCE:=lmbench-$(LMBENCH_VERSION).tgz LMBENCH_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/lmbench/development/lmbench-3.0-a9/ define LMBENCH_CONFIGURE_CMDS - $(CONFIG_UPDATE) $(@D) + $(call CONFIG_UPDATE,$(@D)) sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile sed -i '/cd .*doc/d' $(@D)/src/Makefile sed -i '/include/d' $(@D)/src/Makefile
support/gnuconfig/.cvsignore renamed from package/gnuconfig/.cvsignore +0 -0
support/gnuconfig/README.buildroot new file +25 -0
@@ -0,0 +1,25 @@ +--- HOWTO --- +If your package uses config.guess and/or config.sub, then it probably +relies on the autotools as its build system. In this case, you should +use the AUTOTARGETS infrastructure, which will take care of updating +the config.guess and/or config.sub files appropriately. See the +Buildroot documentation for details about the AUTOTARGETS +infrastructure. + +If for some reason your package does not use the AUTOTARGETS +infrastructure, you can request the config.guess and/or config.sub +files of your package to be updated by using: + + $(call CONFIG_UPDATE,directory-of-your-package-sources) + +--- UPDATE --- +GNU config is now managed in git, so to update: + +# git clone git://git.savannah.gnu.org/config.git +# cp config/config.* . +# for p in $(ls patches/*.patch); do patch -p0 < $p; done +# rm -rf config + +A few local customizations are used to support uClibc so you may +have to make sure they're still needed. The patches are broken +out in the patches/ dir to keep things simple.
support/gnuconfig/config.guess renamed from package/gnuconfig/config.guess +0 -0
support/gnuconfig/config.sub renamed from package/gnuconfig/config.sub +0 -0
support/gnuconfig/patches/config.guess.uclibc.patch renamed from package/gnuconfig/patches/config.guess.uclibc.patch +0 -0
support/gnuconfig/patches/config.sub.ps2.patch renamed from package/gnuconfig/patches/config.sub.ps2.patch +0 -0
support/scripts/pkg-stats +0 -1
@@ -81,7 +81,6 @@ for i in $(find package/ -name '*.mk') ; do $i = "package/games/games.mk" -o \ $i = "package/multimedia/multimedia.mk" -o \ $i = "package/customize/customize.mk" -o \ - $i = "package/gnuconfig/gnuconfig.mk" -o \ $i = "package/matchbox/matchbox.mk" -o \ $i = "package/x11r7/x11r7.mk" ; then echo "skipping $i" 1>&2
toolchain/elf2flt/elf2flt.mk +1 -1
@@ -14,7 +14,7 @@ $(ELF2FLT_DIR)/.unpacked: touch $@ $(ELF2FLT_DIR)/.patched: $(ELF2FLT_DIR)/.unpacked - $(CONFIG_UPDATE) $(@D) + $(call CONFIG_UPDATE,$(@D)) touch $@ $(ELF2FLT_DIR)/.configured: $(ELF2FLT_DIR)/.patched
toolchain/gcc/gcc-uclibc-4.x.mk +1 -1
@@ -200,7 +200,7 @@ $(GCC_DIR)/.unpacked: $(DL_DIR)/$(GCC_SOURCE) mkdir -p $(TOOLCHAIN_DIR) rm -rf $(GCC_DIR) $(GCC_CAT) $(DL_DIR)/$(GCC_SOURCE) | tar -C $(TOOLCHAIN_DIR) $(TAR_OPTIONS) - - $(CONFIG_UPDATE) $(@D) + $(call CONFIG_UPDATE,$(@D)) touch $@ gcc-patched: $(GCC_DIR)/.patched
toolchain/gdb/gdb.mk +1 -1
@@ -38,7 +38,7 @@ endif ifneq ($(wildcard $(GDB_PATCH_DIR)),) support/scripts/apply-patches.sh $(GDB_DIR) $(GDB_PATCH_DIR) \*.patch $(GDB_PATCH_EXTRA) endif - $(CONFIG_UPDATE) $(@D) + $(call CONFIG_UPDATE,$(@D)) touch $@ gdb-patched: $(GDB_DIR)/.unpacked
Signature · 1 line
1.7.4.1
PATCH 7/7 support: move package/gnuconfig to support/gnuconfig
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> The CONFIG_UPDATE macro is no longer defined in
Thomas> package/gnuconfig/gnuconfig.mk, but instead in
Thomas> package/Makefile.autotools.in. It it also changed a little bit to take Thomas> the directory of the package sources as argument, and the AUTOTARGETS Thomas> infrastructure is updated to use this macro.
Thomas> +
Thomas> +#
Thomas> +# Utility function to upgrade config.sub and config.guess files Thomas> +#
Thomas> +# argument 1 : directory into which config.guess and config.sub need Thomas> +# to be updated. Note that config.sub and config.guess are searched Thomas> +# recursively in this directory.
Thomas> +#
Thomas> +define CONFIG_UPDATE
Thomas> + echo $(1)
Thomas> + for file in config.guess config.sub; do \
I've dropped the echo with wrong indentation, otherwise it looks good - Thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 7/7 support: move package/gnuconfig to support/gnuconfig
Le Sat, 17 Sep 2011 08:23:15 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 1 line
I've dropped the echo with wrong indentation, otherwise it looks good
Indeed, it was a leftover from the debugging session. Sorry for this and thanks for fixing it.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Thomas" == Thomas Petazzoni <[email protected]> writes:
Thomas> Hello,
Thomas> This set of patches basically creates a new support/ directory, which Thomas> is used to group various files needed for the operation of Buildroot Thomas> which didn't fit properly in other directories :
Thomas> * The various scripts in the scripts/ directory (after removing the
Thomas> unused, unmaintained ones)
Thomas> * The libtool related patches
Thomas> * The patch-kernel.sh script, after renaming it to a more sensible
Thomas> name.
Thomas> * The kconfig stuff
Thomas> * The gnuconfig stuff (config.guess and config.sub)
Thomas> Best regards,
Committed entire series, thanks!
Signature · 1 line
Bye, Peter Korsgaard
Le Sat, 17 Sep 2011 08:23:43 +0200,
Peter Korsgaard <[email protected]> a ?crit :
Quoted 1 line
Committed entire series, thanks!
Thanks a lot for taking the time to review.
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com