Skip to content
Snippets Groups Projects
Commit aa18508f authored by David Mondou's avatar David Mondou
Browse files

Merge branch 'java-rte2' into 'master'

add java runtime engine to vesta developer image

See merge request !8
parents dd0a3b61 4983b167
No related branches found
No related tags found
No related merge requests found
# This class recipe is a hack added to work around the fact that
# Poky's morty release is missing a few components needed
# to build the meta-java layer. The components in question are present
# in the Poky tip-of-tree, so if the vesta project eventually switches
# to a later version of Poky, this file may no longer be needed.
do_install[postfuncs] += "install_relative_symlinks"
python install_relative_symlinks () {
def replace_absolute_symlinks(basedir, d):
"""
Walk basedir looking for absolute symlinks and replacing them with relative ones.
The absolute links are assumed to be relative to basedir
(compared to make_relative_symlink above which tries to compute common ancestors
using pattern matching instead)
"""
for walkroot, dirs, files in os.walk(basedir):
for file in files + dirs:
path = os.path.join(walkroot, file)
if not os.path.islink(path):
continue
link = os.readlink(path)
if not os.path.isabs(link):
continue
walkdir = os.path.dirname(path.rpartition(basedir)[2])
base = os.path.relpath(link, walkdir)
bb.debug(2, "Replacing absolute path %s with relative path %s" % (link, base))
os.remove(path)
os.symlink(base, path)
replace_absolute_symlinks(d.getVar('D',False), d)
}
# Possible provider: cacao-initial-native and jamvm-initial-native
PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
# Possible provider: cacao-native and jamvm-native
PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
# Optional since there is only one provider for now
PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
......@@ -6,6 +6,7 @@
include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc
include conf/machine/include/meta-java.inc
MACHINE_FEATURES += " pci bluetooth"
......
......@@ -6,6 +6,7 @@
include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc
include conf/machine/include/meta-java.inc
MACHINE_FEATURES += " pci wifi bluetooth"
......
......@@ -6,6 +6,7 @@
include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc
include conf/machine/include/meta-java.inc
MACHINE_FEATURES += " pci wifi bluetooth"
......
......@@ -13,6 +13,7 @@ IMAGE_INSTALL_append += " \
mtd-utils-ubifs \
nodejs \
nodejs-npm \
openjre-8 \
packagegroup-core-buildessential \
python \
python-dev \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment