df is not included in build/tmp/hosttools

1.1k Views Asked by At

I am using bitbake to build a recipe.

One recipe shows it needs df.

I checked

build/tmp/hosttools

df is not there, but I can manually copy df from /bin/df

How to config yocto to let it include df tool?

1

There are 1 best solutions below

2
Mohammed Harris On BEST ANSWER

Copying a binary manually may not work. You need to include df to HOSTTOOLS in bitbake.conf

For example: oe-core/meta/conf/bitbake.conf under the topic Build utility info.

HOSTTOOLS += " [ ar as awk basename bash bzip2 cat chgrp chmod chown date df du echo

do it like this. It will work.