Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Intel Edison support
@ 2015-04-16 12:33 Frank Hunleth
  2015-04-16 21:19 ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Hunleth @ 2015-04-16 12:33 UTC (permalink / raw)
  To: buildroot

Hi all,

I have support for the Intel Edison working in Buildroot. It took a while
to figure out everything that Intel's Yocto distribution was doing, but
after you simplify it down, it doesn't seem so bad. I'd send the patch up
for review, but it is dwarfed by two massive patch files on u-boot and the
kernel that I had to copy from Intel's Yocto distro [1]. It seems better if
BR could download the Yocto distro, extract the patch files, and use them
when needed. It also doesn't seem right for BR to have to carry around a
couple mega-patches. Is this possible and is there an example somewhere?

If you would like to see my current patches for Edison support, they are
available here: https://github.com/fhunleth/buildroot-edison.

Thanks,
Frank

[1] http://www.intel.com/support/edison/sb/CS-035180.htm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150416/7fe67c47/attachment.html>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Intel Edison support
  2015-04-16 12:33 [Buildroot] Intel Edison support Frank Hunleth
@ 2015-04-16 21:19 ` Arnout Vandecappelle
  2015-04-16 22:50   ` Frank Hunleth
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2015-04-16 21:19 UTC (permalink / raw)
  To: buildroot

On 16/04/15 14:33, Frank Hunleth wrote:
> Hi all,
> 
> I have support for the Intel Edison working in Buildroot. It took a while to
> figure out everything that Intel's Yocto distribution was doing, but after you
> simplify it down, it doesn't seem so bad. I'd send the patch up for review, but
> it is dwarfed by two massive patch files on u-boot and the kernel that I had to
> copy from Intel's Yocto distro [1]. It seems better if BR could download the
> Yocto distro, extract the patch files, and use them when needed. It also doesn't
> seem right for BR to have to carry around a couple mega-patches. Is this
> possible and is there an example somewhere?
> 
> If you would like to see my current patches for Edison support, they are
> available here: https://github.com/fhunleth/buildroot-edison.

 There is a github upload of the official Edison yocto layer at [2]. You could
download the relevant patches from there with BR2_LINUX_KERNEL_PATCH. When you
do that, please make sure that the sha is included in the URL, so [3] and not [4].

 Regards,
 Arnout


> [1] http://www.intel.com/support/edison/sb/CS-035180.htm

[2] https://github.com/instantinfrastructure/edison-src
[3]
https://raw.githubusercontent.com/instantinfrastructure/edison-src/7002c964adb5a69cabdd11346769a7a1b66a8c01/device-software/meta-edison/recipes-kernel/linux/files/upstream_to_edison.patch
[4]
https://raw.githubusercontent.com/instantinfrastructure/edison-src/device-software/meta-edison/recipes-kernel/linux/files/upstream_to_edison.patch


-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Intel Edison support
  2015-04-16 21:19 ` Arnout Vandecappelle
@ 2015-04-16 22:50   ` Frank Hunleth
  2015-04-17  7:22     ` Arnout Vandecappelle
  0 siblings, 1 reply; 5+ messages in thread
From: Frank Hunleth @ 2015-04-16 22:50 UTC (permalink / raw)
  To: buildroot

On Thu, Apr 16, 2015 at 5:19 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>
> On 16/04/15 14:33, Frank Hunleth wrote:
> > Hi all,
> >
> > I have support for the Intel Edison working in Buildroot. It took a while to
> > figure out everything that Intel's Yocto distribution was doing, but after you
> > simplify it down, it doesn't seem so bad. I'd send the patch up for review, but
> > it is dwarfed by two massive patch files on u-boot and the kernel that I had to
> > copy from Intel's Yocto distro [1]. It seems better if BR could download the
> > Yocto distro, extract the patch files, and use them when needed. It also doesn't
> > seem right for BR to have to carry around a couple mega-patches. Is this
> > possible and is there an example somewhere?
> >
> > If you would like to see my current patches for Edison support, they are
> > available here: https://github.com/fhunleth/buildroot-edison.
>
>  There is a github upload of the official Edison yocto layer at [2]. You could
> download the relevant patches from there with BR2_LINUX_KERNEL_PATCH. When you
> do that, please make sure that the sha is included in the URL, so [3] and not [4].

Thanks. I'll try that for the kernel.

At the moment, u-boot only supports patch directories, so I can't
download the mega-patch for it. I was going to copy/paste the patch
support from the kernel, but the kernel's patch support looks more
involved than I expected. I'm not missing a generic patch macro
somewhere, am I?

Thanks,
Frank

>
>  Regards,
>  Arnout
>
>
> > [1] http://www.intel.com/support/edison/sb/CS-035180.htm
>
> [2] https://github.com/instantinfrastructure/edison-src
> [3]
> https://raw.githubusercontent.com/instantinfrastructure/edison-src/7002c964adb5a69cabdd11346769a7a1b66a8c01/device-software/meta-edison/recipes-kernel/linux/files/upstream_to_edison.patch
> [4]
> https://raw.githubusercontent.com/instantinfrastructure/edison-src/device-software/meta-edison/recipes-kernel/linux/files/upstream_to_edison.patch
>
>
> --
> Arnout Vandecappelle                          arnout at mind be
> Senior Embedded Software Architect            +32-16-286500
> Essensium/Mind                                http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F




-- 
Frank Hunleth
Troodon Software LLC
Embedded Software Development
http://troodon-software.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Intel Edison support
  2015-04-16 22:50   ` Frank Hunleth
