Closed UKNC closed 7 years ago
I'm trying to get cross-compiling nodejs of the latest version on poky. Instead of node v7.10.0, bitbake produces v 4.6.1:
$ ~/fsl-community-bsp/build/tmp/log/cooker/imx7s-warp$ cat console-latest.log
NOTE: preferred version 7.10.0 of nodejs not available (for item nodejs) NOTE: versions of nodejs available: 4.6.1 NOTE: preferred version 7.10.0 of nodejs not available (for item nodejs-dev) NOTE: versions of nodejs available: 4.6.1 Build Configuration: BB_VERSION = "1.32.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-16.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "imx7s-warp" DISTRO = "poky" DISTRO_VERSION = "2.2.3" TUNE_FEATURES = "arm armv7ve vfp thumb neon callconvention-hard cortexa7" TARGET_FPU = "hard" meta meta-poky = "HEAD:b9182def2952952c5aa716d93a9094846719bdc3" meta-oe meta-multimedia = "HEAD:b40116cf457b88a2db14b86fda9627fb34d56ae6" meta-freescale = "HEAD:05681fdf8298bb441c15135eae424c7601b07e98" meta-freescale-distro = "HEAD:cd5c7a2539f40004f74126e9fdf08254fd9a6390" meta-freescale-3rdparty = "HEAD:e55167c3c2770c07a475342f99cc2a3a23fbfa0c" meta-gcs = "<unknown>:<unknown>"
Here is my build/conf/bblayers.conf:
build/conf/bblayers.conf
POKY_BBLAYERS_CONF_VERSION = "2" BBPATH = "${TOPDIR}" BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" EXTRALAYERS ?=" \ ${BSPDIR}/sources/meta-nodejs \ " BBFILES ?= "" BBLAYERS = " \ ${BSPDIR}/sources/poky/meta \ ${BSPDIR}/sources/poky/meta-poky \ \ ${BSPDIR}/sources/meta-openembedded/meta-oe \ ${BSPDIR}/sources/meta-openembedded/meta-multimedia \ \ ${BSPDIR}/sources/meta-freescale \ ${BSPDIR}/sources/meta-freescale-distro \ ${BSPDIR}/sources/meta-freescale-3rdparty \ " # GCS Layer BBLAYERS += " ${BSPDIR}/sources/meta-gcs " #BBLAYERS += " \ # ${EXTRALAYERS} \ #"
Here is build/conf/local.conf:
build/conf/local.conf
MACHINE ??= 'imx7s-warp' DISTRO ?= 'poky' PACKAGE_CLASSES ?= "package_rpm" EXTRA_IMAGE_FEATURES ?= "debug-tweaks" EXTRA_IMAGE_FEATURES += "dev-pkgs" EXTRA_IMAGE_FEATURES += "eclipse-debug" USER_CLASSES ?= "buildstats image-mklibs" PATCHRESOLVE = "noop" BB_DISKMON_DIRS = "\ STOPTASKS,${TMPDIR},1G,100K \ STOPTASKS,${DL_DIR},1G,100K \ STOPTASKS,${SSTATE_DIR},1G,100K \ STOPTASKS,/tmp,100M,100K \ ABORT,${TMPDIR},100M,1K \ ABORT,${DL_DIR},100M,1K \ ABORT,${SSTATE_DIR},100M,1K \ ABORT,/tmp,10M,1K" PACKAGECONFIG_append_pn-qemu-native = " sdl" PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl" CONF_VERSION = "1" DL_DIR ?= "${BSPDIR}/downloads/" ACCEPT_FSL_EULA = "1" CORE_IMAGE_EXTRA_INSTALL += "openssh" CORE_IMAGE_EXTRA_INSTALL += "openssh-sftp-server" CORE_IMAGE_EXTRA_INSTALL += "bluez5" CORE_IMAGE_EXTRA_INSTALL += "gcs-scripts" CORE_IMAGE_EXTRA_INSTALL += "alsa-utils" # CORE_IMAGE_EXTRA_INSTALL += "python-pycrypto" # CORE_IMAGE_EXTRA_INSTALL += "python-requests" # CORE_IMAGE_EXTRA_INSTALL += "fftw" CORE_IMAGE_EXTRA_INSTALL += "curl" # CORE_IMAGE_EXTRA_INSTALL += "ntp" IMAGE_INSTALL_append = " nodejs" PREFERRED_VERSION_nodejs = "7.10.0" INHERIT += "extrausers" EXTRA_USERS_PARAMS = "usermod -P interact root;"
What do I do wrong?
Solved. EXTRALAYERS is not BITBAKE var. I should have uncommented three last lines.
I'm trying to get cross-compiling nodejs of the latest version on poky. Instead of node v7.10.0, bitbake produces v 4.6.1:
$ ~/fsl-community-bsp/build/tmp/log/cooker/imx7s-warp$ cat console-latest.log
Here is my
build/conf/bblayers.conf
:Here is
build/conf/local.conf
:What do I do wrong?