From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6802611076497145856 X-Received: by 2002:a17:902:b118:: with SMTP id q24mr4480730plr.0.1584363382980; Mon, 16 Mar 2020 05:56:22 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a17:90a:8048:: with SMTP id e8ls7048717pjw.0.canary-gmail; Mon, 16 Mar 2020 05:56:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsPM4J79TLMNNiN1urthlsSoGr9gC8aw4M3q2MUeAut0eIbne2GlPT1U6LTQ9e0/4ldkULK X-Received: by 2002:a17:90a:198b:: with SMTP id 11mr26676573pji.23.1584363382545; Mon, 16 Mar 2020 05:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584363382; cv=none; d=google.com; s=arc-20160816; b=NolQpC33PH4zLFFBE7i/iWMZaUpbD1hEI8ydZHJZ0MEJSWx649o9NnMZ3JyH4MO73T XWpdka7ixQFL2UuxA3/0dYuTKNS1BJ9O/GEpn9QPtn5uep0qRXZCQxgQH34iG+35eL26 v2F8eT6WKPGGRnt+JipTmo9w4JGcu87b749KDt4tkqwLY48t1TiB8d7/9Dxxt9wYjyQo GJRCpHDSm+pn3iIiXQjZ1QU50PNt5jUzsuSHmYcwxTRzY2uZAUlZ3Y+japORrI7NIIbJ ahVF1v6Wzm8sbbbx0lDYKJJr6U3YcTEX5basSTX+FkWxGBfMN16JqCRXEWhnXsoCFuGP hT5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:ironport-sdr:ironport-sdr; bh=gcCrAvZv2g2b4tG2XKnffboVgZkVS5ahJhIdiiKlHDc=; b=jt8373wipZbnnBxp8s6VVRHggEAW+j3S7dPjcUZ3g5oeeIz2+hp5szkp6Pi8qQ+d0G hkjd9/8c/5G4duIjSsd3NLCfJKQJJPC2djmUjeCE6/kTeLUMNjE/z3rrqsLOkY3dZMUu s5Aw0jo8brdJ83myer7zWu7qg7OZwmsCTqpcWAyJs764QphMuTAKG7BqPWP697mSJA7B TVXu2j/j+J1pnX22ucUEIgp7Gv+Uaj8OCl2HEuh0fRctQP+xRcwIgTnEpy5K1KpaSLhJ SVjbPNWrReS95jjcPWnEL2HUdQfhuiOVUchaurmEW7jYKJPqO4BfR39wyxT3q3p7twSV 8NSA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com. [68.232.141.98]) by gmr-mx.google.com with ESMTPS id h10si1068956pju.1.2020.03.16.05.56.22 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Mar 2020 05:56:22 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) client-ip=68.232.141.98; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 68.232.141.98 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com IronPort-SDR: 5yi4R+dLGv+ck0fKRGEHBm6Wgckd8bBFZoUiIHzQtZeWtFPz5AAJYaLVxn0u1Ua0hyKslVWRHa go4CibokunEMrWuMnA6E3cugV7KaGFsZVgMVhSBHPO4Jne0WsAmKbkiiSHJRIVvj89f/+29IDh TBck16nTZDTho8eSy5SE214/KSC4aHNDRtc1tu9v58zD9pmbLQ9XRZ42R3E+zd/ccwLdA56L0b 18XQvYZueYtEtu3P3aHqBIhsE0TOlL7eTgiePii5sCPtyjHKuLNQg6RmVLoh0XzJnCgcdlQ7bw x3w= X-IronPort-AV: E=Sophos;i="5.70,560,1574150400"; d="scan'208";a="46689450" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 16 Mar 2020 04:56:21 -0800 IronPort-SDR: SwjcFcgsG/48I/BXSWQVaxiut5P+bXaYMFmK8481TSArt3s6eo8cSS23HSsrPWhWym0xZN3c/r ASCkkHAbmB62R1QA2u+88BRrAwYCxSJ4hrJjcD8WIoRZ56SbfaE+Qojz0lCxZedTkEolGgg2P2 AOXTj0+iaS1Uhi+lobBGn97t1+R/6KzoTrEZFzIPV3RS9fyUthLsYpgTCrRx1mr62s9xC6K3VS zftZ3Kr91uEDuxwE6WnNyBZPgfBu+88yaDV8ZJTv4dlWj031ooLohSk7Wi/YYIAc9xs34SarBv t00= From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [[PATCH v2] 2/3] linux-custom: support use of an arbitrary in-tree defconfig Date: Mon, 16 Mar 2020 13:55:51 +0100 Message-ID: <1584363352-866-3-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1584363352-866-1-git-send-email-Cedric_Hombourger@mentor.com> References: <20200316133934.223e4a0b@md1za8fc.ad001.siemens.net> <1584363352-866-1-git-send-email-Cedric_Hombourger@mentor.com> MIME-Version: 1.0 Content-Type: text/plain Return-Path: Cedric_Hombourger@mentor.com X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-08.mgc.mentorg.com (139.181.222.8) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: KZW895wy6nrb Try the specified KERNEL_DEFCONFIG as an in-tree defconfig if it cannot be found in WORKDIR. Signed-off-by: Cedric Hombourger --- meta/recipes-kernel/linux/linux-custom.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index 753becf..ecf15d3 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -146,6 +146,8 @@ dpkg_configure_kernel() { if [ -e "${WORKDIR}/${KERNEL_DEFCONFIG}" ]; then cp ${WORKDIR}/${KERNEL_DEFCONFIG} ${S}/${KERNEL_BUILD_DIR}/.config config_target="olddefconfig" + else + config_target="defconfig KBUILD_DEFCONFIG=${KERNEL_DEFCONFIG}" fi else config_target="defconfig" -- 2.20.1