From patchwork Tue Dec 20 17:09:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koch, Stefan" X-Patchwork-Id: 2344 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 20 Dec 2022 18:09:39 +0100 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f60.google.com (mail-lf1-f60.google.com [209.85.167.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 2BKH9cNe002097 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Dec 2022 18:09:38 +0100 Received: by mail-lf1-f60.google.com with SMTP id v19-20020ac25933000000b004b55ec28779sf5244295lfi.8; Tue, 20 Dec 2022 09:09:38 -0800 (PST) ARC-Seal: i=3; a=rsa-sha256; t=1671556173; cv=pass; d=google.com; s=arc-20160816; b=B7pQWXkGGXElT3+JbQn6Eb9iGK165rTPyaZi/6+tJe4hkVGe1FMzfik0FWOkjZ//qo D6Lj8YD7RVhmbMScCbr8Rsl1hYZRswMK40NTeuMtWci6Ru6rZNkcJQD2AO2SOW4oC70k RSnzDrt7OX2ae280eWGikI4S4uylJchSft/2sZgBue9koq8/7s0i8xdnVlKnApKwPqmE jc7K1Ljq5euFNpWCWJxLRt0REgJqkhbrvuoNBBSvHUDqI5PQg94U5ivWUl2x5PrI8pB6 qtV/fdPbwYoaJ8eC+WaUIPJQ6s6FuzNA5lkHBlIwx7tX9Wqftg9mvg0j/YsvQMhA99Xc w3SQ== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:sender:dkim-signature; bh=mthviGOsWY6XyOcUCh+Jv+LFUbmrjwhgpI7a8TzAJ0c=; b=tgG+JsxJfxRTgz/gq4k3Q696dDvyp7MryzhNVnjDGaZwSPSsNpnhx9UaURqsSCipGY GfzN+poHTz9s6uJ6fu3EBNOogtXvY0xX76LnGJpFJDl6XY3cBwIXNMOK1QL08fN4evML 1OdrIa68SyWii6LWq80uc6oID2JSLDEx2gfSgYp6CwtqNU2+n9Cc1d0kb6esPYVDZNT/ DVWU06EjihXPRpntseVk9ltUK0apF+7PXirgwXlgpzim1gyvn/0H/zr0piFxJ0w9asw6 3S8BKliWFTTzspsmWT6sMMOKkfdbrzedb+9OnudiFNAcUoyBuMFvrZMoRKyh68KK66vC X4uw== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Q7DGHkP1; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of stefan-koch@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:sender:from:to:cc:subject:date:message-id :reply-to; bh=mthviGOsWY6XyOcUCh+Jv+LFUbmrjwhgpI7a8TzAJ0c=; b=N5Gbmg5QCBNzW9nU5san90vAaFZNVbFN4Cd6+IoaVq73kxHRLRAJIQRcLYjYhnXzug 8ZasKJEuZyCD3SB9eWJX9s/tgYLawWmU67ugLlW3qOlPTJc/I2wNcNpAnlAjbPjE/4mK tM9kKPpl3SR3hFNUo3+k5Voo81VlFCdy5j7z8hoQSE/71AfAXNtfwQoPscQLGBX+rGJr uWpVmpwtyovTRW+u/MuCXQfZmcKAr+wQbI7iMINZ21qHYyrlCc5JOgKbO9il/fKfh+x/ xHFWFCvcG2y4OuSU2EMNPb17y45NPWjJyEcmgE+gAVKijJpHnLo75qiQ46jZgv2anJmp 0rTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from :x-gm-message-state:sender:from:to:cc:subject:date:message-id :reply-to; bh=mthviGOsWY6XyOcUCh+Jv+LFUbmrjwhgpI7a8TzAJ0c=; b=COGdCnD9cYVXAVOHN0GTCPpsyK3qXl3EnBkGsGySahZcAS2cdafEV3QcAciAwXM6YI YLnosclDO/YJFNmMWZXDjwP7QfUZyOZ3P5SkvfZ8QY4y1ngttAm9+I4D2IG2HIdM9kd3 MsTR3pFHMqoRQ98C3C7feN4vS8EJEkA0qroJ7jW6z/Z28h2S3EaeLFLmTOBOHPyVVWQD wlg4pxFr5Hv/xlLKPg5cYKYOLs1Tilzbo1XQ/j6g8yXGWQpHSj9Ey7s3xwLmcaj+oCc+ sSB0G8kVdAhGWcnibCPaeBa0/fRiaBXE/EOw5TxtEili+ldO2yRZpirHKn5fE7BJ6Brq 3zLQ== Sender: isar-users@googlegroups.com X-Gm-Message-State: ANoB5pnG5vgc1sGtUVQ/MxgdSbI1k+5wYrQiVlKy7JIC4F5c1lhYpQ5H IG6gIUl5Jewd5BUiTWHNwNU= X-Google-Smtp-Source: AA0mqf5Dxn8Jy0jh7sF40FzH3CeLU1k43S+JFXQBfb1/eeoC7JsaHu2slSLHZ11YeMMlFDxnrw84Wg== X-Received: by 2002:ac2:5e39:0:b0:4b1:7729:3920 with SMTP id o25-20020ac25e39000000b004b177293920mr32527821lfg.681.1671556173390; Tue, 20 Dec 2022 09:09:33 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac2:4e8a:0:b0:4c8:8384:83f3 with SMTP id o10-20020ac24e8a000000b004c8838483f3ls1738464lfr.3.-pod-prod-gmail; Tue, 20 Dec 2022 09:09:32 -0800 (PST) X-Received: by 2002:a05:6512:2613:b0:4a4:68b7:e717 with SMTP id bt19-20020a056512261300b004a468b7e717mr16902321lfb.1.1671556172255; Tue, 20 Dec 2022 09:09:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671556172; cv=pass; d=google.com; s=arc-20160816; b=czC4oHkzbv97t1Xg/NSgSQurBOlbfhQxoseTsxUCJ3dQ5AorjyWsx0gC5JX24Bxkbl vBmmP78/MM6Hva6fuUTVeEDV+JIx1R7dQONkdKWDhu6FdScP77MToey/k0NtuXbpL1V+ 476kIGXc9ojTANhpUUKNPRvdrRy6dnlOL0k4ZF3ygdUjxb2duCF2MkzRdzuz4d59q/Ky LxR8brKVLsGxDZmNnD1vjd9PiOIIXUHc3pzE0AqbZ+cSPHkejN5cYZMwuvGg5UVwkrNW GykTStkA211ffZi+K/DO5VQwmENF4h2jZyinLbmGPlNzb9kri3ff0GjvWwdVbkcRPI05 s7uw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=hsxMf9GhamTXSPFuEV76aMbAz5NzgBGVdtuuusCJItA=; b=vSTI4dYXDgdtRrZtqnvZBHphgx4pXbgLVVM5+CdIONwFpHRjeIHJ3xzD2xSLEZ7zdP mLsIsGVOrAymzcSIHlnNlNlamLA5nHTH4/cOXYPwqSARbgrKXjyKCRZ20GicvjKSKi/D xxNVRQ/gYewVgHFmr8eAjmDOodPKl+CRxGKdD0Nj06gvE8pH6YXRJieikrC+GxbfQPJ9 LPiRDYGqvzA48XpIDoDtUJymkp2y20xk3OfEdQNRgChzNHaxW0ZOccdxKWzicZZZSeOB CTYizftV9FpK9QhggaEQuKS9+ZifJwXlQd/dOUCMZLqL8sF0xtEohgPxljVE3cEliPhR 30gQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Q7DGHkP1; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of stefan-koch@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2077.outbound.protection.outlook.com. [40.107.21.77]) by gmr-mx.google.com with ESMTPS id c5-20020a056512324500b004b58f5274c1si546577lfr.1.2022.12.20.09.09.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Dec 2022 09:09:32 -0800 (PST) Received-SPF: pass (google.com: domain of stefan-koch@siemens.com designates 40.107.21.77 as permitted sender) client-ip=40.107.21.77; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UMNIFvmz2zoqNw/5qPxPyWef5qb4o0kiJEaLLJMI8ZPT9tW/sdhQXv+fqPzVjKHlp71amZHTnex4ZDLG2kG4zI3PUSWD1HKXJBNJN8BIgYEbb9ws5yyq03aqnjii3S4/zef3+CLzyP19JoKJEdPnPvsdNzbSb2YpguRU9lzU1VfuUzWq9KrcSmHp9ITj0OnhSBYexWu6PTDjn/pJKEw5SQFieEShe7dngDRSW4gZ/beZpbtXjjcACxIN0/tWw5dB0gHzBskEwwO+N39mZZbK0oi2mDi74aq+4c/2m4+rztOJGXN7xan++gtp1SUmaNsMk6RFCvXbAh6dLLvYNRnoJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=hsxMf9GhamTXSPFuEV76aMbAz5NzgBGVdtuuusCJItA=; b=h3ZxO6Upm8dxPMIwOz0XLSHOMCgM0ig5lQFgvW/UwlLU32OngYGLMXVjEFT05tDD6/iGN2yjd0vq7UDYUko0jbvxNDNmKsML/6ifP70325k2fZyQNvNxRRrYGY7GE4WPIM2LgmB+V32LFT8jtVHWrdqj13Ae5307IbnYKV2kuU+mWf0j0qDA8eE4qJ6Eaxb9rJr2UaWAeT80WULkTKxF+8wcmNR/DL+uR8ey90gOB7bszLgo9HQqYYhlyXJZ636rqvLeegW91O6+dtAC9CgyzqkNlrfKzHuSVAliPtjuIj7DZXeNh2qyqpSdc7HMQoQ6gMK/QAyvb7YMf4rwj0Ev7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siemens.com; dmarc=pass action=none header.from=siemens.com; dkim=pass header.d=siemens.com; arc=none Received: from AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:41e::11) by GV1PR10MB6146.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:99::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.16; Tue, 20 Dec 2022 17:09:30 +0000 Received: from AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM ([fe80::3be:f097:9bbc:68f3]) by AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM ([fe80::3be:f097:9bbc:68f3%3]) with mapi id 15.20.5924.016; Tue, 20 Dec 2022 17:09:30 +0000 From: "Koch, Stefan" To: "isar-users@googlegroups.com" CC: "Kiszka, Jan" , "ubely@ilbers.de" , "Storm, Christian" , "Adler, Michael" , "Sudler, Simon" , "Koch, Stefan" Subject: [PATCH v2 4/5] linux-custom: Provide host and target specific kernel kbuild packages Thread-Topic: [PATCH v2 4/5] linux-custom: Provide host and target specific kernel kbuild packages Thread-Index: AQHZFJXS6oya2RtHqUeJrb5PNoVWvw== Date: Tue, 20 Dec 2022 17:09:29 +0000 Message-ID: <20221220170921.1718503-5-stefan-koch@siemens.com> References: <20221220170921.1718503-1-stefan-koch@siemens.com> In-Reply-To: <20221220170921.1718503-1-stefan-koch@siemens.com> Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.30.2 x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM9PR10MB4959:EE_|GV1PR10MB6146:EE_ x-ms-office365-filtering-correlation-id: e54d4ad0-6f08-458f-52dc-08dae2acf51d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: xSlTU8ZOClxl3BRSK5ZxzWCLkyJUb+jTe+EV+XRr3tXiBAwbibRrAohBEx2KQO8G2jnhkdVnS2mWXM/1qPbVkPj2kKKZEikxGNDV+LtXOXndKA+kMXUiM7o+2ZiuLxNrL1rg/Gi4fWKLV+Mrpm3it0tV0+mcYuGVFK608xjFrsTO9YFrrBKSEGTUbAhwqmNXoWaM7qt7YgPgd8fie5iF1HPTGfFYJVqbf5nY0FcJQWE2kzYx7vjRdCLcebTphWbJ1/keO9wNYAuCOIZqn/602rssI+PdABM9PtZJd0XYTHUKOPifjvIJbxdP10UR/rBxDg67oo4rgIhQwBl5pd+MY7dXMxUJuw0eqKFC06HaqbfORoHSR/fTpvgpMtjzZuOtmKQ4/UZ0J7SJ8Rg2GGHirC1GmDYjD2faof8Jxi5377xvPhjs833b2v+y9FD9zL8o/cNrcnjYx81F4P6mBiPwdJlPX6Qoi0CvH5qjLIfsqIwREOeKedGwF1F2WuaUeuCvSEm52L0XZrui7l5zPrgQvD1B14SbE4McJ8XPejUqGmrnhEcKN6sk+FCWifcMH5rHCuD5NXdxUPWUbv698pVNJi2QTBf/newnslNKYda7lK/FBgsg1IZAHpRiVWxJprqxbrKjqCpOc4wx0lQvnVR4XhMI8Mc0p2A1JzG+TuCvkDXI4J69h+SqfkEhwvvCLKn6Lawne6HAkJyLHJ0D79Oyxy58iffE4WLSouEQQobzCJo= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(396003)(39860400002)(346002)(136003)(376002)(451199015)(1076003)(6512007)(186003)(26005)(966005)(478600001)(6506007)(8936002)(38070700005)(2616005)(2906002)(107886003)(71200400001)(38100700002)(82960400001)(122000001)(6486002)(36756003)(5660300002)(83380400001)(316002)(54906003)(6916009)(66476007)(66446008)(66946007)(66556008)(41300700001)(4326008)(76116006)(91956017)(64756008)(8676002)(30864003)(86362001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?iWT7ucTf2PuSS5oLP7voTOo?= =?iso-8859-1?q?N8U0z+fAsLruIgeyG0EC0O7SLP/+7DC9bSpflNEF9Uj1iG5Te9EdTxuIJq3L?= =?iso-8859-1?q?vfqtoIoerZ9IL5T9V7wDftIy1BfZi1KZSwm47Yel5WE5zvzRPTcdkSc252Uf?= =?iso-8859-1?q?A6N6x06bCGaaSVglIPVW2x5CXFpRQy/JkPK1EyeUuGVkFOv6VpVF1IWaM0lT?= =?iso-8859-1?q?Ra5dGQ2oY4k+3bbX4UTQq+kQCbxpyX4hk3O/ke2Tt9JYBQVuaNUl5ZDxo2Nb?= =?iso-8859-1?q?igm3X+yVLlb/eXsfOWr03yjfBe0L8LRM6BWT5DAiEuEdsPzMH+nSBPxi2J6G?= =?iso-8859-1?q?lIb6Up8r2TErPFeQN/D1elT4oT6vGa/rslRId2qLtJGPbQNJODBOncCwqnVv?= =?iso-8859-1?q?XKjq2k9emCS6ZaQAn1Yhi4ssJ3QJvQJHd/bvQXcFrKrDbf7d8RiJH5S2AUkz?= =?iso-8859-1?q?/eMGWPqYHBaj+89MnDx+RpoB2MF0irmPJ/K1h4RXIsY54Fu0Cl+R26EOZpbz?= =?iso-8859-1?q?kPD02ZiSz2QTvcYgIeCA7srsM3Vo+9Agsg0SGDrIWRDhGAy4NgTJ4MnIMViv?= =?iso-8859-1?q?fbag6PWihXTIcBYSuVCzCJz8SSonvCnCqNkviB5bj2v8vWMeXcMzY23e225/?= =?iso-8859-1?q?rJ5yafnGEkRpNrFCaKqFl35dGztG3EO8pNnSCFKvbE1ppwictsl0dmRMvfGl?= =?iso-8859-1?q?5rmhChQvmnSpUj+aimqcPCSUayYXJXcr+d7BOdLhoXhgE9Eua9obEZI4f7dV?= =?iso-8859-1?q?Nz1ufy16gu/wESyIW4cFeke02PpI1qpw04suI2YfGUeH36iET3c1IH4jVDkH?= =?iso-8859-1?q?B238BYoHUc1P1AyVXgF/Lg8RMe1txyC0qJ75kHDxS9S4Wfm+MBgzirZ7+3nJ?= =?iso-8859-1?q?/Dp8SU4IlfFbIMX721XdwIE3SiT9BQ4BatdQewD33+oWyQ4sxYCXyoPf/8XG?= =?iso-8859-1?q?h12K0AvI5mcUFzlbi1tzsEFuyfrYJ0jkqVfc42Q6Zpt4DV0zTtDD+VubCaQS?= =?iso-8859-1?q?r8HecyvJovfme4UMQfUenOGxvmPpSwksAeiaM/DLRxijA1Lj7Xzpqa7sT7Fi?= =?iso-8859-1?q?+qsUiZEs/TbZSxXUR4+h6igCtbkEZ9oZhZKO626ejbDhuvwiodESiQajuAU9?= =?iso-8859-1?q?yiI4Oo/yM4/v+mcVQyx+e0CkZI3SZ0nrfUJ9hsDbSWQQjPedSDW2/A+QSfxg?= =?iso-8859-1?q?X36uhMpSSVKioxi8ZOeBONWmT74v5lXJRkElwoXBMe9GBdslVt4OokBEhv5R?= =?iso-8859-1?q?SJHUUDAXGndzV7tVJTV0R0BdjRAHFmavwcpCRnkCFBjsoitQHBvfULzbhsJO?= =?iso-8859-1?q?gruywp4zj0E8UkwrPqntTYtkHahQn0SUUbAmbe9M6K+AA0UnzvMti5dQWAPy?= =?iso-8859-1?q?Feba3H2E5Aktzoj5q4coaozdxFKeWRt6N/9+uPepjpmPMeY313tQ7eBWxKLD?= =?iso-8859-1?q?/OrLu/JH9fjymQS64X9Nrw+QpdxAbWSmKy2DgfozWkLstbxqTH+K0YZbPlrZ?= =?iso-8859-1?q?DTvSYUl8gDpGlCmFfyegDIKmZjx6Hvr5nLu0V0MhghdD4XLjz0fFAfsLK6BV?= =?iso-8859-1?q?BcfLitaWx2kBkkdK9z262wyf7Sl4let0kSDoxl5QjfEljVgcJd1m4NydrUA3?= =?iso-8859-1?q?AyqIiYAsZKVvkVgjgGgnpcZ8AlEujBugkbDEHjg=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: e54d4ad0-6f08-458f-52dc-08dae2acf51d X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Dec 2022 17:09:29.3740 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 38ae3bcd-9579-4fd4-adda-b42e1495d55a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: r28YGMforUDUT+YxkaCVOCg3GD6vj1KSI/m7pUNUClOPwU/nOPAiWP5aI1NmIThAEP2n2LvDsPvSUBG7y9dBKw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR10MB6146 X-Original-Sender: stefan-koch@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=Q7DGHkP1; arc=pass (i=1 spf=pass spfdomain=siemens.com dkim=pass dkdomain=siemens.com dmarc=pass fromdomain=siemens.com); spf=pass (google.com: domain of stefan-koch@siemens.com designates 40.107.21.77 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= When using a cross build this patch does introduce optionally host and target specific kernel kbuild packages that ship the "scripts" and "tools" binaries. Appending ISAR_BUILDS with "target" will enable the build of a target specific kbuild package at cross builds. Appending ISAR_BUILDS with "host" will enable the build of a host specific kbuild package at cross builds. In this case no kbuild-cross package will be generated. This solves this from doc/custom_kernel.inc: - The kernel headers package has not supported both native and cross compilation of kernel modules when itself was cross built - Future roadmap: Generate kernel headers package for both host and target when using a cross build Signed-off-by: Stefan Koch --- .../linux/files/debian/control.tmpl | 16 ++++++- .../linux/files/debian/isar/build.tmpl | 13 ++++- .../linux/files/debian/isar/common.tmpl | 12 ++++- .../linux/files/debian/isar/configure.tmpl | 13 +++-- .../linux/files/debian/isar/install.tmpl | 26 ++++++---- .../linux/files/debian/rules.tmpl | 2 +- meta/recipes-kernel/linux/linux-custom.inc | 47 +++++++++++++++---- 7 files changed, 102 insertions(+), 27 deletions(-) diff --git a/meta/recipes-kernel/linux/files/debian/control.tmpl b/meta/recipes-kernel/linux/files/debian/control.tmpl index b19ca2c..c012048 100644 --- a/meta/recipes-kernel/linux/files/debian/control.tmpl +++ b/meta/recipes-kernel/linux/files/debian/control.tmpl @@ -6,6 +6,7 @@ Build-Depends: bc, kmod, cpio, ${KBUILD_DEPENDS} Homepage: http://www.kernel.org/ Package: linux-image-${KERNEL_NAME_PROVIDED} +Build-Profiles: Architecture: any Depends: ${KERNEL_DEBIAN_DEPENDS} Description: ${KERNEL_NAME_PROVIDED} Linux kernel, version @KR@ @@ -13,6 +14,7 @@ Description: ${KERNEL_NAME_PROVIDED} Linux kernel, version @KR@ files, version: @KR@. Package: linux-headers-${KERNEL_NAME_PROVIDED} +Build-Profiles: Architecture: any Depends: ${KERNEL_HEADERS_DEBIAN_DEPENDS}, ${perl:Depends}, ${shlib:Depends} Description: ${KERNEL_NAME_PROVIDED} Linux kernel headers for @KR@ @@ -21,7 +23,7 @@ Description: ${KERNEL_NAME_PROVIDED} Linux kernel headers for @KR@ This is useful for people who need to build external modules Package: linux-libc-dev -Build-Profiles: +Build-Profiles: Section: devel Provides: linux-kernel-headers Architecture: any @@ -30,6 +32,7 @@ Description: Linux support headers for userspace development are used by the installed headers for GNU glibc and other system libraries. Package: linux-image-${KERNEL_NAME_PROVIDED}-dbg +Build-Profiles: Section: debug Architecture: any Description: Linux kernel debugging symbols for @KR@ @@ -37,8 +40,19 @@ Description: Linux kernel debugging symbols for @KR@ all the necessary debug symbols for the kernel and its modules. Package: linux-kbuild-${KERNEL_NAME_PROVIDED} +Build-Profiles: Architecture: any Depends: ${perl:Depends}, ${shlib:Depends} Description: ${KERNEL_NAME_PROVIDED} Linux kbuild scripts and tools for @KR@ This package provides kernel kbuild scripts and tools for @KR@ This is useful for people who need to build external modules + +Package: linux-kbuild-${KERNEL_NAME_PROVIDED}-cross +Build-Profiles: +Architecture: any +Depends: ${KERNEL_HEADERS_DEBIAN_DEPENDS}, ${perl:Depends}, ${shlib:Depends} +Description: ${KERNEL_NAME_PROVIDED} Linux kbuild scripts and tools for @KR@ + This package provides kernel kbuild scripts and tools + as ${HOST_ARCH} cross binaries for @KR@ + This is useful for those who need to cross build + external modules using ISAR's sbuild-chroot-host diff --git a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl index 94cfbe0..7e095ca 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl @@ -22,7 +22,18 @@ do_build() { sed -i "s/@KR@/${KR}/g" ${S}/debian/control ${S}/debian/linux-image-${KERNEL_NAME_PROVIDED}.* # Build the Linux kernel - ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" + if echo "${DEB_BUILD_PROFILES}" | grep -q -e "targetbuild" -e "hostbuild"; then # Build kernel scripts and tools + cat ${KERNEL_BUILD_DIR}/.config | grep RECORDM + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" scripts + if [ -d "tools/objtool" ]; then + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" tools/objtool + fi + if grep -q "CONFIG_MODULES=y" ${KERNEL_BUILD_DIR}/.config; then + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" modules_prepare + fi + else # Build the Linux kernel + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" + fi # Stop tracing set +x diff --git a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl index f4c0519..65fa1fa 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl @@ -5,12 +5,22 @@ set -e # Isar settings -ARCH=${KERNEL_ARCH} KERNEL_PKG_IMAGE=linux-image-${KERNEL_NAME_PROVIDED} KERNEL_PKG_KERN_HEADERS=linux-headers-${KERNEL_NAME_PROVIDED} KERNEL_PKG_LIBC_HEADERS=linux-libc-dev KERNEL_PKG_KERN_KBUILD=linux-kbuild-${KERNEL_NAME_PROVIDED} +if echo "${DEB_BUILD_PROFILES}" | grep -q "hostbuild"; then + # Force creating kernel kbuild debian package with valid host arch + # Use a cross build to comply with arch specific kernel defconfigs + # scripts and tools are always created in host arch + ARCH=${KERNEL_ARCH} + eval $(dpkg-architecture -f -A ${DISTRO_ARCH}) + CROSS_COMPILE=${DEB_TARGET_GNU_TYPE}- +else + ARCH=${KERNEL_ARCH} +fi + # Constants KCONF=.config diff --git a/meta/recipes-kernel/linux/files/debian/isar/configure.tmpl b/meta/recipes-kernel/linux/files/debian/isar/configure.tmpl index 389c9a8..900d5cd 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/configure.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/configure.tmpl @@ -11,9 +11,16 @@ do_configure() { set -x # Process kernel config target and fragments - ${MAKE} O=${KERNEL_BUILD_DIR} ${KERNEL_CONFIG_TARGET} - ./scripts/kconfig/merge_config.sh -O ${KERNEL_BUILD_DIR}/ \ - ${KERNEL_BUILD_DIR}/.config ${KERNEL_CONFIG_FRAGMENTS} + if [ -e ${PP}/kernelconfig ]; then + mkdir -p ${KERNEL_BUILD_DIR} + cp ${PP}/kernelconfig ${KERNEL_BUILD_DIR}/.config + ${MAKE} O=${KERNEL_BUILD_DIR} olddefconfig + else + ${MAKE} O=${KERNEL_BUILD_DIR} ${KERNEL_CONFIG_TARGET} + ./scripts/kconfig/merge_config.sh -O ${KERNEL_BUILD_DIR}/ \ + ${KERNEL_BUILD_DIR}/.config ${KERNEL_CONFIG_FRAGMENTS} + cp ${KERNEL_BUILD_DIR}/.config ${PP}/kernelconfig + fi # Stop tracing set +x diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl index 236b67c..08b8a9a 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl @@ -34,18 +34,24 @@ do_install() { set -x # Run the install steps - install_image - if [ "${ARCH}" != "um" ]; then - install_config - install_map + if ! echo "${DEB_BUILD_PROFILES}" | grep -q -e "targetbuild" -e "hostbuild"; then + install_image + if [ "${ARCH}" != "um" ]; then + install_config + install_map + fi + install_hooks + install_dtbs + install_kmods + install_headers fi - install_hooks - install_dtbs - install_kmods - install_headers - # Cleanup and install kernel scripts and tools - rm -rf ${deb_kern_kbuild_dir} + if ! echo "${DEB_BUILD_PROFILES}" | grep -q -e "targetbuild" -e "hostbuild" && echo "${DEB_BUILD_PROFILES}" | grep -q "crosskbuild"; then + # Install cross kernel scripts and tools + install_kbuild ${deb_kern_kbuild_dir}-cross + fi + + # Install kernel scripts and tools install_kbuild ${deb_kern_kbuild_dir} # Stop tracing diff --git a/meta/recipes-kernel/linux/files/debian/rules.tmpl b/meta/recipes-kernel/linux/files/debian/rules.tmpl index 8063c49..d176528 100755 --- a/meta/recipes-kernel/linux/files/debian/rules.tmpl +++ b/meta/recipes-kernel/linux/files/debian/rules.tmpl @@ -36,4 +36,4 @@ override_dh_auto_test: true override_dh_strip: - unset DEB_HOST_GNU_TYPE && dh_strip -Xvmlinu --no-automatic-dbgsym + dh_strip -Xvmlinu -Xlinux-kbuild-${KERNEL_NAME_PROVIDED}-cross --no-automatic-dbgsym diff --git a/meta/recipes-kernel/linux/linux-custom.inc b/meta/recipes-kernel/linux/linux-custom.inc index dbda755..db2d7a3 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -80,6 +80,7 @@ TEMPLATE_VARS += " \ KERNEL_NAME_PROVIDED \ KERNEL_CONFIG_FRAGMENTS \ KCFLAGS \ + PP \ " inherit dpkg @@ -91,28 +92,54 @@ KCFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." # Derive name of the kernel packages from the name of this recipe KERNEL_NAME_PROVIDED ?= "${@ d.getVar('PN', True).partition('linux-')[2]}" -# Make bitbake know we will be producing linux-image and linux-headers packages python() { kernel_name = d.getVar("KERNEL_NAME_PROVIDED", True) - d.setVar('PROVIDES', 'linux-image-' + kernel_name + ' ' + \ - 'linux-headers-' + kernel_name) + distro_arch = d.getVar("DISTRO_ARCH", True) + host_arch = d.getVar("HOST_ARCH", True) headers_depends = "linux-kbuild-" + kernel_name + # By appending ISAR_BUILDS with "target" and/or "host" it's possible + # to run additional target or host builds. + # There are no "target" and "host" builds enabled by default. + # When both build modes are enabled then for a cross build a kbuild package + # for the target and a kbuild package for the host will be created. + # When "host" build is not enabled instead of the kbuild + # a kbuild-cross package for the host is generated. + if not "host" in d.getVar("ISAR_BUILDS", True) and d.getVar("ISAR_CROSS_COMPILE", True) == "1" and d.getVar("HOST_ARCH", True) != d.getVar("DISTRO_ARCH", True): + d.appendVar('DEB_BUILD_PROFILES', ' crosskbuild') + + # For different distro and host archs + # - Add dependency for sbuild-chroot-target + # to allow building arch specific kbuild scripts and tools + # - Set correct kbuild package dependency + if distro_arch != host_arch and d.getVar("ISAR_CROSS_COMPILE", True) == "1": + d.appendVar("SCHROOT_DEP", " sbuild-chroot-target:do_build") + headers_depends = headers_depends + "-cross | " + headers_depends + build_depends = "crossbuild-essential-" + distro_arch + " [" + host_arch + "], " + d.prependVar("KBUILD_DEPENDS", build_depends) + else: + d.appendVar("DEB_BUILD_PROFILES", " defaultkbuild") + + # Make bitbake know we will be producing + # linux-image and linux-headers packages + d.setVar("PROVIDES", "linux-image-" + kernel_name + " " + \ + "linux-headers-" + kernel_name) + # Set dependency for kernel headers d.appendVar("KERNEL_HEADERS_DEBIAN_DEPENDS", headers_depends) } -def get_kernel_arch(d): - distro_arch = d.getVar("DISTRO_ARCH") - if distro_arch in ["amd64", "i386"]: +def get_kernel_arch(d, arch="DISTRO_ARCH"): + arch = d.getVar(arch) + if arch in ["amd64", "i386"]: kernel_arch = "x86" - elif distro_arch == "arm64": + elif arch == "arm64": kernel_arch = "arm64" - elif distro_arch == "armhf": + elif arch == "armhf": kernel_arch = "arm" - elif distro_arch == "mipsel": + elif arch == "mipsel": kernel_arch = "mips" - elif distro_arch == "riscv64": + elif arch == "riscv64": kernel_arch = "riscv" else: kernel_arch = ""