Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to install custom node package, but files are not being copied into the build #88

Open
RobGries opened this issue Dec 4, 2017 · 1 comment

Comments

@RobGries
Copy link

RobGries commented Dec 4, 2017

Hello,

I'm attempting to use this meta-layer and it's class to install a custom nodejs package, but I cannot get my files to copy from my ${WORKDIR} to my build.

This is the bitbake recipe that I'm working with:

SUMMARY = "nodeJsServer"
SECTION = "meta-custom"
AUTHOR = "Company"

LICENSE = "CLOSED" 

SRC_URI = "<private_repo_URI>"
SRC_URI[md5sum] = "???"
SRC_URI[sha256sum] = "???"

S = "${WORKDIR}/git"

inherit npm-install-global

I browsed to my workdir and it appears that the sources are being populated into the git/ directory there but I'm not seeing them show up in the global package dir on my build (/usr/lib/node_modules/nodeJsServer). Instead I get a broken symlink to a non-existent directory called /git on the root of the image.

Am I missing a directive to copy the node files into my build root or something?

Thanks,
Rob

@RobGries
Copy link
Author

RobGries commented Dec 5, 2017

Ah, nevermind, I got it. I was able to populate the path using a do_install() directive like this:

do_install(){
   	install -d ${D}${libdir}/node_modules/nodeJsServer
	cp -r ${S}/* ${D}${libdir}/node_modules/nodeJsServer
}

It works great now, you can probably close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant