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

./cbuild --no-dbg keeps creating -dbg for kernels #3169

Open
JamiKettunen opened this issue Nov 12, 2024 · 0 comments
Open

./cbuild --no-dbg keeps creating -dbg for kernels #3169

JamiKettunen opened this issue Nov 12, 2024 · 0 comments

Comments

@JamiKettunen
Copy link
Contributor

Affects all kernel packages like linux-stable etc, as a crude hack I've had stuff this before in my kernel templates

--- a/main/linux-stable/template.py
+++ b/main/linux-stable/template.py
@@ -66,6 +66,10 @@ def install(self):
 
     linux.install(self, _flavor)
 
+    if not self.build_dbg:
+        self.rm(self.destdir / "usr/lib/debug", recursive=True)
+        self.rm(self.destdir / f"boot/System.map-*", glob=True)
+
 
 @subpackage("linux-stable-devel")
 def _(self):
@@ -74,7 +78,7 @@ def _(self):
     return ["usr/src", "usr/lib/modules/*/build"]
 
 
-@subpackage("linux-stable-dbg")
+@subpackage("linux-stable-dbg", self.build_dbg)
 def _(self):
     self.options = [
         "!scanrundeps",
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