Commit 3e5a4b51 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Otavio Salvador

barebox: move environment deployment to its own task

Introduce a new task ito deploy the environment to allow inheriting
recipes to override it.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 3cf4f4de
...@@ -39,13 +39,10 @@ do_compile () { ...@@ -39,13 +39,10 @@ do_compile () {
do_deploy () { do_deploy () {
install -d ${DEPLOY_DIR_IMAGE} install -d ${DEPLOY_DIR_IMAGE}
install ${S}/${BAREBOX_BINARY} ${DEPLOY_DIR_IMAGE}/${BAREBOX_IMAGE} install ${S}/${BAREBOX_BINARY} ${DEPLOY_DIR_IMAGE}/${BAREBOX_IMAGE}
install ${S}/barebox_default_env ${DEPLOY_DIR_IMAGE}/${BAREBOXENV_BIN}
cd ${DEPLOY_DIR_IMAGE} cd ${DEPLOY_DIR_IMAGE}
rm -f ${BAREBOX_SYMLINK} rm -f ${BAREBOX_SYMLINK}
rm -f ${BAREBOXENV_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK} ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
ln -sf ${BAREBOXENV_BIN} ${BAREBOXENV_SYMLINK}
install -d ${STAGING_BINDIR_NATIVE} install -d ${STAGING_BINDIR_NATIVE}
cd ${S} cd ${S}
...@@ -55,3 +52,12 @@ do_deploy () { ...@@ -55,3 +52,12 @@ do_deploy () {
do_deploy[dirs] = "${S}" do_deploy[dirs] = "${S}"
addtask deploy before do_build after do_compile addtask deploy before do_build after do_compile
do_env_deploy() {
install ${S}/barebox_default_env ${DEPLOY_DIR_IMAGE}/${BAREBOXENV_BIN}
cd ${DEPLOY_DIR_IMAGE}
rm -f ${BAREBOXENV_SYMLINK}
ln -sf ${BAREBOXENV_BIN} ${BAREBOXENV_SYMLINK}
}
addtask env_deploy before do_build after do_deploy
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment