All of lore.kernel.org
 help / color / mirror / Atom feed
* building on os x
@ 2015-12-21  9:43 Belisko Marek
  2015-12-21 10:51 ` Burton, Ross
  0 siblings, 1 reply; 6+ messages in thread
From: Belisko Marek @ 2015-12-21  9:43 UTC (permalink / raw)
  To: yocto

Hi,

I did check internet before asking but there is not much reference. So
sorry for stupid question but it is possible to build e.g.
core-image-minimal on os x natively? I read something about
meta-darwin but I'm not sure if it's what I'm looking for ( IIRC it's
for creating SDK for osx). Anybody tried that? Many thanks.

BR,

marek

-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


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

* Re: building on os x
  2015-12-21  9:43 building on os x Belisko Marek
@ 2015-12-21 10:51 ` Burton, Ross
  2015-12-21 11:09   ` Jozef Maslik
  0 siblings, 1 reply; 6+ messages in thread
From: Burton, Ross @ 2015-12-21 10:51 UTC (permalink / raw)
  To: Belisko Marek; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

On 21 December 2015 at 09:43, Belisko Marek <marek.belisko@gmail.com> wrote:

> I did check internet before asking but there is not much reference. So
> sorry for stupid question but it is possible to build e.g.
> core-image-minimal on os x natively? I read something about
> meta-darwin but I'm not sure if it's what I'm looking for ( IIRC it's
> for creating SDK for osx). Anybody tried that? Many thanks.
>

I've patches to make bitbake work (there's a few linuxisms here and there)
but the biggest problem is that OSX doesn't use GCC and various recipes
fail to build properly.  It's a whole lot easier to use a Linux VM, you can
even do a minimal (non-graphical) install and SSH into it.

Ross

[-- Attachment #2: Type: text/html, Size: 1158 bytes --]

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

* Re: building on os x
  2015-12-21 10:51 ` Burton, Ross
@ 2015-12-21 11:09   ` Jozef Maslik
  2015-12-21 11:24     ` Burton, Ross
  0 siblings, 1 reply; 6+ messages in thread
From: Jozef Maslik @ 2015-12-21 11:09 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 1224 bytes --]

Hi,

my experience is almost same - faster and more comfortable way was use VM with minimal ubuntu installation (server version without GUI).

Anyway, are there any activities or plans to fix and support osx?

Regards,
Jozef


> On 21 Dec 2015, at 11:51, Burton, Ross <ross.burton@intel.com> wrote:
> 
> 
> On 21 December 2015 at 09:43, Belisko Marek <marek.belisko@gmail.com <mailto:marek.belisko@gmail.com>> wrote:
> I did check internet before asking but there is not much reference. So
> sorry for stupid question but it is possible to build e.g.
> core-image-minimal on os x natively? I read something about
> meta-darwin but I'm not sure if it's what I'm looking for ( IIRC it's
> for creating SDK for osx). Anybody tried that? Many thanks.
> 
> I've patches to make bitbake work (there's a few linuxisms here and there) but the biggest problem is that OSX doesn't use GCC and various recipes fail to build properly.  It's a whole lot easier to use a Linux VM, you can even do a minimal (non-graphical) install and SSH into it.
> 
> Ross
> -- 
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Type: text/html, Size: 2432 bytes --]

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

* Re: building on os x
  2015-12-21 11:09   ` Jozef Maslik
@ 2015-12-21 11:24     ` Burton, Ross
  2015-12-21 11:43       ` Belisko Marek
  2016-01-04  8:58       ` Clemens Lang
  0 siblings, 2 replies; 6+ messages in thread
From: Burton, Ross @ 2015-12-21 11:24 UTC (permalink / raw)
  To: Jozef Maslik; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 530 bytes --]

On 21 December 2015 at 11:09, Jozef Maslik <maslo@binarylemon.com> wrote:

> Anyway, are there any activities or plans to fix and support osx?
>

Well with El Capitan's improved security apparently crippling LD_PRELOAD
(so I hear, unverified currently), Pseudo won't work, which means an
alternative will need to be researched and implemented.  We really
recommend using a VM.  For what it's worth OSX supports hypervisors so
something like https://github.com/mist64/xhyve is free and should be very
efficient.

Ross

[-- Attachment #2: Type: text/html, Size: 1016 bytes --]

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

* Re: building on os x
  2015-12-21 11:24     ` Burton, Ross
@ 2015-12-21 11:43       ` Belisko Marek
  2016-01-04  8:58       ` Clemens Lang
  1 sibling, 0 replies; 6+ messages in thread
From: Belisko Marek @ 2015-12-21 11:43 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

On Mon, Dec 21, 2015 at 12:24 PM, Burton, Ross <ross.burton@intel.com> wrote:
>
> On 21 December 2015 at 11:09, Jozef Maslik <maslo@binarylemon.com> wrote:
>>
>> Anyway, are there any activities or plans to fix and support osx?
>
>
> Well with El Capitan's improved security apparently crippling LD_PRELOAD (so
> I hear, unverified currently), Pseudo won't work, which means an alternative
> will need to be researched and implemented.  We really recommend using a VM.
> For what it's worth OSX supports hypervisors so something like
> https://github.com/mist64/xhyve is free and should be very efficient.
Ah great. Thanks for all valuable infos.
>
> Ross

BR,

marek


-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
twitter: #opennandra
web: http://open-nandra.com


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

* Re: building on os x
  2015-12-21 11:24     ` Burton, Ross
  2015-12-21 11:43       ` Belisko Marek
@ 2016-01-04  8:58       ` Clemens Lang
  1 sibling, 0 replies; 6+ messages in thread
From: Clemens Lang @ 2016-01-04  8:58 UTC (permalink / raw)
  To: Burton, Ross; +Cc: yocto

On Mon, Dec 21, 2015 at 11:24:52AM +0000, Burton, Ross wrote:
> Well with El Capitan's improved security apparently crippling
> LD_PRELOAD (so I hear, unverified currently), Pseudo won't work, which
> means an alternative will need to be researched and implemented.

El Capitan has "System Integrity Protection", which is a flag on certain
files that now no longer can be changed, even with root privileges.
Pretty much all binaries in /usr/bin and /bin have this flag set, so it
does affect common things like the shell and compilers. The kernel
strips any variables affecting the loader (including
DYLD_INSERT_LIBRARIES, OS X' equivalent to LD_PRELOAD) when executables
with the SIP flag are started. So yes, this effectively kills library
preloading on OS X for anything but your own binaries.

I implemented a workaround in MacPorts, where we also use library
preloading for sanity checks that works by copying affected executables
(thus stripping the flag) and then running the copy instead. Of course,
this requires hooking execve(2) and posix_spawn(2), which I don't think
pseudo does at the moment.

The commit doing most of the grunt work is at
  http://trac.macports.org/changeset/141420
if somebody wants to give this a shot.


HTH,
Clemens
-- 
Clemens Lang • Development Specialist
BMW Car IT GmbH • Lise-Meitner-Str. 14 • 89081 Ulm • http://bmw-carit.com
-------------------------------------------------------------------------
BMW Car IT GmbH
Geschäftsführer: Michael Würtenberger und Reinhard Stolle
Sitz und Registergericht: München HRB 134810
-------------------------------------------------------------------------


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

end of thread, other threads:[~2016-01-04  9:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-21  9:43 building on os x Belisko Marek
2015-12-21 10:51 ` Burton, Ross
2015-12-21 11:09   ` Jozef Maslik
2015-12-21 11:24     ` Burton, Ross
2015-12-21 11:43       ` Belisko Marek
2016-01-04  8:58       ` Clemens Lang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.