Update to new bitbake API

Signed-off-by: Ross Burton <ross.burton@intel.com>