From patchwork Mon Sep 2 20:31:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 48584 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 306AECA0ED3 for ; Mon, 2 Sep 2024 20:32:24 +0000 (UTC) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) by mx.groups.io with SMTP id smtpd.web10.8362.1725309135577121878 for ; Mon, 02 Sep 2024 13:32:15 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=YxIsYvSm; spf=pass (domain: gmail.com, ip: 209.85.128.48, mailfrom: adrian.freihofer@gmail.com) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-427fc97a88cso38333445e9.0 for ; Mon, 02 Sep 2024 13:32:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725309134; x=1725913934; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=rwgeIikcoG8umDLIz3yONNQyPRfLfkDrOSxK9KsF110=; b=YxIsYvSmjsO1XAebgEQvDZUEd6II6QgMdjRjkJwsjzLOCOBdVVY/4awWGItuMRUZy9 fH3aLv7p1TNtWS8HkIOC9kn5+ZgzpcQ3K+Z6di3RKIMmIMXnbIMGelBxVMhUSb759JyR rQEGLFNEodNr0CFbNsIKDwjPGQaAxzvpyglUWZ2/5D99JkGmW/T9gAwnj9f4fHM0e6Pr t7doelPYPQeUvDKqt/y3Z690PJj3EOgMJVZStqVMrg2RDecwrzKjEzSG812j2QOw/6tW RuRfMJJH3Fzk110Gjb5NEcXeTaY4JMScPGSuaomW23XXd+k9q24VcAsVqpyBbHbNmQpU OBYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725309134; x=1725913934; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rwgeIikcoG8umDLIz3yONNQyPRfLfkDrOSxK9KsF110=; b=KvlpeqfzKtGJsrSg3dVo2g1w7TfNpQiFt5MGOjlVEA8wD7+T9f9T8U9RxJi0m2gkBT 43ukx7IfEZGE7R9uckh42W8pSsFtnN+6V2zCHPzY2jys9Tpi4bWZFeYXEA20RldHlwjh InF797EPetQcSKng4qb9jvaAgzWPtxcAj3NFUEa8vn/LImiBxKuuMZDdl/W8VXKni5+H 3VotWCA6dMCEN3vv6cQkwULS8rIYKXVvX/GCxqX6+mzFbABzNLBtircD+7EEbUCbXRmL 6Y3ZOiBboynwidgwVV1YmPMNUtIEb3twR9FnsQAvfgIkRA00Yd4e1ARZ7ryAV6nIibGe 64FA== X-Gm-Message-State: AOJu0Ywu3CiFNDEMX8N7Pho2Yts9Mlr5dJnluKaEYGU1bAh/8wKwoZ3m BjFB16xWhFL9p5+XZXAwpAbH97Va+V7pwTIw3NFK4TaR0zHGyGsjS0knkA== X-Google-Smtp-Source: AGHT+IGPsilnlmCrkwcjQFqnF2MOYolamLHqG9+icxGIEmA0Ky2Jy61f6mUNsbOokGEP0c5734i1qA== X-Received: by 2002:a05:600c:511d:b0:426:5ee3:728b with SMTP id 5b1f17b1804b1-42c82f53210mr35446115e9.13.1725309133171; Mon, 02 Sep 2024 13:32:13 -0700 (PDT) Received: from wsadrian16.fritz.box ([2a02:169:59a6:0:55c4:f628:91f3:4287]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bbc8de253sm96537205e9.0.2024.09.02.13.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 13:32:12 -0700 (PDT) From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH 1/3] uboot-config: fix devtool modify with kernel-fitimage Date: Mon, 2 Sep 2024 22:31:52 +0200 Message-ID: <20240902203154.265515-1-adrian.freihofer@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 02 Sep 2024 20:32:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/204111 From: Adrian Freihofer How to reproduce: - UBOOT_CONFIG must be used. With UBOOT_MACHINE it works fine. A simple example based on oe-core is to modify the beaglebone-yocto.conf file like this: -UBOOT_MACHINE = "am335x_evm_defconfig" +UBOOT_CONFIG = "foo" +UBOOT_CONFIG[foo] = "am335x_evm_defconfig" - A build configuration which inherits the kernel-fitimage.bbclass is needed. For example: MACHINE = "beaglebone-yocto" KERNEL_IMAGETYPE = "Image" KERNEL_IMAGETYPES += " fitImage " KERNEL_CLASSES = " kernel-fitimage " devtool modify linux-yocto devtool build linux-yocto ... | cp: cannot stat '.../linux-yocto-6.6.21+git/am335x_evm_defconfig/.config': No such file or directory | WARNING: .../linux-yocto/6.6.21+git/temp/run.do_configure.2081673:172 exit 1 from 'cp .../linux-yocto-6.6.21+git/am335x_evm_defconfig/.config .../build/workspace/sources/linux-yocto/.config.baseline' The reason for this problem is that the uboot-config.bbclass sets the variable KCONFIG_CONFIG_ROOTDIR to a path that makes sense for u-boot, but not for other recipes. However, the kernel-fitimage.bbclasse, for example, inherits the uboot-config.bbclass, which brings the u-boot-specific path into the kernel build context. This change removes the uboot-specific KCONFIG_CONFIG_ROOTDIR path from recipes other than u-boot itself. Signed-off-by: Adrian Freihofer --- meta/classes-recipe/uboot-config.bbclass | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/meta/classes-recipe/uboot-config.bbclass b/meta/classes-recipe/uboot-config.bbclass index e55fc38b7c7..09001997d3d 100644 --- a/meta/classes-recipe/uboot-config.bbclass +++ b/meta/classes-recipe/uboot-config.bbclass @@ -101,9 +101,9 @@ python () { # The "doc" varflag is special, we don't want to see it here ubootconfigflags.pop('doc', None) ubootconfig = (d.getVar('UBOOT_CONFIG') or "").split() + PN = d.getVar("PN") if not ubootmachine and not ubootconfig: - PN = d.getVar("PN") FILE = os.path.basename(d.getVar("FILE")) bb.debug(1, "To build %s, see %s for instructions on \ setting up your machine config" % (PN, FILE)) @@ -140,9 +140,12 @@ python () { if not found: raise bb.parse.SkipRecipe("The selected UBOOT_CONFIG key %s has no match in %s." % (ubootconfig, ubootconfigflags.keys())) - if len(ubootconfig) == 1: - d.setVar('KCONFIG_CONFIG_ROOTDIR', os.path.join(d.getVar("B"), d.getVar("UBOOT_MACHINE").strip())) - else: - # Disable menuconfig for multiple configs - d.setVar('KCONFIG_CONFIG_ENABLE_MENUCONFIG', "false") + # This recipe might be inherited e.g. by the kernel recipe via kernel-fitimage.bbclass + # Ensure the uboot specific menuconfig settings do not leak into other recipes + if 'u-boot' in PN: + if len(ubootconfig) == 1: + d.setVar('KCONFIG_CONFIG_ROOTDIR', os.path.join(d.getVar("B"), d.getVar("UBOOT_MACHINE").strip())) + else: + # Disable menuconfig for multiple configs + d.setVar('KCONFIG_CONFIG_ENABLE_MENUCONFIG', "false") } From patchwork Mon Sep 2 20:31:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 48585 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 62B03CD13CF for ; Mon, 2 Sep 2024 20:32:24 +0000 (UTC) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) by mx.groups.io with SMTP id smtpd.web11.8324.1725309138302061373 for ; Mon, 02 Sep 2024 13:32:18 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=BGdUDMJn; spf=pass (domain: gmail.com, ip: 209.85.221.49, mailfrom: adrian.freihofer@gmail.com) Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-374c326c638so1448338f8f.2 for ; Mon, 02 Sep 2024 13:32:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725309136; x=1725913936; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lVqkt86fI3P0AgBKNKZ/pj0uMYLzG2ymF5DwS88kMJ4=; b=BGdUDMJns/FoJqaXHvpV4U0E+ztI7sxB2xF1+gcU9f0qAd2FQnRRXDa+hE82fhWYyg 8j1HClEs1o7ggGiRAxTrCU0f5YIFgCucbbryHPGZz6giYR0YQKnbfYIuKoNdpYA56H1s inxl2bqgMAdXBJJ+PnXpMIlM45yfmQAlJ8br03EcLTieW0p3QnvSImG9TXodyLEPhAjv ulxdZAd83q3dQ7h/5NCut+wXkhs/NSYUcWXkGHSKV4mvW7X14kKhjr2FBhzgOJqb7zDt HHo6ktj+QAnPdXb93Ol3L+7lZvJJknXnCGbL9VOWpS3DxthRja5nnQmNQKqmOCbD2mhK 4IjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725309136; x=1725913936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lVqkt86fI3P0AgBKNKZ/pj0uMYLzG2ymF5DwS88kMJ4=; b=fImXAjjarOkbvKud0x7fW9dyH5yOy6kZuo6yIg3UwZsY/zXCsvUmV1OAino8NlcbId Q/6gBwZtrdvc5JLCZ4IM4wx4X2OZskzLXaG2Mgn7NnOV915aqpAJBqSe24m+3lNbpPQk 0MmS1z2ExO3Eo2+749gxCyRj2DoXpRzVikS7KztN/ce+gNBkglEgcrnHkMs61CG/f9lh VUOhFTFZjzdsl/mTzJtEDJ8ZQPXOk/IEp60qKHSA6AsYpBiMV5iwfKqEUvigQxp71EdW UJrK4Ho2H3ng2ApJtwHmWHRKdcqR1+CsbGqm5kc1fCTNCocdQrHh1GW+t/PxDgrc7Nok wtwQ== X-Gm-Message-State: AOJu0YxzkF5InCuGV4vR3391uOxB93MiTF32ZS+NAXEaO/3MmlMRwDuR YgNFdbRGA5rF0epjrD0HcViLJBWNVJnjJHylscGC16XIgCRP5hS/+6kPjA== X-Google-Smtp-Source: AGHT+IFr0r4jJ5khBHwvVljLdd82cgYbx6Ruqar6BBFdBHVh7qB21jjBZV9eIzTlRKSuk9nZiUNibQ== X-Received: by 2002:a5d:4146:0:b0:374:ba23:4b3f with SMTP id ffacd0b85a97d-374bef3a5a0mr5923211f8f.9.1725309135684; Mon, 02 Sep 2024 13:32:15 -0700 (PDT) Received: from wsadrian16.fritz.box ([2a02:169:59a6:0:55c4:f628:91f3:4287]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bbc8de253sm96537205e9.0.2024.09.02.13.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 13:32:15 -0700 (PDT) From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH 2/3] devtool: modify kernel adds append twice Date: Mon, 2 Sep 2024 22:31:53 +0200 Message-ID: <20240902203154.265515-2-adrian.freihofer@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240902203154.265515-1-adrian.freihofer@gmail.com> References: <20240902203154.265515-1-adrian.freihofer@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 02 Sep 2024 20:32:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/204112 From: Adrian Freihofer Drop the redundant generation of the do_configure:append section for the kernel. The same append is generated twice: if bb.data.inherits_class('kernel', rd): f.write('\ndo_configure:append() {\n' ' cp ${B}/.config ${S}/.config.baseline\n' ' ln -sfT ${B}/.config ${S}/.config.new\n' '}\n') KCONFIG_CONFIG_ENABLE_MENUCONFIG ??= "true" KCONFIG_CONFIG_ROOTDIR ??= "${B}" if rd.getVarFlag('do_menuconfig', 'task'): f.write('\ndo_configure:append() {\n' ' if [ ${@oe.types.boolean(d.getVar("KCONFIG_CONFIG_ENABLE_MENUCONFIG"))} = True ]; then\n' ' cp ${KCONFIG_CONFIG_ROOTDIR}/.config ${S}/.config.baseline\n' ' ln -sfT ${KCONFIG_CONFIG_ROOTDIR}/.config ${S}/.config.new\n' ' fi\n' '}\n') In contradiction to the first code block the second code block considers the variables which is correct. Signed-off-by: Adrian Freihofer --- scripts/lib/devtool/standard.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 1d0fe137887..312eb8ab506 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -955,10 +955,6 @@ def modify(args, config, basepath, workspace): f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout ' 'do_fetch do_unpack do_kernel_configcheck"\n') f.write('\ndo_patch[noexec] = "1"\n') - f.write('\ndo_configure:append() {\n' - ' cp ${B}/.config ${S}/.config.baseline\n' - ' ln -sfT ${B}/.config ${S}/.config.new\n' - '}\n') f.write('\ndo_kernel_configme:prepend() {\n' ' if [ -e ${S}/.config ]; then\n' ' mv ${S}/.config ${S}/.config.old\n' From patchwork Mon Sep 2 20:31:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Freihofer X-Patchwork-Id: 48583 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 31C93CD3420 for ; Mon, 2 Sep 2024 20:32:24 +0000 (UTC) Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) by mx.groups.io with SMTP id smtpd.web10.8363.1725309139970621876 for ; Mon, 02 Sep 2024 13:32:20 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mj3bxU/d; spf=pass (domain: gmail.com, ip: 209.85.128.52, mailfrom: adrian.freihofer@gmail.com) Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-42bb9d719d4so33119095e9.3 for ; Mon, 02 Sep 2024 13:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725309138; x=1725913938; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ZQLCQVhf1j+4T/Ts+ZPw3R8gGMd3TXwoFmHuqhI4UG0=; b=mj3bxU/dqLUL0vzk1pOgLv+w08Jgf7ZPLfCJDvfc+ih3ebaYChDK9HyeN+/4Bz9Db8 n6MnZAedYrweHazlU/SiPCERi3iD3vu9EefEgn00czxT1BEg4ZGPt94LJGFkUCc7Tj8R la42Q+qk8YkuYmbrSLGhGuiH4no5DZuYZhL16a0KLqYj3Fiyhh6UnCLwyFRi7HLJO4BC YXKuYqJ0X8R5oSixKIOc7gRTN+mP/j9beHZ935TyC5be7HK9ceZmTXELA1m/Z/x/k3xt rq12Xez3AEwhfJXXmQQGs4HIKoHRN+yWC89vENQ/KO3LaoaJzPlJBYPhpD3w/WIZKCgA x90w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725309138; x=1725913938; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZQLCQVhf1j+4T/Ts+ZPw3R8gGMd3TXwoFmHuqhI4UG0=; b=fOan/sFDOBWXyQuw8wUQws1PLSu+Uzc34d/UZlJhJd5olS45i7yLRV85UIpVHAw9bD lhx2knJwAGbhA/cGAoxvN6uYzYC8HYTFHs5LwTcTQ2+u0lGvRylZfirfoX935muDj1uU hk9oGzOF1w548ZY36Rmzhtby5ibu3KmoDftOIbMlhHMmPe2EDIq5WpKuVzdkyv5f6LGk /6N9d7vDS7ABknJpI8HgkDPd8BPK6Lf2KC4fZZeYLLbr20vQ6fQ1lXHz1GRwUaABfuel rmiBeEHPC/PTOL0Bdr542cwFYi0RBnmRlr15OTKYX5PmINWkSv0iF0IClhx6uTaN7psY GTwg== X-Gm-Message-State: AOJu0Yz0h24EQClde9JdPpeN3M4tVfdLiMbI3vu8jJIG1B7VIokq/VqH PZzv9YeCH2H/516cn9Uxxv5kYXBOwRAIriZZmNNJ0pwZCFWlnIn/7ncx4Q== X-Google-Smtp-Source: AGHT+IHSq84F7dmTX24DKbcnC5e/78bzsmjvMW1Pcn8joNGLfgul129Ak2VQnRDiAtyfXFOcQ5/F1w== X-Received: by 2002:a05:600c:1ca9:b0:42b:af1c:651 with SMTP id 5b1f17b1804b1-42c880ec221mr10306195e9.5.1725309137708; Mon, 02 Sep 2024 13:32:17 -0700 (PDT) Received: from wsadrian16.fritz.box ([2a02:169:59a6:0:55c4:f628:91f3:4287]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42bbc8de253sm96537205e9.0.2024.09.02.13.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Sep 2024 13:32:17 -0700 (PDT) From: Adrian Freihofer To: openembedded-core@lists.openembedded.org Cc: Adrian Freihofer Subject: [PATCH 3/3] devtool: remove obsolete SRCTREECOVEREDTASKS handling Date: Mon, 2 Sep 2024 22:31:54 +0200 Message-ID: <20240902203154.265515-3-adrian.freihofer@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240902203154.265515-1-adrian.freihofer@gmail.com> References: <20240902203154.265515-1-adrian.freihofer@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 02 Sep 2024 20:32:24 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/204113 From: Adrian Freihofer The kernel-yocto.bbclass defines some tasks tasks and it also adds these tasks to the SRCTREECOVEREDTASKS list. There is no need for devtool to duplicate this code and override what the kernel-yocto.bbclass already does. devtool modify generates a linux-yocto.6.6.bbappend containing: SRCTREECOVEREDTASKS="\ do_fetch \ do_kernel_checkout \ do_kernel_configcheck \ do_unpack \ do_validate_branches \ " do_patch[noexec] = "1" linux-yocto set SRCTREECOVEREDTASKS to SRCTREECOVEREDTASKS="\ do_fetch \ do_kernel_checkout \ do_kernel_configcheck \ do_patch \ do_unpack \ do_validate_branches \ " The code in devtool modify is therefore considered as redundant and removed. Signed-off-by: Adrian Freihofer --- scripts/lib/devtool/standard.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 312eb8ab506..b2e1a6ca3a5 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py @@ -952,9 +952,6 @@ def modify(args, config, basepath, workspace): f.write('EXTERNALSRC_BUILD:pn-%s = "%s"\n' % (pn, srctree)) if bb.data.inherits_class('kernel', rd): - f.write('SRCTREECOVEREDTASKS = "do_validate_branches do_kernel_checkout ' - 'do_fetch do_unpack do_kernel_configcheck"\n') - f.write('\ndo_patch[noexec] = "1"\n') f.write('\ndo_kernel_configme:prepend() {\n' ' if [ -e ${S}/.config ]; then\n' ' mv ${S}/.config ${S}/.config.old\n'