diff options
author | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2018-01-29 14:51:43 +0100 |
---|---|---|
committer | Nicolas Dechesne <nicolas.dechesne@linaro.org> | 2018-01-30 09:22:08 +0100 |
commit | 7d0836fd5f0ad50345eeb1223fa1171100bcdc49 (patch) | |
tree | fc8049657a353b1738a2fdc8851405a1b14b17f4 /lt-qcom-debian-images/builders-fai.sh | |
parent | c46b6a07b7c51c576feb52bc3d0895d90f1b0dd9 (diff) |
lt-qcom-debian-images/builders-fai: add kernel config changes
Record kernel config changes since last build, in addition to packages
differences. And add all changes in a single file instead of generating many
changes files.
Change-Id: I4849ff8d00508de0fecd846d84be21522990fe35
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Diffstat (limited to 'lt-qcom-debian-images/builders-fai.sh')
-rw-r--r-- | lt-qcom-debian-images/builders-fai.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lt-qcom-debian-images/builders-fai.sh b/lt-qcom-debian-images/builders-fai.sh index 3610c670fe..1436cc381b 100644 --- a/lt-qcom-debian-images/builders-fai.sh +++ b/lt-qcom-debian-images/builders-fai.sh @@ -73,7 +73,9 @@ for rootfs in ${ROOTFS}; do # record changes since last build, if available if wget -q ${PUBLISH_SERVER}${PUB_DEST/\/${BUILD_NUMBER}\//\/latest\/}/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-*.packages -O last-build.packages; then - python debpkgdiff.py last-build.packages out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${BUILD_NUMBER}.packages > out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${BUILD_NUMBER}.packages-changes.txt + echo -e "=== Packages changes for ${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${BUILD_NUMBER}\n" >> out/build-changes.txt + python debpkgdiff.py last-build.packages out/${VENDOR}-${OS_FLAVOUR}-${rootfs}-${PLATFORM_NAME}-${BUILD_NUMBER}.packages >> out/build-changes.txt + echo >> out/build-changes.txt else echo "latest build published does not have packages list, skipping diff report" fi @@ -87,6 +89,15 @@ done kernel_binpkg=$(grep -h linux-image out/${VENDOR}-${OS_FLAVOUR}-*-${PLATFORM_NAME}-${BUILD_NUMBER}.packages | sed 's/\s\s*/ /g' | cut -d ' ' -f2 | uniq) kernel_pkgver=$(grep -h linux-image out/${VENDOR}-${OS_FLAVOUR}-*-${PLATFORM_NAME}-${BUILD_NUMBER}.packages | sed 's/\s\s*/ /g' | cut -d ' ' -f3 | uniq) +# record kernel config changes since last build, if available +if wget -q ${PUBLISH_SERVER}${PUB_DEST/\/${BUILD_NUMBER}\//\/latest\/}/config-* -O last-build.config; then + echo -e "=== Changes for kernel config\n" >> out/build-changes.txt + diff -su last-build.config out/config-* > out/build-changes.txt + echo >> out/build-changes.txt +else + echo "latest build published does not have kernel config, skipping diff report" +fi + cat >> out/HEADER.textile << EOF * Kernel package name: ${kernel_binpkg} * Kernel package version: ${kernel_pkgver} |