-
Notifications
You must be signed in to change notification settings - Fork 5.1k
iso: Improve build and clean up configuration #20991
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Beofre we can build the iso, we need to clone and configure buildroot.
This is required to run iso-menuconfig-{arch}.
|
Hi @nirs. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
ok-to-build-iso |
|
Hi @nirs, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further. |
|
@afbjorklund can you add ok-to-test? the .PHONY change does not affect the build and fixed now. |
This target prepare for building an iso or running menuconfig. With this
change we can run the {iso,linux}-menuconfig-{x86_64,aarch64} targets
without buidling the entire iso.
Previouly it worked only after building the entire iso. Now we make this target without building the iso or running iso-menuconfig. On the first run this downloads and builds lot for packages required to run the linux-menuconfig target, but it is much shorter than buidling the entire iso.
Preveviously we copied the defconfig manauly to the beoard config file. This can be done using the special linux-update-defconfig target. With this change we don't need to keep KERNEL_VERSION in the Makefile, making future upgrade easier.
Run `make iso-menuconfig-aarch64` without making any changes updates the buildroot config. It seems that there were manual changes in the config which are overwritten when running iso-menuconfig. Removing the manual changes to make it easier to edit the configuration with kconfig.
Same as the aarch64 change to make it easier to configure using kconfig.
Same as iso-menuconfig-aarch64, run `make linux-menuconfig-aarch64` and exit without any change to update the config. This seems to change the order, removing manual changes from the config. This will make it easier to configure using kconfig in the future.
Same as the aarch64 changes to make it easier to configure using kconfig in the future.
We run on qemu virt machine or apple virtualization so we don't need support for all kinds of embeded Arm boards. This reduces the arm64 iso size from 410 MiB to 392 MiB.
|
I added another commit removing unnecessary support for various Arm boards. This should not be needed since we run on in a vm. |
|
ok-to-build-iso |
|
Hi @nirs, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further. |
|
/ok-to-test |
This comment has been minimized.
This comment has been minimized.
|
I checked KVM errors:
|
|
/ok-to-test |
|
@nirs thank you for making it faster to iterate on the ISO build, do you mind sharing an example iteration of ISO build using this new target ? do you manually call make prepare-... ? or do you build the iso the way it was before and let it do the work underneath ? if this new make target could help other developers, we could add it to the minikube website |
Without this change this will fail: Because the out/buildroot is created by Same for With this change we can do this to update kernel version: Update kernel version and headers version via kconfig and exit: Run to update linux config for the new kernel:
No
Exactly, it is it internal target, this is also why it is not documented.
It is better not to complicate the docs, this target is relevant only if you wan to modify the makefile. I think that the current docs need update for multiple architectures. Maybe they worked when minikube had only single iso.
I will post another PR to describing updating kernel flow. |
This comment has been minimized.
This comment has been minimized.
|
Hi @nirs, we have updated your PR with the reference to newly built ISO. Pull the changes locally if you want to test with them or update your PR further. |
|
kvm2 driver with docker runtime Times for minikube (PR 20991) start: 53.4s 52.9s 52.1s 53.5s 50.0s Times for minikube ingress: 15.1s 14.6s 15.1s 18.7s 18.6s docker driver with docker runtime Times for minikube start: 23.5s 23.6s 24.4s 24.2s 23.5s Times for minikube ingress: 12.8s 12.8s 12.8s 13.3s 12.3s docker driver with containerd runtime Times for minikube start: 24.4s 22.1s 21.7s 21.6s 25.2s Times for minikube ingress: 22.8s 23.8s 22.8s 39.8s 22.8s |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, nirs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* iso: Extract buildroot target
Beofre we can build the iso, we need to clone and configure buildroot.
This is required to run iso-menuconfig-{arch}.
* iso: Extract iso-prepare-% target
This target prepare for building an iso or running menuconfig. With this
change we can run the {iso,linux}-menuconfig-{x86_64,aarch64} targets
without buidling the entire iso.
* iso: Fix linux-menuconfig-% target
Previouly it worked only after building the entire iso. Now we make this
target without building the iso or running iso-menuconfig.
On the first run this downloads and builds lot for packages required to
run the linux-menuconfig target, but it is much shorter than buidling
the entire iso.
* iso: Simplify linux-menuconfig-%
Preveviously we copied the defconfig manauly to the beoard config file.
This can be done using the special linux-update-defconfig target.
With this change we don't need to keep KERNEL_VERSION in the Makefile,
making future upgrade easier.
* iso: Update buildroot configuration for aarch64
Run `make iso-menuconfig-aarch64` without making any changes updates the
buildroot config. It seems that there were manual changes in the config
which are overwritten when running iso-menuconfig. Removing the manual
changes to make it easier to edit the configuration with kconfig.
* iso: Update buildroot configuration for x86_64
Same as the aarch64 change to make it easier to configure using kconfig.
* iso: Update linux configuration for aarch64
Same as iso-menuconfig-aarch64, run `make linux-menuconfig-aarch64` and
exit without any change to update the config. This seems to change the
order, removing manual changes from the config. This will make it easier
to configure using kconfig in the future.
* iso: Update linux configuration for x86_64
Same as the aarch64 changes to make it easier to configure using kconfig
in the future.
* iso: Disable all platform for aarch64
We run on qemu virt machine or apple virtualization so we don't need
support for all kinds of embeded Arm boards. This reduces the arm64 iso
size from 410 MiB to 392 MiB.
* Updating ISO to v1.36.0-1751221996-20991
* Updating ISO to v1.36.0-1751315722-20991
---------
Co-authored-by: minikube-bot <[email protected]>
* iso: Extract buildroot target
Beofre we can build the iso, we need to clone and configure buildroot.
This is required to run iso-menuconfig-{arch}.
* iso: Extract iso-prepare-% target
This target prepare for building an iso or running menuconfig. With this
change we can run the {iso,linux}-menuconfig-{x86_64,aarch64} targets
without buidling the entire iso.
* iso: Fix linux-menuconfig-% target
Previouly it worked only after building the entire iso. Now we make this
target without building the iso or running iso-menuconfig.
On the first run this downloads and builds lot for packages required to
run the linux-menuconfig target, but it is much shorter than buidling
the entire iso.
* iso: Simplify linux-menuconfig-%
Preveviously we copied the defconfig manauly to the beoard config file.
This can be done using the special linux-update-defconfig target.
With this change we don't need to keep KERNEL_VERSION in the Makefile,
making future upgrade easier.
* iso: Update buildroot configuration for aarch64
Run `make iso-menuconfig-aarch64` without making any changes updates the
buildroot config. It seems that there were manual changes in the config
which are overwritten when running iso-menuconfig. Removing the manual
changes to make it easier to edit the configuration with kconfig.
* iso: Update buildroot configuration for x86_64
Same as the aarch64 change to make it easier to configure using kconfig.
* iso: Update linux configuration for aarch64
Same as iso-menuconfig-aarch64, run `make linux-menuconfig-aarch64` and
exit without any change to update the config. This seems to change the
order, removing manual changes from the config. This will make it easier
to configure using kconfig in the future.
* iso: Update linux configuration for x86_64
Same as the aarch64 changes to make it easier to configure using kconfig
in the future.
* iso: Disable all platform for aarch64
We run on qemu virt machine or apple virtualization so we don't need
support for all kinds of embeded Arm boards. This reduces the arm64 iso
size from 410 MiB to 392 MiB.
* Updating ISO to v1.36.0-1751221996-20991
* Updating ISO to v1.36.0-1751315722-20991
---------
Co-authored-by: minikube-bot <[email protected]>
Previously making the iso-menuconfig-{aarch64,x86_64} or linux-menuconfig-{aarch64,x86_64} targets you had to build the entire iso, since the out/buildroot tree was created by the minikube-iso-{aarch64,x86_64} target.
This change fix the Makefile so you can run the iso-menuconfig-{aarch64,x86_64} or linux-menuconfig-{aarch64,x86_64} directly after checking the source. This makes it much easier to work on the iso configuration.
Previously the linux-menuconfig-{aarch64,x86_64} targets were not using the buildroot facilities, copying files manually using hard coded paths and kernel version. Fixing the target to use the buildroot way removed the unneeded KERNEL_VERSION variable from the Makefile, that made updating kernel version hard.
Running the iso-menuconfig-{aarch64,x86_64} and linux-menuconfig-{aarch64,x86_64} without any change revealed that we had manual changes in the configuration that were not created by config. I run all the targets to update the configuration to the output of kconfig, so future changes do not include unrelated changes.
For aarch64 the image is much larger (410 MiB vs 362 MiB). Turns out that removing unnecessary support for various Arm boards reduces the image to 392 MiB.
Status