@ 2015-04-17  7:22     ` Arnout Vandecappelle
  2015-04-17 20:29       ` Frank Hunleth
  0 siblings, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2015-04-17  7:22 UTC (permalink / raw)
  To: buildroot

On 17/04/15 00:50, Frank Hunleth wrote:
> On Thu, Apr 16, 2015 at 5:19 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>>
>> On 16/04/15 14:33, Frank Hunleth wrote:
>>> Hi all,
>>>
>>> I have support for the Intel Edison working in Buildroot. It took a while to
>>> figure out everything that Intel's Yocto distribution was doing, but after you
>>> simplify it down, it doesn't seem so bad. I'd send the patch up for review, but
>>> it is dwarfed by two massive patch files on u-boot and the kernel that I had to
>>> copy from Intel's Yocto distro [1]. It seems better if BR could download the
>>> Yocto distro, extract the patch files, and use them when needed. It also doesn't
>>> seem right for BR to have to carry around a couple mega-patches. Is this
>>> possible and is there an example somewhere?
>>>
>>> If you would like to see my current patches for Edison support, they are
>>> available here: https://github.com/fhunleth/buildroot-edison.
>>
>>  There is a github upload of the official Edison yocto layer at [2]. You could
>> download the relevant patches from there with BR2_LINUX_KERNEL_PATCH. When you
>> do that, please make sure that the sha is included in the URL, so [3] and not [4].
> 
> Thanks. I'll try that for the kernel.
> 
> At the moment, u-boot only supports patch directories, so I can't
> download the mega-patch for it. I was going to copy/paste the patch
> support from the kernel, but the kernel's patch support looks more
> involved than I expected. I'm not missing a generic patch macro
> somewhere, am I?

 The complexity for linux is simply because historically it also supports
directories of patches. If you exclude that feature, it's simply:

UBOOT_PATCH += $(call qstrip,$(BR2_TARGET_UBOOT_PATCHES))

 If you do that, we should probably also deprecate the current special handling
of BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR.


 Actually, perhaps we should consider extending the BR2_GLOBAL_PATCH_DIR to
support some kind of URL-encoded patches. E.g. *.urlpatch, or dead symlinks to
URLs, or something. Sounds like something for Yann to work on :-)

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] Intel Edison support
  2015-04-17  7:22     ` Arnout Vandecappelle
@ 2015-04-17 20:29       ` Frank Hunleth
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Hunleth @ 2015-04-17 20:29 UTC (permalink / raw)
  To: buildroot

On Fri, Apr 17, 2015 at 3:22 AM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On 17/04/15 00:50, Frank Hunleth wrote:
>> On Thu, Apr 16, 2015 at 5:19 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
>>>
>>> On 16/04/15 14:33, Frank Hunleth wrote:
>>>> Hi all,
>>>>
>>>> I have support for the Intel Edison working in Buildroot. It took a while to
>>>> figure out everything that Intel's Yocto distribution was doing, but after you
>>>> simplify it down, it doesn't seem so bad. I'd send the patch up for review, but
>>>> it is dwarfed by two massive patch files on u-boot and the kernel that I had to
>>>> copy from Intel's Yocto distro [1]. It seems better if BR could download the
>>>> Yocto distro, extract the patch files, and use them when needed. It also doesn't
>>>> seem right for BR to have to carry around a couple mega-patches. Is this
>>>> possible and is there an example somewhere?
>>>>
>>>> If you would like to see my current patches for Edison support, they are
>>>> available here: https://github.com/fhunleth/buildroot-edison.
>>>
>>>  There is a github upload of the official Edison yocto layer at [2]. You could
>>> download the relevant patches from there with BR2_LINUX_KERNEL_PATCH. When you
>>> do that, please make sure that the sha is included in the URL, so [3] and not [4].
>>
>> Thanks. I'll try that for the kernel.
>>
>> At the moment, u-boot only supports patch directories, so I can't
>> download the mega-patch for it. I was going to copy/paste the patch
>> support from the kernel, but the kernel's patch support looks more
>> involved than I expected. I'm not missing a generic patch macro
>> somewhere, am I?
>
>  The complexity for linux is simply because historically it also supports
> directories of patches. If you exclude that feature, it's simply:
>
> UBOOT_PATCH += $(call qstrip,$(BR2_TARGET_UBOOT_PATCHES))
>
>  If you do that, we should probably also deprecate the current special handling
> of BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR.

Thanks. I implemented your suggestion and it works for me. I just
submitted a patch series for further review.

Thanks,
Frank

>
>
>  Actually, perhaps we should consider extending the BR2_GLOBAL_PATCH_DIR to
> support some kind of URL-encoded patches. E.g. *.urlpatch, or dead symlinks to
> URLs, or something. Sounds like something for Yann to work on :-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-04-17 20:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 12:33 [Buildroot] Intel Edison support Frank Hunleth
2015-04-16 21:19 ` Arnout Vandecappelle
2015-04-16 22:50   ` Frank Hunleth
2015-04-17  7:22     ` Arnout Vandecappelle
2015-04-17 20:29       ` Frank Hunleth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox