General TC > Programming & Scripting - Unofficial
[Updated] Script for preparing full kernel sources in lieu of headers
coreplayer2:
I thought I'd share my script for preparing full kernel sources in lieu of kernel headers, if anyone is interested.
It has been my goal to submit this script as part of a tools extention which I use regularly, but extension is not ready (I have more usful scripts to add yet). Meanwhile this script is ready and I use it often, daily almost.
This script has been adjusted for use with 3.8.10 kernel only, though the previous version was in use compiling apps for core64 v4.7.7
Once downloaded, the source files (downloaded to /tmp may be saved for future use, or they will be downloaded next time used.
I welcome your comments
Thanks to Jason and juanito for their guidance and inspiration
edit amended additional ping check
tinypoodle:
Consider attaching script please?
coreplayer2:
sure thing, done
coreplayer2:
I have submitted an extension with an updated version of this script
linux-3.8.10-sources-env.tcz
Basically it is a script (albeit perhaps not the most efficient one) which prepares Linux 3.8.10 full sources in lieu of headers for compiling modules etc. on tc-5.x
The script will find the required sources locally or will download them as needed, also providing an option to save the sources for future use. Symlinks and compile extensions will also be set and installed to complete the build environment.
I use the extension often to setup a build environment, so am simply sharing it. future modifications may still be necessary to adapt for 64 modules etc etc.
attaching the current script here. comments and suggestions welcome
PS. opened the script on the big screen and immediately saw some duplication, will take care of that soon
coreplayer2:
ok updated already
have submitted an updated extension
Many fixes and a huge clean up.
also added a second menu item which accesses an abbreviated (basic) script to accommodate previously downloaded source files and deps.
Also completed the 64 bit section of both scripts in preparation for possible future corepure64 builds??
updated scripts also attached
Navigation
[0] Message Index
[#] Next page
Go to full version