* [Buildroot] patch: **** Only garbage was found in the patch input.
@ 2016-03-08 23:59 Johan Sagaert
2016-03-09 6:23 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Johan Sagaert @ 2016-03-08 23:59 UTC (permalink / raw)
To: buildroot
Hi
Applying 0001-logo.patch using patch:
patch: **** Only garbage was found in the patch input.
Patch failed! Please fix 0001-logo.patch!
I always use git format patch to create patches to use them
as usual in buildroot.
The modified files where image files, so this yields a binary patch.
It looks like patch does not understand the binary format that git
format patch creates.
Is there any workaround this or do i have to revert to the old diff
method for making patches
of non text files ?
Regards Johan
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] patch: **** Only garbage was found in the patch input.
2016-03-08 23:59 [Buildroot] patch: **** Only garbage was found in the patch input Johan Sagaert
@ 2016-03-09 6:23 ` Peter Korsgaard
2016-03-09 10:46 ` Johan Sagaert
0 siblings, 1 reply; 4+ messages in thread
From: Peter Korsgaard @ 2016-03-09 6:23 UTC (permalink / raw)
To: buildroot
>>>>> "Johan" == Johan Sagaert <sagaert.johan@proximus.be> writes:
> Hi
> Applying 0001-logo.patch using patch:
> patch: **** Only garbage was found in the patch input.
> Patch failed! Please fix 0001-logo.patch!
> I always use git format patch to create patches to use them
> as usual in buildroot.
> The modified files where image files, so this yields a binary patch.
> It looks like patch does not understand the binary format that git
> format patch creates.
Indeed, gnu patch afaik doesn't support the binary git diff format.
> Is there any workaround this or do i have to revert to the old diff
> method for making patches
> of non text files ?
Is this patch really something that is needed to fix a build issue of
the package? From the file name it more sounds like som project specific
customization of the rootfs. If that is so, why not just include the
image in your rootfs overlay?
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] patch: **** Only garbage was found in the patch input.
2016-03-09 6:23 ` Peter Korsgaard
@ 2016-03-09 10:46 ` Johan Sagaert
2016-03-09 10:51 ` Peter Korsgaard
0 siblings, 1 reply; 4+ messages in thread
From: Johan Sagaert @ 2016-03-09 10:46 UTC (permalink / raw)
To: buildroot
Hi Peter ,
Op 9/03/2016 om 7:23 schreef Peter Korsgaard:
>>>>>> "Johan" == Johan Sagaert<sagaert.johan@proximus.be> writes:
> > Hi
> > Applying 0001-logo.patch using patch:
> > patch: **** Only garbage was found in the patch input.
> > Patch failed! Please fix 0001-logo.patch!
>
> > I always use git format patch to create patches to use them
> > as usual in buildroot.
> > The modified files where image files, so this yields a binary patch.
>
> > It looks like patch does not understand the binary format that git
> > format patch creates.
>
> Indeed, gnu patch afaik doesn't support the binary git diff format.
>
> > Is there any workaround this or do i have to revert to the old diff
> > method for making patches
> > of non text files ?
>
> Is this patch really something that is needed to fix a build issue of
> the package? From the file name it more sounds like som project specific
> customization of the rootfs. If that is so, why not just include the
> image in your rootfs overlay?
>
I have to replace a logo bitmap in the u-boot sources that are pulled
from a git repository .
So i will have to add a |PRE_BUILD_HOOK for the u-boot loader in this
case to replace the
logo bmp file before building, since diff cant create patches of binary
files.
Regards, Johan
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160309/077f46c8/attachment.html>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] patch: **** Only garbage was found in the patch input.
2016-03-09 10:46 ` Johan Sagaert
@ 2016-03-09 10:51 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2016-03-09 10:51 UTC (permalink / raw)
To: buildroot
>>>>> "Johan" == Johan Sagaert <sagaert.johan@proximus.be> writes:
Hi,
>> Is this patch really something that is needed to fix a build issue of
>> the package? From the file name it more sounds like som project specific
>> customization of the rootfs. If that is so, why not just include the
>> image in your rootfs overlay?
>>
> I have to replace a logo bitmap in the u-boot sources that are pulled
> from a git repository .
> So i will have to add a |PRE_BUILD_HOOK for the u-boot loader in this
> case to replace the
> logo bmp file before building, since diff cant create patches of
> binary files.
Or commit the logo change to u-boot git (possibly after cloning it
somewhere else if this is upstream u-boot git).
--
Venlig hilsen,
Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-09 10:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-08 23:59 [Buildroot] patch: **** Only garbage was found in the patch input Johan Sagaert
2016-03-09 6:23 ` Peter Korsgaard
2016-03-09 10:46 ` Johan Sagaert
2016-03-09 10:51 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox