severity: warning
do_foo() {
cat > ${D}/some.files << EOF
kfkdfkd
EOF
}
Use of heredocs creates a file with the permissions and filemode bits of the current user running bitbake. These could differ between users of the same recipe, leading to unpredictable results.
In addition heredocs are hard to read.
create a file with the desired content, or make sure that the correct user and the correct
permissions are set using chown
and install
do_foo() {
echo "kfkdfkd" > ${T}/some.files
chown root:root ${T}/some.files
install -m 0644 ${T}/some.files ${D}/some.files
}