From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6551303846864355328 X-Received: by 10.28.24.75 with SMTP id 72mr1895996wmy.7.1525344973292; Thu, 03 May 2018 03:56:13 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.65.213 with SMTP id o204ls266113wma.1.gmail; Thu, 03 May 2018 03:56:12 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpjko1X5OEXhhFwWQ0+yCA+GPlHAkuwJw8M4WA1mB1rTPw8lBgm1ffZbYtdK+nkMTC31khF X-Received: by 10.28.150.202 with SMTP id y193mr617wmd.16.1525344972758; Thu, 03 May 2018 03:56:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525344972; cv=none; d=google.com; s=arc-20160816; b=PJB9KUzzupFMoVSi64fpiyE6ittRqcHErtyRErML3lGRxSjy2koTsEsKZ4V1GEQuwP iJoMd3sBWIYWNDmK5aMtb2Vnr77QjGFe2QgQ/R/De2Aue3zoWppbRASk1Ow27vVz2jad K+GTKrIr18A8QWQDHuqMsRvqcoRGZ/4srOs9kMbJcc0F3IYZOBUjH7QJ6j+MsS4sA5y+ 9a/1sBUDrE6+7TZdCx+d5pqD62v81q5EDoO29zQqBVJFwWWS/vJuoKP257BXmVIRpn6Q sVckQynAmhOrYchS31QRjq624KK6Z8guomz0yHu1awsgGR+eRhVOc5zjPeI9c9Bj0Civ 17mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:to:subject :arc-authentication-results; bh=YmYtEp54ozREYhKs3IqQq50fMFMlfvnMfYJem5UVNos=; b=ZVg3Tn0sXo4tYDi1wfHPuA8g2rWEakczYlEVxjcSLrQ88roq4EwAgJapWE4sNAqiwc sbPSAsMzsAjxmE6ebpOB896+lMWcceYDdzU6CmPSaPP5oH98oReIIaAXWwh1g5QiTUy5 ME+x++mc+CZmrKQIXKYPQg/h7FtWccKCRd6i2XTCbJ1aTmAM9oM0PNHCJElYmnEk67pK jAqI0YQpTUqVilCFWzUDWBKLt8pptY6/qpi/a+D0qkj/O2ZIVJ6n9R1P/qovHX9hbn4/ rWUotSAuu5xb1jYeR6rg4zRHDz/LD/9PUoHtt6SIFp/MbDA1xMtsOkNizk3GTjUAvky9 KCkQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id i18-v6si151789wrh.0.2018.05.03.03.56.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 03:56:12 -0700 (PDT) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com Received: from mail3.siemens.de (mail3.siemens.de [139.25.208.14]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w43AuC7c007550 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Thu, 3 May 2018 12:56:12 +0200 Received: from [139.25.68.37] (md1q0hnc.ad001.siemens.net [139.25.68.37] (may be forged)) by mail3.siemens.de (8.15.2/8.15.2) with ESMTP id w43AuCSS023641 for ; Thu, 3 May 2018 12:56:12 +0200 Subject: Re: Building custom kernel To: isar-users@googlegroups.com References: From: Jan Kiszka Message-ID: Date: Thu, 3 May 2018 12:56:11 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-TUID: uY2yJq/GNlCU On 2018-05-03 12:44, Francesco wrote: > Hello Everyone, > > I'm trying to write a recipe to build a custom kernel for my board but > I'm a  bit confused on the approach I should use. To help be get started > I followed these slides, > http://events17.linuxfoundation.org/sites/events/files/slides/ELC-2017-isar.pdf > That's outdated by now, though the parts of the concept made it into mainline. > > Unfortunately this configuration raised some errors related to the > dpkg.bbclass. After some digging around, I noticed that there is a > branch named custom-kernel in you git repo. In this branch the > dpkg.bbclass is different from the master one. > > Which approach should I use if I want to build a custom kernel from the > sources? Look at meta-isar/recipes-kernel/linux/*. Both recipes, together with the defconfig in files/, generate working kernels according to the official pattern. Another working example can be found at https://github.com/siemens/jailhouse-images/tree/next/recipes-kernel/linux. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux