htcdream-openmoko

David Lanzendörfer david.lanzendoerfer at o2s.ch
Tue Sep 8 18:27:08 CEST 2009


Patch onto openmoko.git on git.openmoko.org for compiling htcdream-openmoko:
<attachment>

lg leviathan
-------------- next part --------------
commit 436db7a97fa636f1c02d741d8185de60b0a978f2
Author: David Lanzend?rfer <david.lanzendoerfer at o2s.ch>
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}"
+
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.openmoko.org/pipermail/devel/attachments/20090908/fcba88f7/attachment.pgp 


More information about the devel mailing list