[ptxdist] [PATCH 2/2] kernel: Use host-elf-h-compat

2012-01-24 Thread Bernhard Walle
Set the host include flags of the Linux kernel so that it finds elf.h in sysroot-host/include. It's required to specify HOST_EXTRACFLAGS in the environment rather than as make argument because otherwise += doesn't work which ends in other build errors (gettext problems). See also http://article.gm

[ptxdist] [PATCH 1/2] Add host-elf-h-compat package

2012-01-24 Thread Bernhard Walle
This package should provide on host operating systems that have no /usr/include/elf.h. The header is copied from glibc, modified a bit to remove GNU dependencies and is sufficient to compile the Linux kernel and module-init-tools. The package itself only checks if elf.h is present. If yes, it doe

[ptxdist] Fix missing elf.h on Darwin (v2)

2012-01-24 Thread Bernhard Walle
This is the second version of the patches. The third patch is not needed any more because host-elf-h-compat is now built as base package rather than as dependency. All other remarks of the review have been integrated in the patch series. The package is maintained at https://bitbucket.org/bwalle/el

Re: [ptxdist] Report bug : Qt , Xorg

2012-01-24 Thread Juergen Beisert
Hi Barhoumi, barhoumi mohtadi wrote: > I'm trying to re-build an embedded kernel with this time adding Xorg and Qt > as new libraries ( i have succeded to run a minimal kernel before) But the > problem, is that i have received this error when running PTXdist images > > last lines from the logfile

Re: [ptxdist] X.org on mini2440

2012-01-24 Thread Juergen Beisert
Hi Guillermo, Guillermo Rodriguez wrote: > I am playing with ptxdist (2011.12.0) on a mini2440 board and wanted to > test X.org on it. > > After some tweaking I have managed to successfully run X, but wanted to > share some issues I've found along the way. > > I enabled X.org with the framebuffer

[ptxdist] [PATCH] Support reading number of CPUs on Darwin and BSDs

2012-01-24 Thread Bernhard Walle
Tested on Mac OS 10.7 (Lion). Signed-off-by: Bernhard Walle --- v2: Use /usr/sbin/sysctl instead of relying on the $PATH and don't check for the operating system but just try it out. bin/ptxdist |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/bin/ptxdist b/bin/pt

[ptxdist] X.org on mini2440

2012-01-24 Thread Guillermo Rodriguez
Dear all, I am playing with ptxdist (2011.12.0) on a mini2440 board and wanted to test X.org on it. After some tweaking I have managed to successfully run X, but wanted to share some issues I've found along the way. I enabled X.org with the framebuffer driver, evdev for touchscreen input, and

Re: [ptxdist] [PATCH] Support reading number of CPUs on Mac OS X

2012-01-24 Thread Bernhard Walle
Hi Michael, Am 24.01.12 10:19, schrieb Michael Olbrich: > > - Is sysctl alwyas in $PATH? On Linux it's in sbin. I think so, but it's in /usr/sbin, so I can use /usr/sbin/syctl to be more safe. > - the value should be quoted. ok. > - Does this _always_ and _only_ work on Mac OS X? Good point.

[ptxdist] Report bug : Qt , Xorg

2012-01-24 Thread barhoumi mohtadi
Hello, I'm trying to re-build an embedded kernel with this time adding Xorg and Qt as new libraries ( i have succeded to run a minimal kernel before) But the problem, is that i have received this error when running PTXdist images last lines from the logfile g++ -o "/home/c2a/OSELAS.BSP-Peng

[ptxdist] [PATCH] Add tslib dependency to SDL

2012-01-24 Thread Juergen Beisert
The SDL configure stage guesses if the tslib is available. So, if touchscreen support is available at runtime or not depends on the build order. This patch fixes the build order on demand. Reported-by: Wingston Sharon Signed-off-by: Juergen Beisert diff --git a/rules/sdl.in b/rules/sdl.in index

Re: [ptxdist] [PATCH 2/3] kernel: Use host-elf-h-compat

2012-01-24 Thread Michael Olbrich
On Sun, Jan 22, 2012 at 12:43:14PM +0100, Bernhard Walle wrote: > Add a dependency to the host tool and set the include flags properly. > > Signed-off-by: Bernhard Walle > --- > platforms/hosttools.in |1 + > platforms/kernel.in|1 + > rules/kernel.make |1 + > 3 files chang

Re: [ptxdist] [PATCH] Support reading number of CPUs on Mac OS X

2012-01-24 Thread Michael Olbrich
On Sun, Jan 22, 2012 at 09:47:47PM +0100, Bernhard Walle wrote: > Tested on 10.7 (Lion). > > Signed-off-by: Bernhard Walle > --- > bin/ptxdist |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/bin/ptxdist b/bin/ptxdist > index 74a52ad..4edbac3 100755 > --- a/bin/ptx