Patch/Add Binary File to Source

View: New views
3 Messages — Rating Filter:   Alert me  

Patch/Add Binary File to Source

by netmana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,

I made a modification to the linux bootup logo
(linuxsrc/drivers/video/logo/logo_linux_224.ppm), and wanted to
create a patch for the linux26 kernel package.  However, patch or
scripts/Create-Diff could  not create
patch files for binary data.  I would like to know what is the easiest
way to add a binary file to a source
before building a package.

Currently, I cheated by breaking the build right before make, and
manually added the binary file and proceeded
with 'eval make $makeopt' etc....

Thank you,

Toan



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Parent Message unknown Re: Patch/Add Binary File to Source

by René Rebe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Toan,

Toan Pham wrote:

> Hi,
>
> I made a modification to the linux bootup logo
> (linuxsrc/drivers/video/logo/logo_linux_224.ppm), and wanted to
> create a patch for the linux26 kernel package.  However, patch or
> scripts/Create-Diff could  not create
> patch files for binary data.  I would like to know what is the easiest
> way to add a binary file to a source
> before building a package.
>
> Currently, I cheated by breaking the build right before make, and
> manually added the binary file and proceeded
> with 'eval make $makeopt' etc....
>  
aren't the Linux boot logos build from ASCII files for that reason

(just form the top of my memory, would need to take a look again)?



But, as last resort, there are also binary patch utilities available

(vdelta / xdelta etc.).



The easiest solution would probably to copy over the file in a premake

hook in your target/.../ *linunx26* overlay file.



Greetings,

  René

--
  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
  http://exactcode.de | http://t2-project.org | http://rene.rebe.name



-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2

Re: Patch/Add Binary File to Source

by netmana :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rene,

The linux boot logo is a binary file, which was converted from .png to .ppm .


Also, I am not sure how to copy over a file in a premake hook from a
location outside of a jailed root.
Do i first need to exit the jailed root, copy over the file, and
continue evaluating the next hook?  thank you,

Toan


On Mon, Apr 13, 2009 at 9:58 AM, René Rebe <rene@...> wrote:

> Hi Toan,
>
> Toan Pham wrote:
>>
>> Hi,
>>
>> I made a modification to the linux bootup logo
>> (linuxsrc/drivers/video/logo/logo_linux_224.ppm), and wanted to
>> create a patch for the linux26 kernel package.  However, patch or
>> scripts/Create-Diff could  not create
>> patch files for binary data.  I would like to know what is the easiest
>> way to add a binary file to a source
>> before building a package.
>>
>> Currently, I cheated by breaking the build right before make, and
>> manually added the binary file and proceeded
>> with 'eval make $makeopt' etc....
>>
>
> aren't the Linux boot logos build from ASCII files for that reason
>
> (just form the top of my memory, would need to take a look again)?
>
>
>
> But, as last resort, there are also binary patch utilities available
>
> (vdelta / xdelta etc.).
>
>
>
> The easiest solution would probably to copy over the file in a premake
>
> hook in your target/.../ *linunx26* overlay file.
>
>
>
> Greetings,
>
>  René
>
> --
>  René Rebe - ExactCODE GmbH - Europe, Germany, Berlin
>  http://exactcode.de | http://t2-project.org | http://rene.rebe.name
>
>

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
lists@... with a subject of: unsubscribe t2