From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6514350167115694080 X-Received: by 10.223.179.28 with SMTP id j28mr2950106wrd.30.1517310373520; Tue, 30 Jan 2018 03:06:13 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 10.28.170.1 with SMTP id t1ls401502wme.7.gmail; Tue, 30 Jan 2018 03:06:13 -0800 (PST) X-Google-Smtp-Source: AH8x224wqhLcZ+sbG9Jmr6UmabFBpJ4dgS5J7qZDlqJNqvVij914Zo93/erbfCstCAVxAtugPDRM X-Received: by 10.28.111.148 with SMTP id c20mr2739818wmi.7.1517310373049; Tue, 30 Jan 2018 03:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517310373; cv=none; d=google.com; s=arc-20160816; b=CmAHHPvQ+ojpsldg1l52+Ez3+hyJkzGVuEZzztK6FdHGg2aDOgvJWMBDBxsI7JoAro WQCmztqDvZ2PpxEleCXS6DSOhDOSKm79a1uoDmx/9SOV06tOiXEP/8gwY5+bWPLoie4y P6gHoswzUKEocBYaKHiosdL1LpBTGXP/ddA80PS5FHpRErrZ/ubxKN0A3Q1H6Om3leXz ieOEeuJ4mNS0tfXVzYpzgINvNk2B/q2HGzUuVKt85xqlfmyDMoIYeFNlLMrpK/5qm39F Cjpm2Uh7UkM3jqDxZcTTKxHSE5Q4VFXkCr7BOWUOBTjCx4KJxafp6srx870JT8XvkcKe i20A== 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=+3+ne61+9GCdtphEW6qxQlt8OvqPnWT+yStaFimFoWM=; b=YfyCRTM2iMyDWbzYtvHyHqn6RZZfrU5XQzJt1Cl5vzpLaLKrNNi4WCfJHmWsJtGRpY QPtdfrerA0nxKpTxdvMRB4T2t+hd4HTIfOwgZuuWWfUZyIPY5cfeXO8VDy+vwcWiNWPY 4DNRZGAsGFIaCRvgZfasTs8fJlcDDOvMZh+QAvBx+0fW6m1DZNa3mNnpOu5JFAV4Ys6r R08jHVLIxDLVliIaKV4FQOLP/6OajZ42yyyfxkfE0WDKkUBonA45JLaG8kzSlbGZfRI/ O+95iSHFJTptC3DdKk8n6c9p5JU6njs92gWtOM0YMqmcKTnFnzAqr0+nF/2wj56wm1wb XCoA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Return-Path: Received: from aqmola.ilbers.de (aqmola.ilbers.de. [85.214.62.211]) by gmr-mx.google.com with ESMTPS id y42si236815wry.5.2018.01.30.03.06.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 03:06:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) client-ip=85.214.62.211; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of asmirnov@ilbers.de designates 85.214.62.211 as permitted sender) smtp.mailfrom=asmirnov@ilbers.de Received: from [10.0.2.15] ([188.227.110.165]) (authenticated bits=0) by aqmola.ilbers.de (8.14.4/8.14.4/Debian-4+deb7u1) with ESMTP id w0UB69ci004444 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 30 Jan 2018 12:06:11 +0100 Subject: Re: [PATCH v2] Install kernel via replaceable recipe To: Jan Kiszka , isar-users References: <4ab8a0f9-9a34-0e20-bfe0-a447ffe134f6@siemens.com> <70d3096b-ecb4-ab4c-5361-f63b80961c32@siemens.com> From: Alexander Smirnov Message-ID: <978b75b5-b6ae-6d2d-3589-0515cba06ba3@ilbers.de> Date: Tue, 30 Jan 2018 14:06:04 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <70d3096b-ecb4-ab4c-5361-f63b80961c32@siemens.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 7Ms8Sh9wBXLf On 01/30/2018 01:52 PM, Jan Kiszka wrote: > On 2018-01-30 11:49, Alexander Smirnov wrote: >> On 01/30/2018 12:34 PM, Jan Kiszka wrote: >>> From: Jan Kiszka >>> >>> This simplifies the common task of using a custom kernel instead of the >>> pre-selected debian variant: Move the kernel installation into a dummy >>> dpkg-raw recipe that only has the kernel package as dependency. >>> >>> Which recipe is used for providing the kernel can now be selected via >>> the well-know PREFERRED_PROVIDER_virtual/kernel, just like in OE. >>> >>> The kernel package name is communicated from the target multiconfig file >>> to the linux-debian recipe via the DEBIAN_KERNEL variable. >> >> Why it's Debian kernel? This could be a bit confusing, Isar doesn'y >> support only official Debian kernel. For example Isar already supports >> Raspbian which contains its own Raspbian kernel. > > I'm always open for better name proposals. So, if no reasons, I'd propose: - KERNEL_PACKAGE - KERNEL_PACKAGE_NAME [...] >>> +inherit dpkg-raw >> >> Do I understand correctly, that this recipe creates fake package that >> has dependency from the upstream kernel? So in target rootfs 2 kernel >> packages will be installed? > > Right, one empty linux-debian meta package and the real one. The former > allows us to trivially kick out the latter in favor of a custom kernel. > What is the benefit of this complexity? If we need to have over-writable kernel name, it would be enough to pass current DEBIAN_KERNEL variable directly to IMAGE_INSTALL. The same result, but no extra recipe in Isar tree and no pseudo package in target rootfs. Alex