Message ID | 20220131085548.25074-1-ahsan_hussain@mentor.com |
---|---|
State | Accepted, archived |
Commit | a1ec3154a53fd9e3f87a53f25113b7f90bcfb489 |
Headers | show |
Series | staging: use relative path in sysroot_stage_dir() | expand |
Hello maintainers, Can we get a feedback on this. Thanks, Ahsan
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass index 25f77c7735..4f278b2205 100644 --- a/meta/classes/staging.bbclass +++ b/meta/classes/staging.bbclass @@ -49,9 +49,10 @@ sysroot_stage_dir() { fi mkdir -p "$dest" + rdest=$(realpath --relative-to="$src" "$dest") ( cd $src - find . -print0 | cpio --null -pdlu $dest + find . -print0 | cpio --null -pdlu $rdest ) }