# HG changeset patch # User Pascal Bellard # Date 1296125813 -3600 # Node ID da0fd74ac96dbfe5477d662befac71f67e8ca094 # Parent b82864bfba600b92adc85b5f1a2c50c7ba9ba040 busybox: do not duplicate code diff -r b82864bfba60 -r da0fd74ac96d busybox/receipt --- a/busybox/receipt Thu Jan 27 11:52:18 2011 +0100 +++ b/busybox/receipt Thu Jan 27 11:56:53 2011 +0100 @@ -12,8 +12,7 @@ WGET_URL="http://www.busybox.net/downloads/$TARBALL" CONFIG_FILES="/etc/dnsd.conf /etc/inetd.conf /etc/udhcpd.conf /etc/resolv.conf" -# Rules to compile & install the temporary toolchain. -cook_tmp_toolchain() +apply_bb_patchs() { cd $src while read file; do @@ -30,6 +29,12 @@ cmdline.u EOT cp ../stuff/$PACKAGE-$VERSION.config .config +} + +# Rules to compile & install the temporary toolchain. +cook_tmp_toolchain() +{ + apply_bb_patchs { make oldconfig && make && make CONFIG_PREFIX=/tools install @@ -41,21 +46,7 @@ # Rules to configure and make the package. compile_rules() { - cd $src - while read file; do - [ -f done.$file ] && continue - echo "Apply $file..." - patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1 - touch done.$file - done <