[From nobody Fri Jun  5 12:26:49 2009
Return-path: &lt;community-bounces@lists.openmoko.org&gt;
Received: from d1-emea-09.sun.com ([192.18.2.119]) by gedge2-mail1.uk.sun.com
	(Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
	with ESMTP id &lt;0JAO00DWXL6JHO70@gedge2-mail1.uk.sun.com&gt; for
	tbarr@gedge2-mail1.UK.Sun.COM; Fri, 22 Dec 2006 15:18:20 +0000 (GMT)
Received: from conversion-daemon.d1-emea-09.sun.com by d1-emea-09.sun.com
	(Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
	id &lt;0JAO00201L5IK300@d1-emea-09.sun.com&gt; for
	tbarr@gedge2-mail1.UK.Sun.COM
	(ORCPT terrence.barr@sun.com); Fri, 22 Dec 2006 15:18:19 +0000 (GMT)
Received: from phys-gedge2-1.uk.sun.com ([129.156.43.16])
	by d1-emea-09.sun.com (Sun Java System Messaging Server 6.2-6.01 (built
	Apr 3 2006)) with ESMTP id &lt;0JAO00MTBL6I068K@d1-emea-09.sun.com&gt; for
	tbarr@gedge2-mail1.UK.Sun.COM (ORCPT terrence.barr@sun.com); Fri,
	22 Dec 2006 15:18:18 +0000 (GMT)
Received: from sun-gy.germany.sun.com ([129.157.128.5])
	by gedge2-mail1.uk.sun.com
	(Sun Java System Messaging Server 6.2-6.01 (built Apr  3 2006))
	with ESMTP id &lt;0JAO00DLFL6IHR70@gedge2-mail1.uk.sun.com&gt; for
	tbarr@gedge2-mail1.UK.Sun.COM (ORCPT terrence.barr@sun.com); Fri,
	22 Dec 2006 15:18:18 +0000 (GMT)
Received: from sunmail4.Singapore.Sun.COM
	(sunmail4.Singapore.Sun.COM [129.158.71.19])	by sun-gy.germany.sun.com
	(8.13.7+Sun/8.13.7/ENSMAIL,v2.2) with ESMTP id kBMFIH9s005284	for
	&lt;terrence.barr@germany.sun.com&gt;; Fri, 22 Dec 2006 16:18:18 +0100 (MET)
Received: from nwk-avmta-1.sfbay.sun.com
	(nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])	by
	sunmail4.Singapore.Sun.COM
	(8.13.4+Sun/8.13.3/ENSMAIL,v2.2) with ESMTP id kBMFI9XL027937	for
	&lt;@sunmail2.sfbay.sun.com:terrence.barr@sun.com&gt;; Fri,
	22 Dec 2006 23:18:13 +0800 (SGT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
	nwk-avmta-1.sfbay.Sun.COM
	(Sun Java System Messaging Server 6.2 (built Dec  2 2004))
	id &lt;0JAO00E06L6B0O00@nwk-avmta-1.sfbay.Sun.COM&gt; for
	terrence.barr@sun.com
	(ORCPT terrence.barr@sun.com); Fri, 22 Dec 2006 07:18:11 -0800 (PST)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
	by nwk-avmta-1.sfbay.Sun.COM
	(Sun Java System Messaging Server 6.2 (built Dec  2 2004))
	with ESMTP id &lt;0JAO00BU9L6AC860@nwk-avmta-1.sfbay.Sun.COM&gt; for
	terrence.barr@sun.com (ORCPT terrence.barr@sun.com); Fri,
	22 Dec 2006 07:18:11 -0800 (PST)
Received: from relay24.sun.com
	(ip192-12-251-74.block6.us.syntegra.com [192.12.251.74])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id
	kBMFIA6U001360	for
	&lt;terrence.barr@sun.com&gt;; Fri, 22 Dec 2006 08:18:10 -0700 (MST)
Received: from mms28es.sun.com ([150.143.232.154] [150.143.232.154])
	by relay24.sun.com with ESMTP for terrence.barr@sun.com; Fri,
	22 Dec 2006 15:18:09 +0000 (Z)
Received: from mms23bas.mms.us.syntegra.com
	(mms23bas.mms.us.syntegra.com [192.12.251.50]) by mms28es.sun.com with
	ESMTP for terrence.barr@sun.com; Fri, 22 Dec 2006 15:18:06 +0000 (Z)
Received: from sita.openmoko.org ([88.198.124.203] [88.198.124.203])
	by relay23.sun.com with ESMTP for terrence.barr@sun.com; Fri,
	22 Dec 2006 14:59:24 +0000 (Z)
Received: from localhost ([127.0.0.1] helo=sita.openmoko.org)
	by sita.openmoko.org with esmtp (Exim 4.50)	id 1GxlkG-0005qJ-LT; Fri,
	22 Dec 2006 15:51:36 +0100
Received: from smtp2.utsp.utwente.nl ([130.89.2.9] helo=smtp.utwente.nl)
	by sita.openmoko.org with esmtp (Exim 4.50)
	id 1Gxljx-0005q9-FX	for community@lists.openmoko.org; Fri,
	22 Dec 2006 15:51:30 +0100
Received: from [172.20.1.5] (dominion.kabel.utwente.nl [130.89.193.158])
	by smtp.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP
	id	kBMEpkox020731; Fri, 22 Dec 2006 15:51:46 +0100
Date: Fri, 22 Dec 2006 15:51:44 +0100
From: Koen Kooi &lt;koen@dominion.kabel.utwente.nl&gt;
Subject: Initial attempt to get cdc to build in OE (was: Re: Software
	Development)
In-reply-to: &lt;456F10F2.5060807@sun.com&gt;
Sender: community-bounces@lists.openmoko.org
To: community@lists.openmoko.org
Cc: Using the OpenEmbedded metadata to build Linux Distributions
	&lt;openembedded-devel@openembedded.org&gt;
Errors-to: community-bounces@lists.openmoko.org
Reply-to: koen@dominion.kabel.utwente.nl, community@lists.openmoko.org
Message-id: &lt;458BF100.1090602@dominion.kabel.utwente.nl&gt;
X-Envelope-from: Terrence.Barr@Sun.COM
X-Envelope-to: community@lists.openmoko.org, trister12@yahoo.com
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 7BIT
Precedence: list
X-BeenThere: community@lists.openmoko.org
X-PMX-Version: 5.2.0.264296
X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact
	helpdesk@ITBE.utwente.nl for more information.
X-UTwente-MailScanner: Found to be clean
X-UTwente-MailScanner-From: koen@dominion.kabel.utwente.nl
X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on sita.openmoko.org
References: &lt;BAY102-W7D12C0528A63863A6E8F3D6E40@phx.gbl&gt;
	&lt;456EA72F.1060507@sun.com&gt; &lt;456EBA6B.90501@dominion.kabel.utwente.nl&gt;
	&lt;456F10F2.5060807@sun.com&gt;
X-Mailman-Version: 2.1.5
List-Post: &lt;mailto:community@lists.openmoko.org&gt;
List-Subscribe: &lt;http://lists.openmoko.org/mailman/listinfo/community&gt;,
	&lt;mailto:community-request@lists.openmoko.org?subject=subscribe&gt;
List-Unsubscribe: &lt;http://lists.openmoko.org/mailman/listinfo/community&gt;,
	&lt;mailto:community-request@lists.openmoko.org?subject=unsubscribe&gt;
List-Archive: &lt;http://lists.openmoko.org/pipermail/community&gt;
List-Help: &lt;mailto:community-request@lists.openmoko.org?subject=help&gt;
List-Id: List for OpenMoko community discussion &lt;community.lists.openmoko.org&gt;
User-Agent: Thunderbird 1.5.0.9 (Macintosh/20061207)
Original-recipient: rfc822;terrence.barr@sun.com
X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO	autolearn=ham
	version=3.0.3
X-Spam-Level: 

[note about crossposting that will get ignored by people pressing reply-all, but naive as 
I am, I'll try anyway: this is crossposted, watch out when replying]

Hi,

I was getting very annoyed with all the people complaining &quot;OMG! we need java!!!!! LOL&quot;, 
but doing absolutely nothing to help getting java into OE (and hence making it available 
to the neo1973). So I decided to actually do something:

http://www.openembedded.org/~koen/java/

It errors out somewhere in do_compile, probably because kaffeh isn't sun j2se (on my build 
machine).

So if any of you want to actually help out instead of complaining, go read 
http://java.sun.com/javame/reference/docs/cdc_build_system.pdf, install OE and get busy!

regards,

Koen

As sample of the output in the devshell:

koen@bitbake:/data/build/koen/OE/build/tmp/angstrom/work/armv5te-angstrom-linux-gnueabi/phoneme-advanced-0.0+MR2-r0/phoneme_advanced-mr2/build/linux$ 
make bin
touch ../../build/linux--/./generated/empty.mk
CVM_HOST   = i686-generic-linux
CVM_TARGET = linux--
SHELL      = sh -e
HOST_CC    = /data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-gcc
HOST_CCC   = /data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-g++
ZIP        = /usr/bin/zip
CVM_JAVA   = /usr/bin/java
CVM_JAVAC  = /usr/bin/javac
CVM_JAVAH  = /usr/bin/javah
CVM_JAR    = /usr/bin/jar
TARGET_CC     = 
/data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-gcc
TARGET_CCC    = 
/data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-g++
TARGET_AS     = 
/data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-gcc
TARGET_LD     = 
/data/build/koen/OE/build/tmp/angstrom/cross/bin/arm-angstrom-linux-gnueabi-gcc
TARGET_AR     = /usr/bin/ar
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS  = -g -Wl,-export-dynamic
LINKLIBS   = -lpthread -ldl -lm
ASM_FLAGS  = -c -fno-common -march=armv5te -mtune=xscale -mthumb-interwork -mthumb
CCCFLAGS   = -fno-rtti
CCFLAGS_SPEED  = -c -fno-common -Wall -fno-strict-aliasing -march=armv5te -mtune=xscale 
-mthumb-interwork -mthumb -O4
CCFLAGS_SPACE  = -c -fno-common -Wall -fno-strict-aliasing -march=armv5te -mtune=xscale 
-mthumb-interwork -mthumb -O2
CCFLAGS_LOOP   = -c -fno-common -Wall -fno-strict-aliasing -march=armv5te -mtune=xscale 
-mthumb-interwork -mthumb -O4 -fno-inline
CCFLAGS_FDLIB  = -c -fno-common -Wall -fno-strict-aliasing -march=armv5te -mtune=xscale 
-mthumb-interwork -mthumb -O4
JAVAC_OPTIONS  = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES    = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING 
-DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_TIMESTAMPING 
-DJ2ME_CLASSLIB=cdc -DTARGET_CPU_FAMILY= -D_GNU_SOURCE
updating ../../build/linux--/./generated/build_defs.mk ...
Checking for build-time classes to compile ...

Terrence schreef:
&gt; Koen,
&gt; 
&gt; Interesting, thanks. We'll have a look at it.
&gt; 
&gt; -- Terrence
&gt; 
&gt; Koen Kooi wrote:
&gt;&gt; -----BEGIN PGP SIGNED MESSAGE-----
&gt;&gt; Hash: SHA1
&gt;&gt;
&gt;&gt; Terrence schreef:
&gt;&gt;&gt; The Java Mobile &amp; Embedded Community (www.mobileandembedded.org)
&gt;&gt;&gt; is very interested in getting Java ME ported to OpenMoko.
&gt;&gt;
&gt;&gt; You can start right now by adding phoneme and javac to openembedded
&gt;&gt; (www.openembedded.org), which would make phoneme available to 
&gt;&gt; distributions like
&gt;&gt; openzaurus, openezx and angstrom as well.
&gt;&gt; Unfortunately I'm not allowed to share my recipes and patches for cvm 
&gt;&gt; I did 2 years ago,
&gt;&gt; but I can hint that can't use the existing .mk files, since most of 
&gt;&gt; their assumptions are
&gt;&gt; wrong.
&gt;&gt;
&gt;&gt; regards,
&gt;&gt;
&gt;&gt; Koen
&gt;&gt;
&gt;&gt; -----BEGIN PGP SIGNATURE-----
&gt;&gt; Version: GnuPG v1.4.5 (Darwin)
&gt;&gt;
&gt;&gt; iD8DBQFFbrprMkyGM64RGpERAmRQAJ4w3OODEFfF+sCo3KOVwvqKZB9r0wCfUB8Y
&gt;&gt; CT3qmtcwtCEZn8zcaPuGmlY=
&gt;&gt; =ay08
&gt;&gt; -----END PGP SIGNATURE-----
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; OpenMoko community mailing list
&gt;&gt; community@lists.openmoko.org
&gt;&gt; http://lists.openmoko.org/cgi-bin/mailman/listinfo/community
&gt;&gt;
&gt; 
&gt; _______________________________________________
&gt; OpenMoko community mailing list
&gt; community@lists.openmoko.org
&gt; http://lists.openmoko.org/cgi-bin/mailman/listinfo/community
&gt; 


_______________________________________________
OpenMoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

]