From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Petazzoni Date: Fri, 15 Mar 2013 11:01:29 +0100 Subject: [Buildroot] Adding a patch in a different directory In-Reply-To: References: Message-ID: <20130315110129.2454684f@skate> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Dear Simon Dawson, On Fri, 15 Mar 2013 07:30:56 +0000, Simon Dawson wrote: > On 15 March 2013 00:50, Charles Manning wrote: > > What I would like to do is get buildroot to use the patch in foo/patches. > > > > Any ideas how to achieve this? > > I submitted a patch a while ago to add support for custom package patches: > > http://patchwork.ozlabs.org/patch/222260/ > > The patch has not been accepted as of this writing, but you can > achieve your goal by adding something like the following to your > local.mk We discussed this at the Buildroot Developers Meeting, and we agreed on a model for patches, that would apply to both "internal" patches and "external" patches. The report of the meeting contains: """ Change of the patch logic * For the patches stored in the package directory, if package/// does exist, apply package///*.patch, otherwise, apply package//*.patch * For the patches stored in the global patches directory, if $(GLOBAL_PATCH_DIR)/// does exist, apply $(GLOBAL_PATCH_DIR)///*.patch, otherwise, apply $(GLOBAL_PATCH_DIR)//*.patch """ Best regards, Thomas -- Thomas Petazzoni, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com