Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ Roller provides a pythonic Kernel object for configuring and compiling kernels,
* -n, --new-revision: set new revision to create
* "next" will automatically increment to the next revision
* Omit this to build directly from the selected config without modification
* -c, --config: kernel version to get the initial configuration from. (defaults to current running version)
* -r, --config-revision: kernel revision to use for initial configuration. (defaults to "current", which uses /proc/config.gz)
* -c, --config: kernel version to get the initial configuration from (defaults to current running version)
* -r, --config-revision: kernel revision to use for initial configuration
* "current", which is the default, will use /proc/config.gz
* "none" will base configuration on `make allnoconfig` rather than using current or a saved config file
* -s, --skip-install: don't install kernel to /boot
* -p, --patch: Open a shell before configuration to allow patching the kernel tree
* -b, --build-dir: Set path to use for downloading/extracting kernel (defaults to /tmp)
Expand Down
6 changes: 5 additions & 1 deletion roller.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,11 @@ def configure(self, merge_method='oldconfig'):
subprocess.call(['make', 'mrproper'], stdout=devnull())
except:
raise EnvironmentError('Failed to clean your kernel tree')
if self.config_revision == 'current':
if self.config_revision == 'none':
self.log('Using allnoconfig for initial configuration')
subprocess.call(['make', 'allnoconfig'])
return
elif self.config_revision == 'current':
self.log('Inserting config from current system kernel')
with gzip.open('/proc/config.gz') as old_config:
with open('.config', 'wb') as new_config:
Expand Down