aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>2013-08-07 10:40:27 +0000
committerOtavio Salvador <otavio@ossystems.com.br>2013-08-07 10:32:14 -0300
commit3e5a4b51a9cc45c761a7666316b6abaaf460c595 (patch)
tree01223f9e63b5a85dd9266c2b1fec31294faff7f0
parent3cf4f4de20d01e58559908e25008acdd19955bb3 (diff)
downloadmeta-fsl-arm-3e5a4b51a9cc45c761a7666316b6abaaf460c595.tar.gz
meta-fsl-arm-3e5a4b51a9cc45c761a7666316b6abaaf460c595.tar.bz2
meta-fsl-arm-3e5a4b51a9cc45c761a7666316b6abaaf460c595.zip
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
-rw-r--r--recipes-bsp/barebox/barebox.inc12
1 files changed, 9 insertions, 3 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc
index e52b463..00595cc 100644
--- a/recipes-bsp/barebox/barebox.inc
+++ b/recipes-bsp/barebox/barebox.inc
@@ -39,13 +39,10 @@ do_compile () {
do_deploy () {
install -d ${DEPLOY_DIR_IMAGE}
install ${S}/${BAREBOX_BINARY} ${DEPLOY_DIR_IMAGE}/${BAREBOX_IMAGE}
- install ${S}/barebox_default_env ${DEPLOY_DIR_IMAGE}/${BAREBOXENV_BIN}
cd ${DEPLOY_DIR_IMAGE}
rm -f ${BAREBOX_SYMLINK}
- rm -f ${BAREBOXENV_SYMLINK}
ln -sf ${BAREBOX_IMAGE} ${BAREBOX_SYMLINK}
- ln -sf ${BAREBOXENV_BIN} ${BAREBOXENV_SYMLINK}
install -d ${STAGING_BINDIR_NATIVE}
cd ${S}
@@ -55,3 +52,12 @@ do_deploy () {
do_deploy[dirs] = "${S}"
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