[Fuego] [PATCH 09/10] kernel_build: implement kernel deployment
Daniel Sangorrin
daniel.sangorrin at toshiba.co.jp
Tue Mar 27 08:53:25 UTC 2018
This does the next step after building the kernel, deploying
it to a folder (eg tftp server). By default, it uses the
LOGDIR.
FIXTHIS: discuss about whether to export modules and dtbs
as well.
Signed-off-by: Daniel Sangorrin <daniel.sangorrin at toshiba.co.jp>
---
engine/tests/Functional.kernel_build/fuego_test.sh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/engine/tests/Functional.kernel_build/fuego_test.sh b/engine/tests/Functional.kernel_build/fuego_test.sh
index c914c7a..0a04915 100755
--- a/engine/tests/Functional.kernel_build/fuego_test.sh
+++ b/engine/tests/Functional.kernel_build/fuego_test.sh
@@ -57,9 +57,13 @@ function test_run {
# cat on target populates the testlog with build.log
report "cat $WORKSPACE/$JOB_BUILD_DIR/build.log"
-function test_deploy {
- echo "Deploying kernel"
- # FIXTHIS: copy to tftp folder for lava etc..
+ if [ -z "$FUNCTIONAL_KERNEL_DEPLOY" ]; then
+ FUNCTIONAL_KERNEL_DEPLOY="$LOGDIR"
+ fi
+
+ # FIXTHIS: output the modules and dtbs as well
+ echo "Deploying kernel to $FUNCTIONAL_KERNEL_DEPLOY"
+ cp $WORKSPACE/$JOB_BUILD_DIR/arch/$FUNCTIONAL_KERNEL_BUILD_ARCH/boot/*Image $FUNCTIONAL_KERNEL_DEPLOY
}
function test_processing {
--
2.7.4
More information about the Fuego
mailing list