Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 47/55] linux: support a space-separated list of patches
Date: Thu, 16 Dec 2010 22:34:18 +0100	[thread overview]
Message-ID: <878vzph06d.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1baf7aad49e6e48e95506af55611e18d70e4209d.1291582352.git.thomas.petazzoni@free-electrons.com> (Thomas Petazzoni's message of "Sun, 5 Dec 2010 21:53:18 +0100")

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> The kernel being a component that often needs a fairly important set
 Thomas> of changes to be adapted to a particular hardware platform, having
 Thomas> maximum flexibility on the patching process is a nice
 Thomas> thing. Therefore, as per the discussions from the Buildroot Developer
 Thomas> Day, we add a mechanism to apply a list of patches (that could come
 Thomas> either from URLs, local files or local directories).

 Thomas> +	for p in $(LINUX26_PATCH) ; do \
 Thomas> +		if echo $$p | grep -q -E "^ftp://|^http://" ; then \
 Thomas> +			toolchain/patch-kernel.sh $(@D) $(DL_DIR) `basename $$p` ; \
 Thomas> +		elif test -d $$p ; then \
 Thomas> +			toolchain/patch-kernel.sh $(@D) $$p linux-\*.patch ; \
 Thomas> +		else \
 Thomas> +			toolchain/patch-kernel.sh $(@D) `dirname $$p` `basename $$p` ; \
 Thomas> +		fi \

It would be a bit more efficient to do it in shell with a case
statement, E.G.:

case "$$p" in
     http://*|http://*)
        toolchain/patch-kernel ..
        ;;

     *)
        if [ -d $$p ]; then
        ..
esac

But not a big deal.

-- 
Bye, Peter Korsgaard

  reply	other threads:[~2010-12-16 21:34 UTC|newest]

Thread overview: 84+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-05 20:52 [Buildroot] [pull request] Pull request for branch for-2011.02/boards-cleanup Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 01/55] defconfigs: keep only one defconfig per board Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 02/55] Remove unused Atmel-specific mirror definitions Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 03/55] Update defconfigs after Atmel mirror related options removal Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 04/55] Remove completely useless set of Makefiles specific to Atmel Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 05/55] Remove useless target/device/mips Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 06/55] Move Config.in.mirrors out of target/device Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 07/55] Use the new BR2_ROOTFS_SKELETON_CUSTOM options Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 08/55] Remove mini device table, it isn't used Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 09/55] Stop referencing the crazy target/device stuff Thomas Petazzoni
2010-12-06  7:35   ` Thomas De Schampheleire
2010-12-06 19:43     ` Thomas Petazzoni
2010-12-07  7:26       ` Thomas De Schampheleire
2010-12-07 20:18         ` Thomas Petazzoni
2010-12-08  6:57           ` Thomas De Schampheleire
2010-12-05 20:52 ` [Buildroot] [PATCH 10/55] Remove all Config.in/Makefile.in files in target/device Thomas Petazzoni
     [not found]   ` <522C1DF17AF50042AD8AE87F7887BD3D01E0B5DDE7@exch.hq.tensilica.com>
2010-12-06 21:02     ` Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 11/55] Remove Busybox skeleton from target/device/Atmel Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 12/55] Remove crazy set of empty directories Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 13/55] Re-add target/generic/Config.in options to menuconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 14/55] documentation: Update to explain how board support works Thomas Petazzoni
2010-12-10  6:46   ` [Buildroot] skeleton updates Steve Calfee
2010-12-10 14:23     ` Heiko Zuerker
2010-12-10 16:34       ` Steve Calfee
2010-12-10 16:55         ` Heiko Zuerker
2010-12-11  4:37   ` [Buildroot] [PATCH 14/55] documentation: Update to explain how board support works Steve Calfee
2010-12-11 10:05     ` Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 15/55] at91bootstrap: switch to the official version Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 16/55] at91bootstrap: rename config options for consistency Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 17/55] board: update and minify at91sam9263ek_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 18/55] board: update and minify at91sam9261ek_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 19/55] board: update and minify at91sam9g20dfc_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 20/55] at91bootstrap: no board name check when 'make source' is used Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 21/55] dependencies: add unzip Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 22/55] u-boot: add U-Boot 2010.09 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 23/55] barebox: bump Barebox to 2010.11 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 24/55] board: minify integrator926_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 25/55] board: remove integrator926_huge_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 26/55] Remove useless kernel config files for integrator926 Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 27/55] board: remove i386/i686_defconfig Thomas Petazzoni
2010-12-05 20:52 ` [Buildroot] [PATCH 28/55] Minify arm_toolchain_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 29/55] Minify arm_nptl_toolchain_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 30/55] board: simplify atngw100 support Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 31/55] board: simplify kb9202 board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 32/55] board: update and minify at91rm9200df_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 33/55] board: update and minify at91sam9260dfc_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 34/55] board: remove support for at91sam9260pf Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 35/55] board: update and minimize atstk100x_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 36/55] board: remove atstk1005_defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 37/55] board: remove Valka v100sc2 Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 38/55] Remove the few remaining unused Atmel-specific bits Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 39/55] board: add Qemu Versatile defconfig Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 40/55] board: add support for Mini 2440 Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 41/55] board: add new Qemu x86 configuration file Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 42/55] u-boot: add CROSS_COMPILE/ARCH when building host tools Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 43/55] Free text field for serial port configuration Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 44/55] Add network scripting folders to fs/skeleton Thomas Petazzoni
2010-12-16 14:16   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 45/55] Create menu entry to select device creation method Thomas Petazzoni
2010-12-16 14:26   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 46/55] linux: Import minimal defconfigs as defconfigs Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 47/55] linux: support a space-separated list of patches Thomas Petazzoni
2010-12-16 21:34   ` Peter Korsgaard [this message]
2010-12-16 22:21     ` Mike Frysinger
2010-12-17  9:41       ` Peter Korsgaard
2010-12-17 13:35         ` Mike Frysinger
2010-12-05 20:53 ` [Buildroot] [PATCH 48/55] linux: always enable support for tmpfs in the kernel Thomas Petazzoni
2010-12-17 15:43   ` Peter Korsgaard
2010-12-05 20:53 ` [Buildroot] [PATCH 49/55] Improve handling of mdev/udev Thomas Petazzoni
2010-12-17 15:51   ` Peter Korsgaard
2011-03-07 18:52   ` William Wagner
2011-03-07 19:32     ` Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 50/55] xtensa: remove unused and useless skeleton patch Thomas Petazzoni
2010-12-06  1:08   ` Marc Gauthier
2010-12-06 19:48     ` Thomas Petazzoni
2010-12-08  5:45       ` Marc Gauthier
2010-12-06  1:22   ` Marc Gauthier
2010-12-05 20:53 ` [Buildroot] [PATCH 51/55] board: Add Qemu SH4 r2d configuration Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 52/55] linux: add support for ELF vmlinux image Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 53/55] board: Add a Qemu PPC g3beige board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 54/55] board: Add a Qemu mipsel Malta board Thomas Petazzoni
2010-12-05 20:53 ` [Buildroot] [PATCH 55/55] linux: add KERNEL_ARCH_PATH to fix x86-specific issue Thomas Petazzoni
2010-12-17 16:01 ` [Buildroot] [pull request] Pull request for branch for-2011.02/boards-cleanup Peter Korsgaard
2010-12-18 16:55   ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vzph06d.fsf@macbook.be.48ers.dk \
    --to=jacmet@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox