The dependencies on opkg-utils-native is missing in package-index, which causing the "bitbake package-index" failed with the following messages: | + flock /home/lulianhao/poky-build/master2/tmp/deploy/ipk/Packages.flock -c 'opkg-make-index -r /home/lulianhao/poky-build/master2/tmp/deploy/ipk/Packages -p /home/lulianhao/poky-build/master2/tmp/deploy/ipk/Packages -l /home/lulianhao/poky-build/master2/tmp/deploy/ipk/Packages.filelist -m /home/lulianhao/poky-build/master2/tmp/deploy/ipk/' | /bin/bash: opkg-make-index: command not found | ERROR: Function 'do_package_index' failed (see /home/lulianhao/poky-build/master2/tmp/work/core2-poky-linux/package-index-1.0-r0/temp/log.do_package_index.10691 for further information) NOTE: package package-index-1.0-r0: task do_package_index: Failed ERROR: Task 8 (/home/lulianhao/poky-build/poky/meta/recipes-core/meta/package-index.bb, do_package_index) failed with exit code '1'
Fixed in the commit http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=e70f6897e6e20cc78d0dbcca05a77fd6a6c00d20.
Now the package_index task depends on PACKAGEINDEXDEPS.