From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6597265115990458368 X-Received: by 2002:a19:1295:: with SMTP id 21-v6mr1085384lfs.34.1536045483339; Tue, 04 Sep 2018 00:18:03 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:984d:: with SMTP id a74-v6ls1279425lfe.0.gmail; Tue, 04 Sep 2018 00:18:02 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda/wEus5xuIYd6PJ3yiqpgD72+DPl/pSNgK+ak8WA77/n7w+a0icq2zEYBRWJxmGEsVLhJ4 X-Received: by 2002:a19:d24d:: with SMTP id j74-v6mr772960lfg.11.1536045482506; Tue, 04 Sep 2018 00:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536045482; cv=none; d=google.com; s=arc-20160816; b=RO7sdN1U0mqMy7z4KtDsQNYAwEdutKM74n3APKbQ2EZqWTKrMp+ideX6TjSkFj7YIf zvt4e4THgyGCXDo04IY147NpetVbAKDHwo/vpreRl0P8YI3DgASzDKfsVm9/1jxKpTJ4 c0PtoG9TIOb8KVTsxhdgYM1YJt06P9MKYFuJaSEKkINkN0/Ws20r2ayVBUA/Ojgr0oY1 kvi1qXTkuGlKk1XchqIjQ306Mq2H8idgiOIknE128wPbeLQJmT22MmkwGbUjv4i/PDmW 8rh8loH+u4ib5aqs07QFbHYBLI/7EXHcK7lqyc0V+5UJ0v6PBF9EYwCVbjNERi3+9Rnh Q5SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:mime-version:user-agent :date:message-id:subject:from:to:arc-authentication-results; bh=nzng8g9CHBDj61UswZvC3LuX+W/LB9R3C4WTdrtdSDo=; b=AoEqeiKnclgQP/HGAUY4IODmCntIqBiMUSDTrAWMJ/RoGTTbEogOMH7peUf5azU/fk bEfv2eshd7VAg/Hvvk0f26zP4wXhqbOZbihL8TzfDLzNIasBXBsTNWR2P2FpRRolTvDB NUrvIbvRc3UPb4HCOs2A5KWGtfnGtstwVd4/HLrsQzIkeCd8RLPEV6UXZTgoLJOkZmYL dYU2qJ6JU/ZhxnH7QzNIz3ZwDz3VBHQlo5+ehoysVSUUwJTS8N+ZiI/Kz0ggkKKQUCBX m8gVdWLergrZAa5Hy54oCvlFq1jUcTntrtzGDCya44vtiYUuasz0nB4FTK/nHeOl9pUc RlHw== 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 81-v6si797620lfs.0.2018.09.04.00.18.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Sep 2018 00:18:02 -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 mail1.sbs.de (mail1.sbs.de [192.129.41.35]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id w847I1jm007503 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 4 Sep 2018 09:18:01 +0200 Received: from [167.87.36.140] ([167.87.36.140]) by mail1.sbs.de (8.15.2/8.15.2) with ESMTP id w847I0jU010190; Tue, 4 Sep 2018 09:18:00 +0200 To: isar-users , Claudius Heine , Henning Schild , Andreas Reichel From: Jan Kiszka Subject: [RFC] Interface for installing bootloaders Message-ID: <0aeb9010-8fed-6094-ac12-41983c3831ae@siemens.com> Date: Tue, 4 Sep 2018 09:17:59 +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 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: 5ebtUhLz5539 Hi all, for installing a bootloader into an image, a number of packages have to be installed into the buildchroot. These can be prebuilt packages or packages we build via Isar. Currently, we only handle the case of WIC requiring prebuilt Debian packages, and that in a hacky way (no proper distro abstraction, unneeded installation of unused dependencies). This proposal aims at providing a more holistic solution: - Introduce new variables that express the two types of dependencies: - BOOTLOADER_PREBUILT - BOOTLOADER_CUSTOM So there is no "WIC" in these, any imaging recipe can use them. - Imaging recipes (e.g. via classes/wic-img.bbclass) should - install all packages from BOOTLOADER_PREBUILT and BOOTLOADER_CUSTOM into the buildchroot - DEPEND on all recipes in BOOTLOADER_CUSTOM - Define some common dependencies in conf/distro/${DISTRO}.conf: - GRUB_PREBUILT - GRUB_PREBUILT_append_${DISTRO_ARCH} - SYSLINUX_PREBUILT - ... Those variables can then be used to initialize BOOTLOADER_PREBUILT as needed and also replace those nasty BUILDCHROOT_PREINSTALL_WIC in buildchroot-target.bb. - Set BOOTLOADER_PREBUILT or BOOTLOADER_CUSTOM in the conf/machine/${MACHINE}.conf or some overriding conf file - basically the same one that selects IMAGE_TYPE and WKS_FILE. Anything I missed? Better suggestions? Eventually, when we can derive bitbake recipe dependencies automatically from package dependencies, PREBUILT and CUSTOM could be folded together. Right now, we need that split. Jan -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux