diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-03-12 15:41:44 +0100 |
---|---|---|
committer | Patrick Vacek <patrickvacek@gmail.com> | 2019-04-29 09:23:09 +0200 |
commit | 5a6eb66b015896479d04b973dfd9ca7e889e6ea1 (patch) | |
tree | 2b13c3c72ff707b902d2d0f22b21a3b0cc8cfbd6 /recipes-sota/aktualizr/aktualizr_git.bb | |
parent | d3108d179fb73db2569cff35c8452537779c0848 (diff) | |
download | meta-updater-5a6eb66b015896479d04b973dfd9ca7e889e6ea1.tar.gz |
Save space in deployed aktualizr ptest
* remove whole RIOT repo
* remove intermediary static libraries, only useful during build
Should be around 500MB saving in total
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
Diffstat (limited to 'recipes-sota/aktualizr/aktualizr_git.bb')
-rwxr-xr-x | recipes-sota/aktualizr/aktualizr_git.bb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/recipes-sota/aktualizr/aktualizr_git.bb b/recipes-sota/aktualizr/aktualizr_git.bb index 1754915..5a3f304 100755 --- a/recipes-sota/aktualizr/aktualizr_git.bb +++ b/recipes-sota/aktualizr/aktualizr_git.bb | |||
@@ -71,8 +71,11 @@ do_install_ptest() { | |||
71 | cp -r ${B}/ ${D}/${PTEST_PATH}/build | 71 | cp -r ${B}/ ${D}/${PTEST_PATH}/build |
72 | cp -r ${S}/ ${D}/${PTEST_PATH}/src | 72 | cp -r ${S}/ ${D}/${PTEST_PATH}/src |
73 | 73 | ||
74 | # remove bogus elf file | 74 | # remove huge external unused repository |
75 | rm ${D}/${PTEST_PATH}/src/partial/extern/RIOT/cpu/esp32/bin/bootloader.elf | 75 | rm -rf ${D}/${PTEST_PATH}/src/partial/extern/RIOT |
76 | |||
77 | # remove huge build artifacts | ||
78 | find ${D}/${PTEST_PATH}/build/src -name "*.a" -delete | ||
76 | 79 | ||
77 | # fix the absolute paths | 80 | # fix the absolute paths |
78 | find ${D}/${PTEST_PATH}/build -name "CMakeFiles" | xargs rm -rf | 81 | find ${D}/${PTEST_PATH}/build -name "CMakeFiles" | xargs rm -rf |