On Feb 26 2014 3:04 PM, Sebastian Kuzminsky wrote:
> On 2/26/14 13:53 , EBo wrote:
>> I was pinging one of the official Gentoo dev's concerning a couple 
>> of
>> tools I use and a recent new release... Long story short, we started 
>> a
>> discussion on setting up formal ebuilds for LinuxCNC again, 
>> supporting
>> the sys-kernel/rt-sources.  Is there a place in the repository to 
>> set up
>> an experimental distro intended for embedded controllers?  If so, 
>> what
>> is the preferred location, etc.
>
> That's cool.  I know next to nothing about gentoo, what's involved in
> setting up an ebuild?
>
> There is a *lot* of build & packaging infrastructure in LinuxCNC, and
> all of it currently assumes we're building debs.  I think John Morris
> has worked on rpm support, but i don't know what the state of that 
> is.
>
> I think the way to add Gentoo support would be to start a feature 
> branch
> (off master), and add the ebuild stuff there.  Whatever control files 
> &
> build scripts you need would live next to the (untouched) 
> deb-building
> infrastructure in that branch.
>
> Beware that for interesting (ie, non-sim) builds, you'll need to 
> provide
> realtime kernels.  Maybe Gentoo already has this, i dont know.  
> Debian
> (and Ubuntu) did not, and a lot of hassle & effort goes into 
> providing
> realtime kernel packages for linuxcnc to build against.

As mentioned before, several of these emails got buried in a recent 
avalanche...

re: ebuilds...

The easist way is to take a look at Gentoo's Ebuild Quick Start guide 
http://devmanual.gentoo.org/quickstart/.  Once you get the hang of 
things, it is REALLY nice to be able to control the complete dependency 
graph.  In addition, there are tools like eselect -- which allows you to 
have multiple versions of the same package and switch between them (like 
I have Python-2.6 through 3.3 all installed at the same time).

I should mention that philosophically, Gentoo started out as a "build 
from source" distro.  So, once you build a rt-kernel, the ebuild can be 
configured to target that.  The interesting thing will be is if we can 
somehow set it up to support multiple kernels at the same time.  I am 
thinking of something along the lines of xenomai on BBB, RPi, and/or 
UDOO, and have everything installed in /opt/gentoocnc/BBB ... for all 
packed installs (including kernels).  Just a thought, and I am not sure 
that this would work.  Oh,  I just noticed that gentoo has a supported 
sys-kernel/raspberrypi-sources with version 3.6 to 3.12 currently 
supported.  I am not sure if the BBB has something similar, but I would 
not be all that surprised...

As a further note, this is similar to how Gentoo deals with profiles.  
These can be switched between by ding an "eselect profile list", and on 
my server I get:

Available profile symlink targets:
   [1]   default/linux/amd64/13.0
   [2]   default/linux/amd64/13.0/selinux
   [3]   default/linux/amd64/13.0/desktop
   [4]   default/linux/amd64/13.0/desktop/gnome
   [5]   default/linux/amd64/13.0/desktop/gnome/systemd
   [6]   default/linux/amd64/13.0/desktop/kde *
   [7]   default/linux/amd64/13.0/desktop/kde/systemd
   [8]   default/linux/amd64/13.0/developer
   [9]   default/linux/amd64/13.0/no-multilib
   [10]  default/linux/amd64/13.0/x32
   [11]  hardened/linux/amd64
   [12]  hardened/linux/amd64/selinux
   [13]  hardened/linux/amd64/no-multilib
   [14]  hardened/linux/amd64/no-multilib/selinux
   [15]  hardened/linux/amd64/x32
   [16]  hardened/linux/uclibc/amd64

I also see that they have profiles for both arm and arm64, so much of 
the work may already be done...

re: location...

Before reading this we set up a sourceforge project.  We should be able 
to migrate over, but I think I would want to play over there before we 
settle on what infrastructure we will need.

re: rt-kernels...

There is currently a rt-kernel in Gentoo's main repository (or portage 
tree).  We are talking about setting up a series of ebuilds that 
specifically target building both hard-rt and preempt-rt kernels.

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to