From hgn at posteo.org Mon Oct 14 23:39:12 2019 From: hgn at posteo.org (hgn) Date: Tue, 15 Oct 2019 01:39:12 +0200 Subject: [mkroot] =?utf-8?q?where_to_put_kernel_configuration_options=3F?= Message-ID: <90f54225e12caf02d098cee13cb5fd8c@posteo.de> Hello, I have chosen mkroot to learn more about Linux distributions and kernels and want to play around a bit. In the end there is a hypothetical specialized linux distro for an offline computer where I work, but if "only" learning will be achieved I am happy as well. That said, I am learning to make a kernel and mkroot at the same time. I wanted to try out these kernel options: https://make-linux-fast-again.com/ Where would I put them in mkroot? Thank you for this project! hgn From rob at landley.net Tue Oct 15 19:51:02 2019 From: rob at landley.net (Rob Landley) Date: Tue, 15 Oct 2019 14:51:02 -0500 Subject: [mkroot] where to put kernel configuration options? In-Reply-To: <90f54225e12caf02d098cee13cb5fd8c@posteo.de> References: <90f54225e12caf02d098cee13cb5fd8c@posteo.de> Message-ID: <6750219c-26a7-f702-7b17-22aec5ebc76f@landley.net> On 10/14/19 6:39 PM, hgn wrote: > Hello, > > I have chosen mkroot to learn more about Linux distributions and kernels and > want to play around a bit. In the end there is a hypothetical specialized linux > distro for an offline computer where I work, but if "only" learning will be > achieved I am happy as well. > > That said, I am learning to make a kernel and mkroot at the same time. I wanted > to try out these kernel options: > > https://make-linux-fast-again.com/ > > Where would I put them in mkroot? In https://github.com/landley/mkroot/blob/master/module/kernel you could put them in getminiconfig (options for all architecures) or in architecture-specific section. In the version I merged into toybox I'd probably add a KERNEL_EXTRACONFIG variable to https://github.com/landley/toybox/blob/master/scripts/mkroot.sh#L429 and have it output after $KERNEL_CONFIG in getminiconfig(). Then you could specify more config on the command line, although the newlines would be awkward. Hmmm... Maybe echo "$KERNEL_EXTRACONFIG" | tr '|' '\n' and then you could make root KERNEL_EXTRACONFIG="THINGY=y|THINGY2=y" Or something? (Which raises the question of whether it should be in the environment variable whitelist so you don't have to specify it on the command line. Sigh: design questions.) > Thank you for this project! You're welcome. Let me know if you have any questions. > hgn Rob