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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BALENA_DEFCONFIG_NAME not working #3276

Open
dcaputo-harmoni opened this issue Oct 12, 2023 · 0 comments
Open

BALENA_DEFCONFIG_NAME not working #3276

dcaputo-harmoni opened this issue Oct 12, 2023 · 0 comments

Comments

@dcaputo-harmoni
Copy link

There is an undefined variable in kernel-balena.bbclass which is only exposed when the BALENA_DEFCONFIG_NAME parameter is set. The patch below resolves the error by correcting the typo in the variable name:

diff --git a/meta-balena-common/classes/kernel-balena.bbclass b/meta-balena-common/classes/kernel-balena.bbclass
--- meta-balena-common/classes/kernel-balena.bbclass
+++ meta-balena-common/classes/kernel-balena.bbclass
@@ -1034,9 +1034,9 @@
     resinDefconfig = d.getVar("BALENA_DEFCONFIG_NAME", True)
     resinDefconfigPath = d.getVar("WORKDIR", True) + '/' +  resinDefconfig
     wantedConfigs = getKernelSetConfigs(resinDefconfigPath)
     if wantedConfigs:
-        configured = wantedConfigs.intersection(allSetConfigs)
+        configured = wantedConfigs.intersection(allSetKernelConfigs)
         notconfigured = wantedConfigs.difference(configured)
         for config in notconfigured:
             if not config.endswith('=n'):
                 bb.warn("Checking for %s in the resin kernel configs failed from %s."

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

No branches or pull requests

1 participant