mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Daniel Kriesten <daniel.kriesten@etit.tu-chemnitz.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] Using PTXdist on Mac OS
Date: Tue, 17 Apr 2012 13:08:12 +0200	[thread overview]
Message-ID: <1B5EB76D-CF79-4E04-A49E-E4C9A49AF0BE@etit.tu-chemnitz.de> (raw)
In-Reply-To: <20120410183557.GA7335@regiomontanus.bwalle.de>


[-- Attachment #1.1.1: Type: text/plain, Size: 2005 bytes --]

Dear Bernhard,

First of all thanks for the great work on porting ptxdist to mac! Since 2010 I tried using it from time to time on my mac, but alway went back to our Linux compute servers for one reason or an other.

I'm using a "quiet modified" version of 10.6 (python27, ncurses, coreutils, git, and several others form macports). So my system is probably not a reference system at all. But 

So, following your your document I end up with a working tool-chain, a working qemu-arm-softmmu and a working kernel, but no hdd img.
I had to fix 
.../lib/ptxdist-2012.04.0/scripts/genhdimg
replacing seq by gseq. But the better approach may be a symlink in .../lib/ptxdist-2012.04.0/bin/

The next point is concerning the files system on a Mac. AFAIR the default filesystem is the case insensitive version of HFS+ (this is definitely true up to 10.6). So the OSELAS tool-chain rejects to build. And further on some of the packages will also fail. Obvious, there are two solutions. Using an external disk with a case sensitive file system (e.g. HFSX, ext*) ore using a (sparse) image as a container. I decided to use the latter approach.

The last point I tumbled over is the git command on page 10:
% git am git clone git://git.qemu.org/qemu.git
Whats the purpose of this command? Is it really needed?

An other thing is xargs ... without the gnu version make distclean fails. The solution is to symlink in .../lib/ptxdist-2012.04.0/bin/, too.

Finally I added two patches to reflect these changes. May be the second patch (Makefile.in) still needs some work to be in its final state. I am not sure, in which make targets the 

Am 10.04.2012 um 20:35 schrieb Bernhard Walle:

> I think all comments are integrated now. I uploaded a new PDF version
> at http://www.bwalle.de/docs/ptxdist_mac.pdf. Thanks to Jürgen and
> Andreas for the feedback. The Changelog can be viewed with GIT
> at https://bitbucket.org/bwalle/ptxdist-macos-doc, the PDFs are tagged.
> 

Regards
	Daniel


[-- Attachment #1.1.2: 0001-check-for-GNU-seq-and-GNU-xargs.patch --]
[-- Type: application/octet-stream, Size: 856 bytes --]

From 895b6a946aa928aa62b2a328dab3fe55cf0b99a3 Mon Sep 17 00:00:00 2001
From: Daniel Kriesten <krid@tu-chemnitz.eu>
Date: Tue, 17 Apr 2012 11:32:23 +0200
Subject: [PATCH 1/2] check for GNU seq and GNU xargs

On Mac OS X 10.6 seq is not available by default. And MacPorts creates
no symlink to /opt/local/bin.
BSD xargs does not accept the '-r' option.

Signed-off-by: Daniel Kriesten <krid@tu-chemnitz.eu>
---
 configure.ac |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/configure.ac b/configure.ac
index 44c2448..d83059a 100755
--- a/configure.ac
+++ b/configure.ac
@@ -147,6 +147,8 @@ GNU_TOOL(install, coreutils)
 GNU_TOOL(stat, coreutils)
 GNU_TOOL(mknod, coreutils)
 GNU_TOOL(readlink, coreutils)
+GNU_TOOL(seq, coreutils)
+GNU_TOOL(xargs, findutils)
 GNU_TOOL(tar, tar)
 GNU_TOOL(find, findutils)
 
-- 
1.7.10


[-- Attachment #1.1.3: 0002-Use-tools-as-identified-by-configure.patch --]
[-- Type: application/octet-stream, Size: 1465 bytes --]

From 53c92e68491e4405193e240e69b3b1dff0405dd2 Mon Sep 17 00:00:00 2001
From: Daniel Kriesten <krid@tu-chemnitz.eu>
Date: Tue, 17 Apr 2012 11:44:45 +0200
Subject: [PATCH 2/2] Use tools as identified by configure

The configure script checks for several (GNU) tools to exist and saves
their PATH. Thus the Makefile should use the saved PATH as well.

Signed-off-by: Daniel Kriesten <krid@tu-chemnitz.eu>
---
 Makefile.in |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 8382402..02a9e5f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -62,8 +62,8 @@ environment:
 	@echo " done"
 
 clean:
-	@rm -f .done
-	@find "$(abs_srcdir)/bin" -type l -print0 | xargs -r -0 rm
+	@"$(abs_srcdir)/bin/rm" -f .done
+	@"$(abs_srcdir)/bin/find" "$(abs_srcdir)/bin" -type l -print0 | "$(abs_srcdir)/bin/xargs" -r -0 rm
 	@$(MAKE) -C "$(abs_srcdir)/scripts/kconfig" clean
 
 dirty-check:
@@ -113,12 +113,12 @@ dist: dirty-check
 	md5sum "${project}.tar.bz2" > "${project}.tar.bz2.md5"
 
 distclean: clean
-	rm -fr Makefile
-	rm -fr build-stamp
-	rm -fr config.log config.status autom4te.cache
+	"$(abs_srcdir)/bin/rm" -fr Makefile
+	"$(abs_srcdir)/bin/rm" -fr build-stamp
+	"$(abs_srcdir)/bin/rm" -fr config.log config.status autom4te.cache
 
 maintainer-clean: distclean
-	rm -f configure
+	"$(abs_srcdir)/bin/rm" -f configure
 
 release:
 	@scripts/make_$@.sh
-- 
1.7.10


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4964 bytes --]

[-- Attachment #2: Type: text/plain, Size: 48 bytes --]

-- 
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2012-04-17 11:08 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-09 17:11 Bernhard Walle
2012-04-09 17:48 ` Juergen Beisert
2012-04-10  9:37   ` Bernhard Walle
2012-04-09 18:01 ` Andreas Bießmann
2012-04-09 18:59   ` Bernhard Walle
2012-04-09 19:47     ` Juergen Beisert
2012-04-09 20:04     ` Andreas Bießmann
2012-04-09 20:48     ` Andreas Bießmann
2012-04-10  9:04       ` Bernhard Walle
2012-04-10 18:35         ` Bernhard Walle
2012-04-17 11:08           ` Daniel Kriesten [this message]
2012-04-17 11:24             ` Michael Olbrich
2012-04-17 11:45               ` Bernhard Walle
2012-04-17 11:59                 ` Daniel Kriesten
2012-04-17 12:03                   ` Bernhard Walle
2012-04-17 12:32                     ` Daniel Kriesten
2012-04-18  8:29                 ` Michael Olbrich
2012-04-18 11:25                   ` Daniel Kriesten
2012-04-18 14:16                     ` Michael Olbrich
2012-04-18 14:28                       ` Daniel Kriesten
2012-04-19 10:41                         ` Daniel Kriesten
2012-04-19 11:29                           ` Andreas Bießmann
2012-04-19 12:04                             ` Daniel Kriesten
2012-04-19 12:25                               ` Andreas Bießmann
2012-04-19 13:12                                 ` Daniel Kriesten
2012-04-19 13:27                                   ` Michael Olbrich
2012-04-19 14:03                                   ` Andreas Bießmann
2012-04-19 20:13                                   ` Bernhard Walle
2012-12-08 15:31                                 ` Daniel Kriesten
2012-12-08 15:43                                   ` [ptxdist] Using PTXdist on Mac OS 10.7 Daniel Kriesten
2012-12-10  8:48                                     ` Michael Olbrich
2012-12-10  8:46                                   ` [ptxdist] Using PTXdist on Mac OS Michael Olbrich
2012-12-11 15:00                                     ` Daniel Kriesten
2012-12-12 11:00                                       ` Michael Olbrich
2012-04-17 11:48             ` Bernhard Walle
2012-04-17 12:04               ` Daniel Kriesten
2012-04-17 12:18                 ` Bernhard Walle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1B5EB76D-CF79-4E04-A49E-E4C9A49AF0BE@etit.tu-chemnitz.de \
    --to=daniel.kriesten@etit.tu-chemnitz.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox