kernel_module_package macro also checking for
/boot/symsets-$kver-$flavor.tag.gz
in case of lbuild, we need to point it to lbuild
kernel-source directory
Change-Id: I3cf9c1f43fe9ea543f67967773fc8715325a47e9
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: http://review.whamcloud.com/23166
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
# We modify %kernel_module_package macro to use the linux obj
# that lbuild install, not the OS installed /usr/src
# We modify %kernel_module_package macro to use the linux obj
# that lbuild install, not the OS installed /usr/src
- sed -i "/^%kernel_module_package/,/^)}$/d" $RMAC
- sed -e "s/\/usr\/src/${path//\//\\/}\/usr\/src/" ${SUSE_MACROS} >> $RMAC
+ sed -i -e "/^%kernel_module_package/,/^)}$/d" \
+ -e "/^# A few cross-distro definitions/d" $RMAC
+ sed -e "s/\/usr\/src/${path//\//\\/}\/usr\/src/" \
+ -e "s/\/boot/${path//\//\\/}\/boot/" ${SUSE_MACROS} >> $RMAC
# cleanup the modified/added rpmmacros
cleanup_rpmmacros() {
# cleanup the modified/added rpmmacros
cleanup_rpmmacros() {
- sed -i "/^%kernel_module_package/,/^)}$/d" $RMAC
+ sed -i -e "/^%kernel_module_package/,/^)}$/d" \
+ -e "/^# A few cross-distro definitions/d" $RMAC