-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DKMS changes #200
base: master
Are you sure you want to change the base?
DKMS changes #200
Conversation
echo "AUTOINSTALL=\"yes\"" >> $(_packagedir)/dkms.conf | ||
|
||
|
||
install -p -m 755 $(_srcdir)/dp-core/SConscript $(_packagedir)/dp-core/SConscript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of individually selecting each of the files, can't we tar the entire directory and put the tarball?
This way whenever we add or delete files in the source, we don't have to modify the spec/rules file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello ND,
There are a couple of problems in tar-ing (though, none are signifcant). Firstly,
it is possible that there could be binary files in the same directory. Secondly, not
all the files inside the vrouter directory is copied. Thirdly, all the sources don't
actually come from the same directory. However, I agree to the point that people
can forget adding files into the spec file. I do not have a good solution for this.
Let me know.
Thanks,
Anand
From: ndramesh [email protected]
Sent: Saturday, April 5, 2014 6:44 AM
To: Juniper/contrail-packaging
Cc: Anand H Krishnan
Subject: Re: [contrail-packaging] DKMS changes (#200)
In common/debian/contrail-vrouter-src-dkms/debian/rules:
install -d -m 755 $(_packagedir)/sandesh
install -d -m 755 $(_packagedir)/sandesh/gen-c/
install -d -m 755 $(_packagedir)/sandesh/library/c
install -d -m 755 $(_packagedir)/sandesh/library/c/protocol
install -d -m 755 $(_packagedir)/sandesh/library/c/transport
echo "MAKE[0]=\"'make' -C . KERNELDIR=/lib/modules/\$${kernelver}/build\"" >> $(_packagedir)/dkms.conf
echo "CLEAN[0]=\"'make' -C . KERNELDIR=/lib/modules/\$${kernelver}/build\"" >> $(_packagedir)/dkms.conf
echo "DEST_MODULE_LOCATION[0]=\"/kernel/extra/net/vrouter\"" >> $(_packagedir)/dkms.conf
echo "BUILT_MODULE_NAME[0]=\"vrouter\"" >> $(_packagedir)/dkms.conf
echo "PACKAGE_NAME=vrouter" >> $(_packagedir)/dkms.conf
echo "PACKAGE_VERSION=$(BUILDTAG)" >> $(_packagedir)/dkms.conf
echo "AUTOINSTALL=\"yes\"" >> $(_packagedir)/dkms.conf
install -p -m 755 $(_srcdir)/dp-core/SConscript $(_packagedir)/dp-core/SConscript
Instead of individually selecting each of the files, can't we tar the entire directory and put the tarball?
This way whenever we add or delete files in the source, we don't have to modify the spec/rules file.
Reply to this email directly or view it on GitHubhttps://github.com//pull/200/files#r11319153.
- update the maintainer and copyright labels
Tweak log message and level for Router ID and AS change.
Create one new package 'contrail-vrouter-src-dkms' that will have the 'vrouter' kernel module sources and the required sandesh files to compile the module in any system.