Environment variable should be defined in /etc/profile
In my build that file is managed by "base-files" recipe. So I wrote a custom
recipe "base-files_3.0.14.bbappend" with only a row
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
in the "files" directory I put the "profile" file with the definition of the
environment variable.
In that way you should overwrite the original /etc/profile with your custom
file...
In data mercoledì 17 aprile 2013 10:57:54, Satya Swaroop Damarla ha scritto:
Hi Guys,
I am planning to install embedded java runtime environment and it just needs
the following steps
1. Creation of directory /usr/share/java
2. Copy the files to this directory
3. Creating a environment variable JAVA_HOME=/usr/share/java/ejre1.7.0_10/bin
4. Extending the variable PATH=$PATH:$JAVA_HOME
here is my recipe... The first and second parts are done but I am not able to
figure out the 3rd and 4th steps.. Here is my recipe
DESCRIPTION = "Embedded Java from Oracle/Sun"
LICENSE_FLAGS = "oracle_java"
LICENSE = "Oracle_Binary_Code_License_Agreement"
LIC_FILES_CHKSUM = "\
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/LICENSE;md5=98f46ab6481d87c4d77e0e91a6dbc15f
\
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/COPYRIGHT;md5=f5f3c0856f2ca27413b55b6ca50c897e
\
file://${WORKDIR}/${JDK_JRE}${PV}_${PV_UPDATE}/THIRDPARTYLICENSEREADME.txt;md5=c339b34e3da6673d2c5950d0f8808f8c
\
"
SRC_URI =
"file:///home/damarla/yocto/ejre-7u10-fcs-b18-linux-arm-vfp-client_headful-28_nov_2012.gz"
SRCREV ?= "${AUTOREV}"
SRC_URI[md5sum] = "8a6f08f39f916fcdbe0d741d550741ad"
SRC_URI[sha256sum] =
"194a522bc27cf4746a0d8ca1e947b13832166ecd6f4f2fbaf5ce1df2a7493d43"
inherit allarch
do_install () {
install -d ${D}/usr/share/java/
cp -r ejre1.7.0_10 ${D}/usr/share/java
}
Help is deeply appreciated!
Greets,
Satya
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto