Skip to content

Commit

Permalink
CLEANME!!: menuconfig with external devices
Browse files Browse the repository at this point in the history
  • Loading branch information
samueldr committed Jul 26, 2020
1 parent 6f5edac commit d888b7b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bin/menuconfig
Expand Up @@ -18,7 +18,8 @@ if other_args.empty?
end

DEVICE = other_args.shift
FILE = Dir.glob(File.join(ROOT, "devices", DEVICE, "kernel", "config.*")).sort.first
FILE = other_args.shift
#FILE = Dir.glob(File.join(Dir.pwd, "devices", DEVICE, "kernel", "config.*")).sort.first

ONLY_SAVE = !!params.delete("--only-save")

Expand All @@ -42,7 +43,7 @@ Dir.chdir(ROOT) do
tool = File.join(`#{[
"nix-build",
"--no-out-link",
"--argstr", "device", DEVICE,
"--arg", "device", DEVICE,
"-A", "config.mobile.boot.stage-1.kernel.package.menuconfig"
].shelljoin}`.strip, "bin/nconf")

Expand Down

0 comments on commit d888b7b

Please sign in to comment.