X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre-dkms_post-build.sh;h=6ed20c7a6d0be5c16b9ec30db462a27c9eba8859;hp=bfff1a5f9860bc9b7da1969bab684e57b76a0507;hb=416e67222b769df490a8be034ef987a596dd8dff;hpb=23434f3408063164c863a7d56c661c41fa2e779f diff --git a/lustre-dkms_post-build.sh b/lustre-dkms_post-build.sh index bfff1a5..6ed20c7 100755 --- a/lustre-dkms_post-build.sh +++ b/lustre-dkms_post-build.sh @@ -21,30 +21,7 @@ # $7/$1/$2/$3/$5/log repository should have already been created to save # make.log and $kernel_config mkdir -p "$7/$1/$2/$3/$5/log" -mv -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null - -# read last dkms.conf version that has just been customized during pre_build -source $6/$1-$2/dkms.conf - -# Make sure all the modules built successfully -for ((count=0; count < ${#BUILT_MODULE_NAME[@]}; count++)); do - # Lustre supported kernels are >= 2.5, so don't need to check for old .o - # module suffix - [[ -e ${BUILT_MODULE_LOCATION[$count]}${BUILT_MODULE_NAME[$count]}.ko ]] && continue - echo "Build of ${BUILT_MODULE_NAME[$count]}.ko failed for: $3 ($5)" \ - "Consult logs in $7/$1/$2/$3/$5/log/ for more information." -done - -# Strip modules ? -for ((count=0; count < ${#BUILT_MODULE_NAME[@]}; count++)); do - [[ ${STRIP[$count]} = '' ]] && STRIP[$count]=${STRIP[0]:-yes} - [[ ${STRIP[$count]} != no ]] && strip -g "$7/$1/$2/build/${BUILT_MODULE_LOCATION[$count]}${BUILT_MODULE_NAME[$count]}.ko" - - # Save a copy of the new module in save area that should have been created in previous build steps - mkdir -p "$7/$1/$2/$3/$5/module" >/dev/null - # if DEST_MODULE_NAME[] is different than BUILD_MODULE_NAME[], need to use it as the module name in save area - # this is not presently the case for none of the Lustre kernel modules. - cp -f "$7/$1/$2/build/${BUILT_MODULE_LOCATION[$count]}${BUILT_MODULE_NAME[$count]}.ko" \ - "$7/$1/$2/$3/$5/module/${BUILT_MODULE_NAME[$count]}.ko" >/dev/null -done - +cp -f "$7/$1/$2/build/config.log" "$7/$1/$2/$3/$5/log/config.log" 2>/dev/null +cp -f "$7/$1/$2/build/config.h" \ + "$7/$1/$2/build/Module.symvers" \ + "$7/$1/$2/$3/$5/" 2> /dev/null