Skip to content

Commit

Permalink
Merge pull request #1896 from r2d4/easy-iso-make
Browse files Browse the repository at this point in the history
Add makefile rule for linux-defconfig
  • Loading branch information
r2d4 committed Aug 28, 2017
2 parents a40b2f0 + d880f6b commit 54395a6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ minikube_iso: # old target kept for making tests happy
$(MAKE) -C $(BUILD_DIR)/buildroot
mv $(BUILD_DIR)/buildroot/output/images/rootfs.iso9660 $(BUILD_DIR)/minikube.iso

# Change the kernel configuration for the minikube ISO
.PHONY: linux-menuconfig
linux-menuconfig:
$(MAKE) -C $(BUILD_DIR)/buildroot linux-menuconfig
$(MAKE) -C $(BUILD_DIR)/buildroot linux-savedefconfig
cp $(BUILD_DIR)/buildroot/output/build/linux-4.9.13/defconfig deploy/iso/minikube-iso/board/coreos/minikube/linux-4.9_defconfig

out/minikube.iso: $(shell find deploy/iso/minikube-iso -type f)
ifeq ($(IN_DOCKER),1)
$(MAKE) minikube_iso
Expand Down
25 changes: 7 additions & 18 deletions docs/contributors/minikube_iso.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ $ make menuconfig
$ make
```

To change the kernel configuration, execute:

```
$ cd out/buildroot
$ make linux-menuconfig
$ make
```

The last commands copies changes made to the kernel configuration to the minikube-iso defconfig.

### Saving buildroot/kernel configuration changes

To save any buildroot configuration changes made with `make menuconfig`, execute:

```
Expand All @@ -79,13 +67,14 @@ $ git status
M deploy/iso/minikube-iso/configs/minikube_defconfig
```

To save any kernel configuration changes made with `make linux-menuconfig`, execute:
### Saving buildroot/kernel configuration changes


To make any kernel configuration changes and save them, execute:

```
$ cd out/buildroot
$ make linux-savedefconfig
$ cp output/build/linux-4.9.13/defconfig \
../../deploy/iso/minikube-iso/board/coreos/minikube/linux-4.9_defconfig
$ make linux-menuconfig
```

The changes will be reflected in the `deploy/iso/minikube-iso/configs/minikube_defconfig` file.
This will open the kernel configuration menu, and then save your changes to our
iso directory after they've been selected.

0 comments on commit 54395a6

Please sign in to comment.