htcdream-openmoko

5 messages Options
Embed this post
Permalink
leviathan

htcdream-openmoko

Reply Threaded More More options
Print post
Permalink
Patch onto openmoko.git on git.openmoko.org for compiling htcdream-openmoko:
<attachment>

lg leviathan

commit 436db7a97fa636f1c02d741d8185de60b0a978f2
Author: David Lanzendörfer <[hidden email]>
Date:   Tue Sep 8 18:17:50 2009 +0200

    added htcdream and openmoko-msm

diff --git a/conf/machine/htcdream.conf b/conf/machine/htcdream.conf
new file mode 100644
index 0000000..70f38a7
--- /dev/null
+++ b/conf/machine/htcdream.conf
@@ -0,0 +1,15 @@
+#@TYPE: Machine
+#@NAME: HTC Kaiser phone
+#@DESCRIPTION: Machine configuration for HTC Kaiser phone (aka HTC TyTN II)
+require conf/machine/include/tune-arm1136-novfp.inc
+
+PREFERRED_PROVIDER_virtual/kernel = "openmoko-msm"
+
+PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
+XSERVER = "xserver-kdrive-fbdev"
+MACHINE_DISPLAY_WIDTH_PIXELS = "240"
+MACHINE_DISPLAY_HEIGHT_PIXELS = "320"
+
+MACHINE_FEATURES = "kernel26 touchscreen screen keyboard phone gps"
+
+IMAGE_FSTYPES += "tar.gz cpio.gz"
diff --git a/conf/machine/include/tune-arm1136-novfp.inc b/conf/machine/include/tune-arm1136-novfp.inc
new file mode 100644
index 0000000..372148e
--- /dev/null
+++ b/conf/machine/include/tune-arm1136-novfp.inc
@@ -0,0 +1,8 @@
+TARGET_ARCH = "arm"
+TARGET_CC_ARCH = "-march=armv6j -mtune=arm1136jf-s"
+
+# Not all kernels enable floating point emulation in the kernel, so we exclude 'armv6' for now
+FEED_ARCH = "armv6-novfp"
+BASE_PACKAGE_ARCH = "armv6-novfp"
+PACKAGE_EXTRA_ARCHS += "armv4 armv4t armv5te armv6-novfp"
+
diff --git a/packages/glibc/glibc-package.bbclass b/packages/glibc/glibc-package.bbclass
index 4cb0c55..feb4054 100644
--- a/packages/glibc/glibc-package.bbclass
+++ b/packages/glibc/glibc-package.bbclass
@@ -279,7 +279,7 @@ python package_do_split_gconvs () {
  if not qemu_options:
  qemu_options = bb.data.getVar('QEMU_OPTIONS', d, 1)
 
- cmd = "PATH=\"%s\" I18NPATH=\"%s\" %s -L %s %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, qemu_options, treedir, localedef_opts)
+ cmd = str("PATH=\"%s\" I18NPATH=\"%s\" %s -cpu any -L %s %s %s/bin/localedef %s" % (path, i18npath, qemu, treedir, qemu_options, treedir, localedef_opts)).replace("\"","")
  bb.note("generating locale %s (%s)" % (locale, encoding))
  if os.system(cmd):
  raise bb.build.FuncFailed("localedef returned an error (command was %s)." % cmd)
diff --git a/packages/linux/openmoko-msm_git.bb b/packages/linux/openmoko-msm_git.bb
new file mode 100644
index 0000000..eab29db
--- /dev/null
+++ b/packages/linux/openmoko-msm_git.bb
@@ -0,0 +1,11 @@
+require linux.inc
+
+PV = "2.6.29"
+PR = "r1"
+
+COMPATIBLE_MACHINE = "htcdream"
+
+SRC_URI = "http://ftp.o2s.ch/pub/openmoko-msm-2.6.29.tar.bz2"
+
+S = "${WORKDIR}"
+


_______________________________________________
devel mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/devel

signature.asc (205 bytes) Download Attachment
Michael 'Mickey' Lauer-2

Re: htcdream-openmoko

Reply Threaded More More options
Print post
Permalink
Thanks for your patch. Please note though that noone is working on the old OE
branch @ git.openmoko anymore.

It'd be better to crank a patch based on org.oe.dev.

:M:


_______________________________________________
devel mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/devel
leviathan

Re: htcdream-openmoko

Reply Threaded More More options
Print post
Permalink
> Thanks for your patch. Please note though that noone is working on the old
>  OE branch @ git.openmoko anymore.
Okee, I've now defined the machine and the kernel-file for the htcdream
platform (see attachment)

> It'd be better to crank a patch based on org.oe.dev.
Do you meen git://git.openembedded.org/openembedded;branch=fso/milestone5.5;
??

 
> :M:
leviathan

#@TYPE: Machine
#@NAME: HTC Dream phone
#@DESCRIPTION: Machine configuration for HTC Dream phone (aka T-Mobile G1)
require conf/machine/include/tune-arm1136-novfp.inc

PREFERRED_PROVIDER_virtual/kernel = "openmoko-msm"

PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
XSERVER = "xserver-kdrive-fbdev"
MACHINE_DISPLAY_WIDTH_PIXELS = "240"
MACHINE_DISPLAY_HEIGHT_PIXELS = "320"

MACHINE_FEATURES = "kernel26 touchscreen screen keyboard phone gps"

IMAGE_FSTYPES += "tar.gz cpio.gz"

require linux.inc

PV = "2.6.29"
PR = "r1"

COMPATIBLE_MACHINE = "htcdream"

SRC_URI = "git://gitorious.org/replicant/gnulinuxkernel.git;protocol=git;"

S = "${WORKDIR}"



_______________________________________________
devel mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/devel

signature.asc (205 bytes) Download Attachment
Klaus 'mrmoku' Kurzmann

Re: htcdream-openmoko

Reply Threaded More More options
Print post
Permalink
Am Donnerstag 01 Oktober 2009 22:19:47 schrieb David Lanzendörfer:

> > Thanks for your patch. Please note though that noone is working on the
> > old OE branch @ git.openmoko anymore.
>
> Okee, I've now defined the machine and the kernel-file for the htcdream
> platform (see attachment)
>
> > It'd be better to crank a patch based on org.oe.dev.
>
> Do you meen
>  git://git.openembedded.org/openembedded;branch=fso/milestone5.5; ??
branch=org.openembedded.dev is what he means.

>
> > :M:
>
> leviathan
>

--
Klaus 'mrmoku' Kurzmann

_______________________________________________
devel mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/devel
Frederik Sdun

Re: htcdream-openmoko

Reply Threaded More More options
Print post
Permalink
In reply to this post by leviathan
* David Lanzendörfer <[hidden email]> [02.10.2009 03:51]:

> > Thanks for your patch. Please note though that noone is working on the old
> >  OE branch @ git.openmoko anymore.
> Okee, I've now defined the machine and the kernel-file for the htcdream
> platform (see attachment)
>
> > It'd be better to crank a patch based on org.oe.dev.
> Do you meen git://git.openembedded.org/openembedded;branch=fso/milestone5.5;
> ??
>
>  
> > :M:
> leviathan
No, this one:
http://cgit.openembedded.org/cgit.cgi/openembedded/log/
Frederik

> #@TYPE: Machine
> #@NAME: HTC Dream phone
> #@DESCRIPTION: Machine configuration for HTC Dream phone (aka T-Mobile G1)
> require conf/machine/include/tune-arm1136-novfp.inc
>
> PREFERRED_PROVIDER_virtual/kernel = "openmoko-msm"
>
> PREFERRED_PROVIDER_virtual/xserver = "xserver-kdrive"
> XSERVER = "xserver-kdrive-fbdev"
> MACHINE_DISPLAY_WIDTH_PIXELS = "240"
> MACHINE_DISPLAY_HEIGHT_PIXELS = "320"
>
> MACHINE_FEATURES = "kernel26 touchscreen screen keyboard phone gps"
>
> IMAGE_FSTYPES += "tar.gz cpio.gz"

> require linux.inc
>
> PV = "2.6.29"
> PR = "r1"
>
> COMPATIBLE_MACHINE = "htcdream"
>
> SRC_URI = "git://gitorious.org/replicant/gnulinuxkernel.git;protocol=git;"
>
> S = "${WORKDIR}"
>



> _______________________________________________
> devel mailing list
> [hidden email]
> https://lists.openmoko.org/mailman/listinfo/devel


--
IRC: playya @ Freenode, Gimpnet
xmpp: [hidden email]


_______________________________________________
devel mailing list
[hidden email]
https://lists.openmoko.org/mailman/listinfo/devel

signature.asc (204 bytes) Download Attachment