cookutils rev 888

cooklinux: add --allno to build a minimal/custom bzImage
author Christophe Lincoln <pankso@slitaz.org>
date Tue Mar 07 10:44:30 2017 +0100 (2017-03-07)
parents 6ceb2fe81f83
children cc30efdee934
files cooklinux
line diff
     1.1 --- a/cooklinux	Fri Mar 03 02:37:16 2017 +0200
     1.2 +++ b/cooklinux	Tue Mar 07 10:44:30 2017 +0100
     1.3 @@ -4,7 +4,7 @@
     1.4  # No patches, aufs and co, keep it simple. The goal is to let users build
     1.5  # a custom and optimized kernel in a few commands
     1.6  #
     1.7 -# Copyright (C) 2014-15 SliTaz GNU/Linux - BSD License
     1.8 +# Copyright (C) 2014-17 SliTaz GNU/Linux - BSD License
     1.9  #
    1.10  # Author: Christophe Lincoln <pankso@slitaz.org>
    1.11  #
    1.12 @@ -33,6 +33,7 @@
    1.13    --mrproper     Remove all generated files + config + backup files
    1.14    --defconfig    New config with default from ARCH supplied defconfig
    1.15    --tazconfig    New config using current SliTaz /proc/config.gz
    1.16 +  --allno        New minimal config answering no to everything
    1.17    --localmod     Update config removing all unloaded modules
    1.18    --config       Update current config with a text based front-end
    1.19    --menuconfig   Update current config with a menu based program
    1.20 @@ -90,7 +91,7 @@
    1.21  # Install needed packages to compile.
    1.22  for pkg in slitaz-toolchain pkg-config perl xz lzma patch tar bc flex
    1.23  do
    1.24 -	check_pkg $pkg
    1.25 +	check_pkg ${pkg}
    1.26  done
    1.27  
    1.28  # Get the source and extract tarball.
    1.29 @@ -129,6 +130,11 @@
    1.30  	make defconfig
    1.31  fi
    1.32  
    1.33 +# Create a minimal config file.
    1.34 +if [ -n "$allno" ]; then
    1.35 +	make allnoconfig
    1.36 +fi
    1.37 +
    1.38  # Update config and wipe out unloaded modules.
    1.39  if [ -n "$localmod" ]; then
    1.40  	make localmodconfig