[Buildroot] Using global patch dir to patch "host-*" packages from buildroot
Yann E. MORIN
yann.morin.1998 at free.fr
Tue Aug 23 08:32:02 UTC 2016
Pascal, All,
On 2016-08-23 07:12 +0000, Pascal K spake thusly:
> Hello everyone,
>
> I tried to upgrade my build system from gcc 4.9 to 6. So far only a few
> patches are needed.
> All of those patches have to be in packages for the host.
>
> So my question is how to keep those patches out of my clean checkout of
> buildroot?
Patches can only be applied to packages sources, not to Buildroot
itself.
> If I set the global patch dir and put the patch e.g. for ucl-1.03 into this
> dir, the mk file I was about to patch is not found. I am not sure how to
> configure the path to point to the host-ucl-1.03.
>
> *Here the build error that occurs:*
>
> >>> host-ucl 1.03 Patching
>
> Applying 0002-gcc6-build-fix.patch using patch:
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- a/ucl.mk
> |+++ b/ucl.mk
> --------------------------
> No file to patch. Skipping patch.
> 1 out of 1 hunk ignored
> Patch failed! Please fix 0002-gcc6-build-fix.patch!
>
>
> *My Patch: *
> --- a/ucl.mk
> +++ b/ucl.mk
> @@ -9,4 +9,7 @@
> UCL_LICENSE = GPLv2+
> UCL_LICENSE_FILES = COPYING
>
> +# Fix ACC conformance test failure for host gcc 6.xx
> +HOST_UCL_CONF_ENV += CPPFLAGS="$(HOST_CPPFLAGS) -std=c90"
> +
> $(eval $(host-autotools-package))
>
> *Folder with the patch:*
> ../Develop/EmbeddedLinux/emblx/board/IPETRONIK/common/patches/ucl/
> *Folder to apply the patch to:*
> ../Develop/EmbeddedLinux/emblx/buildroot/package/ucl/
>
> Any suggestions?
Patch Buildroot itself and send us the patches! ;-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
More information about the buildroot
mailing list