Thanks for your quickly reply, i have added "chromeos-base/Hello" into RDEPEND variable in virtual/target-chromium-os-dev/target-chromium-os-dev-1.ebuild, but still cannot found Hello binary in my usb image. I have tried to add program into image for almost one week, please help me.
Here is my Hello-9999.ebuild,
EAPI=5
CROS_WORKON_INCREMENTAL_BUILD=1
CROS_WORKON_LOCALNAME="platform2"
CROS_WORKON_PROJECT="chromiumos/platform2"
CROS_WORKON_DESTDIR="${S}/platform2"
PLATFORM_SUBDIR="Hello" # name of the directory in src/platform2
inherit cros-workon platform
DESCRIPTION="description"
HOMEPAGE="
http://www.chromium.org/"
LICENSE="BSD-Google"
SLOT=0
KEYWORDS="x86 amd64"
RDEPEND=""
DEPEND=""
src_install() {
dobin "${OUT}/Hello" # ${OUT} is the build output directory containing
# all your binaries
}
platform_pkg_test() {
local tests=(
package_test
)
local test_bin
for test_bin in "${tests[@]}"; do
platform_test "run" "${OUT}/${test_bin}" # platform_test takes care
# of setting up your test environment
done
}
Hung-Te Lin於 2016年10月20日星期四 UTC+8下午4時25分39秒寫道: