# HG changeset patch # User Christophe Lincoln # Date 1488879870 -3600 # Node ID de8a102a01d970407eca7e790754fa2de4702c3d # Parent 6ceb2fe81f83b57d475bf43ce4cbd307f943182c cooklinux: add --allno to build a minimal/custom bzImage diff -r 6ceb2fe81f83 -r de8a102a01d9 cooklinux --- a/cooklinux Fri Mar 03 02:37:16 2017 +0200 +++ b/cooklinux Tue Mar 07 10:44:30 2017 +0100 @@ -4,7 +4,7 @@ # No patches, aufs and co, keep it simple. The goal is to let users build # a custom and optimized kernel in a few commands # -# Copyright (C) 2014-15 SliTaz GNU/Linux - BSD License +# Copyright (C) 2014-17 SliTaz GNU/Linux - BSD License # # Author: Christophe Lincoln # @@ -33,6 +33,7 @@ --mrproper Remove all generated files + config + backup files --defconfig New config with default from ARCH supplied defconfig --tazconfig New config using current SliTaz /proc/config.gz + --allno New minimal config answering no to everything --localmod Update config removing all unloaded modules --config Update current config with a text based front-end --menuconfig Update current config with a menu based program @@ -90,7 +91,7 @@ # Install needed packages to compile. for pkg in slitaz-toolchain pkg-config perl xz lzma patch tar bc flex do - check_pkg $pkg + check_pkg ${pkg} done # Get the source and extract tarball. @@ -129,6 +130,11 @@ make defconfig fi +# Create a minimal config file. +if [ -n "$allno" ]; then + make allnoconfig +fi + # Update config and wipe out unloaded modules. if [ -n "$localmod" ]; then make localmodconfig