Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 36082C43458 for ; Sat, 11 Jul 2026 10:50:59 +0000 (UTC) Received: from cpanel10.indieserve.net (cpanel10.indieserve.net [199.212.143.9]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.2903.1783767052286276193 for ; Sat, 11 Jul 2026 03:50:52 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@crashcourse.ca header.s=default header.b=ZSGmscae; spf=pass (domain: crashcourse.ca, ip: 199.212.143.9, mailfrom: rpjday@crashcourse.ca) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crashcourse.ca; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: To:From:Date:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=YJwnrgg2IvxapkvBYkdtjmGwxH3MP+l2pYC2UqSFBDw=; b=ZSGmscaejwE+fVdZ9eu0RiU+9u QZ1A8/BRnKXWM7wdwDVAkpYe0MuG4KSYFofEQshtVDzQr+Mst43k1XDBOl6wVXmn5I/6Sn+jnN9Gp 0qisGpbTcuDRinM3I6mri5ykNdt07/KsoZ4cZXKY9lPKfllN5jVMDzqhIq41n1h8p6WFEdECQCLcI MfGSDAsF1PohDSGhkm6stLENTg/J4ROXAsdqGbmpAHYnbSdFItd3d/aKxj2whdI3ESt9MyPoRLn4K H8dNFCielxiyEBwp1c34VqcU/7ZbbjXZ1L3xCQzMZndmM361lEGcu2RJQxW+/pX9m1S//cFbMtwc1 6er7h7hg==; Received: from pool-174-115-41-146.cpe.net.cable.rogers.com ([174.115.41.146]:54308 helo=sheena) by cpanel10.indieserve.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.4) (envelope-from ) id 1wiVIG-0000000B7TR-1WeV for openembedded-core@lists.openembedded.org; Sat, 11 Jul 2026 06:50:50 -0400 Date: Sat, 11 Jul 2026 06:50:17 -0400 (EDT) From: "Robert P. J. Day" To: OE Core mailing list Subject: setting KERNEL_IMAGE_STRIP_EXTRA_SECTIONS blows up building linux-yocto Message-ID: <319bb00c-9712-4aa7-38b0-e1ad2bab840b@crashcourse.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cpanel10.indieserve.net X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Get-Message-Sender-Via: cpanel10.indieserve.net: authenticated_id: rpjday+crashcourse.ca/only user confirmed/virtual account not confirmed X-Authenticated-Sender: cpanel10.indieserve.net: rpjday@crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Sat, 11 Jul 2026 10:50:59 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/240709 testing my recent docs submission documenting KERNEL_IMAGE_STRIP_EXTRA_SECTIONS, and it did not go well. i'm iterating through all of the tasks for building linux-yocto for a rockchip-based orangepi-5-plus, and everything worked fine up to and including the do_transform_kernel() task. for fun, i added to my local.conf: KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment" and manually ran the do_strip() task: $ bitbake -c strip linux-yocto to get: ERROR: linux-yocto-6.18.35+git-r0 do_strip: Error executing a python function in exec_func_python() autogenerated: The stack trace of python calls that resulted in this exception/failure was: File: 'exec_func_python() autogenerated', lineno: 2, function: 0001: *** 0002:do_strip(d) 0003: File: '/home/rpjday/oe/layers/openembedded-core/meta/classes-recipe/kernel.bbclass', lineno: 753, function: do_strip 0749: 0750: if (extra_sections and kernel_image.find(d.getVar('KERNEL_IMAGEDEST') + '/vmlinux') != -1): 0751: kernel_image_stripped = kernel_image + ".stripped" 0752: shutil.copy2(kernel_image, kernel_image_stripped) *** 0753: oe.package.runstrip((kernel_image_stripped, 8, strip, extra_sections)) 0754: bb.debug(1, "KERNEL_IMAGE_STRIP_EXTRA_SECTIONS is set, stripping sections: " + \ 0755: extra_sections) 0756:} 0757:do_strip[dirs] = "${B}" Exception: TypeError: runstrip() missing 2 required positional arguments: 'elftype' and 'strip' ERROR: Logfile of failure stored in: /home/rpjday/oe/builds/orangepi-5-plus/build/tmp/work/orangepi_5_plus-oe-linux/linux-yocto/6.18.35+git/temp/log.do_strip.2408627 ERROR: Task (/home/rpjday/oe/layers/openembedded-core/meta/recipes-kernel/linux/linux-yocto_6.18.bb:do_strip) failed with exit code '1' all i did was add that line to my local.conf, is there something else i'm missing in order to use that feature? rday