1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-14 18:21:41 +03:00
mobile-nixos/bin/kernel-normalize-config
Samuel Dionne-Riel c3d1ece95c bin/kernel-normalize-config: Use bin/menuconfig
This does present the drawback of not validating the kernel builds.
Though I expect the user will build the kernel anyway after.
2020-03-27 16:34:33 -04:00

16 lines
423 B
Ruby
Executable File

#!/usr/bin/env nix-shell
#!nix-shell -p ruby -i ruby
# This script is expected to be used to copy back the `kernel-builder` built
# linux configuration to the kernel's source directory.
#
# Use this to normalize the configuration after:
#
# - Changing configuration options
# - Changing the kernel version
ROOT = File.join(__dir__, "..")
exec(File.join(ROOT, "bin", "menuconfig"), "--only-save", *ARGV)
# vim: ft=ruby