Is Perl absolutely necessary to compile the kernel?
Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
There are a bunch of "make utilities" things like "autoconf" and others. But, whenever you find some software that you need to compile - it should have a README in it that will tell you about the tools required to make/build/compile it.
... and completely off-topic. "When in Rome, do as the Romans do." You want "to build a Linux kernel (from this-or-that distro)," i.e. this is not http://www.linuxfromscratch.org, and so your true objective is: get 'er done. Watch the friendly neighborhood Centurions as they walk by, and try to imitate them. (Watch out for those swords... they're sharp.)
I heard that perl had an absolutely crappy syntax, and would prefer to avoid it.
To be clear, it may require a Perl interpreter to build a kernel, and I've built lots of kernels but never written a single line of Perl code to do so. Whether the tools are written in Perl, C, C++ or Pascal shouldn't matter as long as they end up generating a functional kernel and related bits. I really have no idea what all of the kernel building tools are created with, and I don't see why anyone would care.
It is not that difficult, it is mainly a perl grep function trick
(perldoc -f grep). It makes an array for each key of %s hash (from @F which is array of input fields created by -a option) which has zero value (!$s{$_})
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.