Ricardo Kekki escreveu:
>There is. Some one should add it to the wiki.
>
>For patching the gcc you can put the patches in the
>sb-toolchains/patch_files/cc directory. After that add to the used toolchain
>configuration file the line:
>CC_PATCHES = <patch1> <patch2> ...
>
>The same way you can also patch the other components. Just replace the cc
>with binutils, libc or headers.
>
>Ricardo
>
>
>Bruno de Oliveira Abinader wrote:
>
>
>
>>Hi Ricardo, thanks for the help. I visited scratchbox's wiki and
>>followed the instructions on the wiki. Everything's fine but I need to
>>apply a patch on some gcc files before making the toolchain, is there a
>>special way to do that (like putting the patch file name on a script) or
>>just apply it normally?
>>
>>[]s
>>
>>
>>
>>
>>
>
>_______________________________________________
>Scratchbox-devel mailing list
>[email protected]
>http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel
>
>
Ricardo, as I figured out today, I was having a double job putting the
patches sums into every checksum to make it work, but after looking at
the main Makefile I found that there is a command "make
CONFIG={your_config} all-sums" that make this job for you. Other thing
is that if you make a customized toolchain config you have to {temporary
fix, as it says} put the name of your toolchain config inside
device_tools/strace/Makefile, like this example:
... line 35 of device_tools/strace/Makefile:
# Temporary hack
ifeq ($(TARGETNAME),arm-linux-gcc3.4.cs-glibc2.3)
post-patch:
patch -d $(WORKDIR) -p1 < files/fix.patch
$(MAKECOOKIE)
endif
ifeq ($(TARGETNAME),arm-linux-gcc3.3-glibc2.3)
post-patch:
patch -d $(WORKDIR) -p1 < files/fix.patch
$(MAKECOOKIE)
endif
+ifeq ($(TARGETNAME),{*your_custom_config*})
+post-patch:
+ patch -d $(WORKDIR) -p1 < files/fix.patch
+ $(MAKECOOKIE)
+endif
This stuff is very useful for ones who are trying to make customized
toolchains. It would be good if somebody put this on the wiki page.
Thanks anyway for the support!
[]s
_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel