Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

KERNEL_CONFIGURE=yes saves .config into /armbian/config/kernel #4885

Open
1 task done
iav opened this issue Feb 28, 2023 · 6 comments
Open
1 task done

KERNEL_CONFIGURE=yes saves .config into /armbian/config/kernel #4885

iav opened this issue Feb 28, 2023 · 6 comments
Assignees

Comments

@iav
Copy link
Contributor

iav commented Feb 28, 2023

What happened?

When I add KERNEL_CONFIGURE=yes to build command after wotk with gui configurator finished config saves into 2 place:

[馃惓|馃尡] Exporting new kernel config [ /armbian/output/config/linux-rockchip64-edge.config ]
[馃惓|馃敤]   '.config' -> '/armbian/output/config/linux-rockchip64-edge.config'
[馃惓|馃尡] Exporting new kernel config - git commit pending [ /armbian/config/kernel/linux-rockchip64-edge.config ]
[馃惓|馃敤]   '.config' -> '/armbian/config/kernel/linux-rockchip64-edge.config'
[馃惓|馃敤]   'defconfig' -> '/armbian/output/config/linux-rockchip64-edge.defconfig'
[馃惓|馃敤]   'defconfig' -> '/armbian/config/kernel/linux-rockchip64-edge.config.defconfig'

config/kernel/ and output/config/.

I think it's a bug, new config should be saved only into output/config, as early.

But I am not sure.
Am I right, or miss something?

How to reproduce?

./compile.sh BOARD=helios64 BRANCH=edge RELEASE=lunar BUILD_MINIMAL=no BUILD_DESKTOP=no KERNEL_ONLY=yes KERNEL_CONFIGURE=yes

Branch

main (main development branch)

On which host OS are you observing this problem?

Jammy

Relevant log output

(https://paste.next.armbian.com/irugisalis)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@rpardini
Copy link
Member

rpardini commented Mar 1, 2023

Oh yes, you're right. As you noticed I also added the defconfig there.

Those were experiments that I left in; might be a bug or a feature, depending on your point of view. In the end, it was meant as a "conversation starter" which just happened...

  1. Writing to the place "where the .config came from originally" (could also be userpatches...) could slightly help with sending PR's (was intended for Igor's enjoyment, dunno if it happened, or if it just annoys). I am 100% ok with removing it or putting under a flag.

  2. Switching to the defconfig might alleviate the absolute insanity that is managing all these configs long-term? Or not. 馃ぃ Again, also super OK with removing or going forward.

Thanks for catching this!

@The-going
Copy link
Contributor

I think it's a bug, new config should be saved only into output/config, as early.

I totally agree.
The best option is the ability to save in this folder with a choice of file name.
And allow users to use this file in the subsequent assembly\reassembly by simply specifying this name in the key.

example.
old variant:

KERNEL_CONFIGURE="yes"
KERNEL_KEEP_CONFIG="yes"

new variant:

KERNEL_CONFIGURE="yes"
KERNEL_KEEP_CONFIG="bpim64-mini.v715-rt.config"

@igorpecovnik
Copy link
Member

or putting under a flag.

This. I find it useful. For defconfig need some brainstorming ...

@iav
Copy link
Contributor Author

iav commented Mar 15, 2023

.defconfig not used by armbian if stored in userpatches

@rpardini
Copy link
Member

Hmm, .defconfig is not used at all (hopefully, unless I messed up badly), either in userpatches or config/kernel. You can copy/move the .defconfig as .config and that will work, though.

I think @amazingfate had some benefits from using the defconfig for some config diff'ing, and I think even suggested to manually switch from regular-huge-.config to .defconfig-slim-.config on rk3588 legacy... If experience is good, we can automate the switch and use for all families (just write savedefconfig's output into .config, and drop the separate .defconfig).

For now, I think adding *.defconfig to .gitignore is probably a good idea?

@rpardini rpardini self-assigned this Mar 22, 2023
@rpardini rpardini added the Work in progress Unfinished / work in progress label Mar 22, 2023
@igorpecovnik igorpecovnik added Software and removed Work in progress Unfinished / work in progress labels Nov 15, 2023
@github-actions github-actions bot removed the Software label Dec 5, 2023
@enok71
Copy link

enok71 commented Apr 2, 2024

In yocto it's possible to create defconfig "fragments", that is a sort of overrides to the selected targets defconfig. These fragments tend to become really minimal and readable. Would be really convenient to also produce such fragment file in armbians kernel-config function (or some new function) and then just be able to drop such fragments under userpatches.
See e.g. here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants