Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

make

How to script make menuconfig to automate Linux kernel build configuration?

August 11, 2022 by Magenaut

I want to automate a Linux build but eventually get to a point where I need to run what seems to be a very manual step: make menuconfig. This seems to synchronize configs between the OS and kernel configs?

Categories Q&A, Unix & Linux Tags bash, linux-kernel, make Leave a comment

How to determine the maximum number to pass to make -j option?

August 10, 2022 by Magenaut

I want to compile as fast as possible. Go figure. And would like to automate the choice of the number following the -j option. How can I programmatically choose that value, e.g. in a shell script?

Categories Q&A, Unix & Linux Tags cpu, linux, make, multiprocessor, parallelism Leave a comment

How does this Makefile makes C program without even specifying a compiler?

August 10, 2022 by Magenaut

I was using a Makefile from the book “Advanced Linux Programming (2001)” [code]. It was strange for me to see that GNU make does compile the code correctly, without even specifying a compiler in the Makefile. It’s like baking without any recipe!

Categories Q&A, Unix & Linux Tags gcc, gnu-make, linux, make Leave a comment

Installing from source. How to resolve dependencies without destroying the package manager

August 8, 2022 by Magenaut

Compiling and installing software is a pain and problem I cannot overcome. I just want to run down through my understanding of this process with someone more knowledgeable to clear my mind to get to the next level.

Categories Q&A, Unix & Linux Tags make, software-installation Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress