[ELDK] [PATCH 3/5] Java support for eldk-5.3/armv7a (Vybrid VF6xx)

Sergei Poselenov sposelenov at emcraft.com
Mon Mar 3 17:03:57 CET 2014


commit 70f360f7ed12a62cc5c562b7e2fa1acb7946249b
Author: Sergei Poselenov <sposelenov at emcraft.com>
Date:   Sat Dec 14 15:36:30 2013 +0400

    RT #90818. Adjusted build configuration files:
     - build for armv7a (VF6)
     - Added "meta-java" to bblayers.conf
     - use "-j 4" for "make".
     - Run 4 bitbake tasks at once.
    
    Please do adjust DL_DIR to avoid duplicating download of the source packages!

    Signed-off-by: Sergei Poselenov <sposelenov at emcraft.com>

diff --git a/meta-eldk/conf/bblayers.conf.sample b/meta-eldk/conf/bblayers.conf.sample
index 56cd63a..9b1c05c 100644
--- a/meta-eldk/conf/bblayers.conf.sample
+++ b/meta-eldk/conf/bblayers.conf.sample
@@ -10,4 +10,5 @@ BBLAYERS ?= " \
   ##COREBASE##/meta-yocto \
   ##COREBASE##/meta-yocto-bsp \
   ##COREBASE##/meta-eldk \
+  ##COREBASE##/meta-java \
   "
diff --git a/meta-eldk/conf/local.conf.sample b/meta-eldk/conf/local.conf.sample
index 434c684..09d8ea8 100644
--- a/meta-eldk/conf/local.conf.sample
+++ b/meta-eldk/conf/local.conf.sample
@@ -11,13 +11,13 @@ CONF_VERSION = "1"
 # Uncomment and set to allow bitbake to execute multiple tasks at once.
 # For a quadcore, BB_NUMBER_THREADS = "4", PARALLEL_MAKE = "-j 4" would
 # be appropriate.
-# BB_NUMBER_THREADS = "4"
+BB_NUMBER_THREADS = "4"
 # Also, make can be passed flags so it run parallel threads e.g.:
-# PARALLEL_MAKE = "-j 4"
+PARALLEL_MAKE = "-j 4"
 
 # Set a default machine to target unless a machine is selected from the 
 # lists below.
-MACHINE ??= "qemux86"
+MACHINE ??= "generic-armv7a"
 
 # Supported emulation machines
 #MACHINE ?= "qemuarm"
@@ -33,7 +33,7 @@ MACHINE ??= "qemux86"
 #MACHINE ?= "mpc8315e-rdb"
 #MACHINE ?= "routerstationpro"
 
-DISTRO ?= "poky"
+DISTRO ?= "eldk"
 # For bleeding edge / experimental / unstable package versions
 # DISTRO ?= "poky-bleeding"
 
@@ -69,7 +69,7 @@ EXTRA_IMAGE_FEATURES_mx31ads = "tools-testapps debug-tweaks"
 # include 'package_ipk' for ipks
 # include 'package_rpm' for rpms
 #PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
-PACKAGE_CLASSES ?= "package_rpm package_ipk"
+PACKAGE_CLASSES ?= "package_ipk"
 
 # mklibs library size optimization is more useful to smaller images, 
 # and less useful for bigger images. Also mklibs library optimization can break the ABI compatibility, so should not be applied to the images which are tobe
@@ -84,7 +84,7 @@ PACKAGE_CLASSES ?= "package_rpm package_ipk"
 # include 'image-prelink' in order to prelink the filesystem image
 # include 'image-swab' to perform host system intrusion detection
 # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink
-USER_CLASSES ?= "image-mklibs image-prelink"
+USER_CLASSES ?= "image-mklibs image-prelink add_machine_symlinks"
 
 # POKYMODE controls the characteristics of the generated packages/images by
 # telling poky which type of toolchain to use.
@@ -162,7 +162,7 @@ ENABLE_BINARY_LOCALE_GENERATION = "1"
 # packages for architectures other than the host i.e. building i686 packages
 # on an x86_64 host.
 # Supported values are i686 and x86_64
-#SDKMACHINE ?= "i686"
+SDKMACHINE ?= "i686"
 
 # Poky can try and fetch packaged-staging packages from a http, https or ftp
 # mirror. Set this variable to the root of a pstage directory on a server.
@@ -217,3 +217,10 @@ NO32LIBS = "1"
 # GNOME, SCREEN, XTERM and KONSOLE
 #TERMCMD = "${KONSOLE_TERMCMD}"
 #TERMCMDRUN = "${KONSOLE_TERMCMDRUN}"
+
+# Java build settings
+PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
+PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
+PREFERRED_VERSION_openjdk-7-jre = "03b21-2.1.8"
+PREFERRED_VERSION_icedtea7-native = "2.1.3"
+PREFERRED_PROVIDER_openjdk-7-jre = "openjdk-7-jre"


More information about the eldk mailing list