From patchwork Mon Aug 21 13:45:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Koch, Stefan" X-Patchwork-Id: 3031 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Mon, 21 Aug 2023 15:45:29 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-ed1-f58.google.com (mail-ed1-f58.google.com [209.85.208.58]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 37LDjSPN006667 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Mon, 21 Aug 2023 15:45:28 +0200 Received: by mail-ed1-f58.google.com with SMTP id 4fb4d7f45d1cf-52a0f6f7a3bsf1260619a12.1 for ; Mon, 21 Aug 2023 06:45:28 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1692625523; cv=pass; d=google.com; s=arc-20160816; b=zn08EiXmUhoqD04YjCphSYRigq4tCSaY4dgn/ePNAbpV3mBMo23/2KBSVS4MGyN0in QSA0wRU2XsCyqGpsyM0QsRVJto0CQkM0glKEm56F+UHlLcz0lRNhoYbNEJlm/+N7e20q 0FQl7HGd15nUa/jkNzdqyi+xErGDIcrdVY48VeuoaeQFSc3bVMytaZzA2DWA6IYSBOsR UahhW+OBcQPZjy8xanv+hp6+8ZxSELjtetF/QKtPyqcy1x02/JsGB+J8zBJHNaPesY8d jM/U0zcYM73JPxdKvz2P+uMxP/r+Q0ioi5P/8pKNhpgzmyFVUbEGbK7CT7GWdPDWIG2I wVNQ== 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:reply-to:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=u5HKhkKdFN4Tos3Hd1j8cd0gmqMgaH5qe4N/ukPLNKY=; fh=+dQyrit/5WtT3fNfMq1AR1Odzrm+yinvQxTakfdS0Bc=; b=w7mR0xulS26PpxEw7e8G78Q6yakKut2UcoisV2I04O8XUmI/0OGfAsFpVqlgYnXXNK fBYaicR2fFIhn7SbZbizV3AKeX4EcKkPwCz5MNyf8sOPW+ZEO6tVoYeo6Yo1JQNPmRiT QP/vbX5+2/3GtF0znuXg0hN8uE6ewFwiHCDXFMy8RC3/oS7f+jvANqlds+TYT5GdYrFv BSmk/2ewG5ETBTs9pQwtHq9WJpkt4grY+nEHjtYfIkZSfD+FgR7cyRsZCpdo1n+qq6Xp 4PuIbWHAJkfK0m7w2ZhsMPZqAysQmjdeBTjHFL/Z5X9P9evazX534lYG+sZFxQzjMtCE LV/g== ARC-Authentication-Results: i=3; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=TYgq8lfE; 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 2a01:111:f400:fe0c::617 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20221208; t=1692625523; x=1693230323; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=u5HKhkKdFN4Tos3Hd1j8cd0gmqMgaH5qe4N/ukPLNKY=; b=Z8Vm3jLlZsr27CFYyXmNlfXiTnlFR64VPLFtl0XM1ZxllN8HZCsyDdb9YndQO/JlA1 E+IoLbcXNpAsxgla+JRiQhWksZVRiTRTzCHvDPnmukfOgtnBlJ9o1fW4kTBE4fEaKTFj pZBhXWQjLpivC0elTjd02VlYgO6iNFZIkgdjH7uCx8+405EWJcCSTBRLBCKPPpnan6BJ +84fa1M34G2VqnR5yLofEmqDv9EtlGkn+WIDFpcc/6BZO7obOZjAXctWiq8X07WHf8JY dUoymXEc6Q/Akpk77qOt6/LpmkIH5wwhf5Y7RXjpRK5PCOfYf+lCPpUXbval6DLHY236 2TOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692625523; x=1693230323; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=u5HKhkKdFN4Tos3Hd1j8cd0gmqMgaH5qe4N/ukPLNKY=; b=ka6pnMih2r1CrZHHjvprxs3il3mwK7JrCy3mE62NEpLg5w13mWDcyH6eaWgAPu25Kx RLWwYsytgUMBwkUWTCxFKw2yreM9q5IeZuWF2+OC2O26Xse7p42LfaEKeTz4TJCTGfHt aXNDs8VcdldzFOBh0gOeXUBnshcvEnOx+5ZVjJ6DcTuZoWK+FkuNSPGN635fHXimjLFR +GxeMWNa2+K6JrDSuT/Nwo9RBEEmGaCcNhTNeZddoM7ZOhMJHF3fdwiGgl95fTLnyccU FnFihZfBE+5RgZJcjh8xy3NIVW9p8O9445MCMgXzm7KEk6CxS8zQxyt0jgKJxhWSluFl WSww== X-Gm-Message-State: AOJu0Yw2ZwaEIdWy2SiPjD0VT7DChi9r7nYqy7TKKzPtMWcqPXpkuibC OUiiZI0ROJ1Qb21+s1oXHxM= X-Google-Smtp-Source: AGHT+IFZAHBaw+sgV1575GG/HPVXTmfdQStrLu65yFpbmnEIjq9EAgoTB+bDNbIk1PpgockKk644ew== X-Received: by 2002:a05:6402:51cd:b0:523:72fe:a3c4 with SMTP id r13-20020a05640251cd00b0052372fea3c4mr7664505edd.0.1692625521809; Mon, 21 Aug 2023 06:45:21 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:6402:78a:b0:51b:d432:a176 with SMTP id d10-20020a056402078a00b0051bd432a176ls117896edy.2.-pod-prod-00-eu; Mon, 21 Aug 2023 06:45:20 -0700 (PDT) X-Received: by 2002:a05:6402:518f:b0:522:582f:91af with SMTP id q15-20020a056402518f00b00522582f91afmr6571023edd.9.1692625520071; Mon, 21 Aug 2023 06:45:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1692625520; cv=pass; d=google.com; s=arc-20160816; b=YXaUZxNOTz5f2/A9C9P7zCqgxxwKqbeWyro68vOouXanzBE+mL6iURPuG0T+MjcCkd e9bZ5t0ilD7Lz2OP4EtDSm2JCJBg7Hnlq2OP0hYLC9QlsrOFYT3a745N/DgusI50R4Ng xF5RJX9HhMHqjY3+CR9hHzgy2Ta+EyZLVRm2hagJz2RirGnraJOqwjwc2Fs/+Us2AcVd oqHfEQ7cQ5Dg7A+vzq6OD9j4X4c4NpAAUZwJjaO1FLhR5PUk8p2rTcEu0LJkwuQ63TOB Hzw25aSzYh2Z2YiqpbRo3Tav0gB+tfRdDY3HNpq8w/FDEs48mGZDDqvNFdECnLH7gn8W lyig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=mVXFATSa4QyQvUzmsW/5bTvbDMe8LN4xqEvkDYhY1Ko=; fh=bvaPvxzWBeiMFp8pnv0OrU82FxIg/Wl8JdH1qH7iSZ8=; b=mgbPFX5ZEvqXNJKu3IiDHQYr5wvmMuema1rv+fAbZKzf/aam3w6Wqwj2JO4169Ddvh pepPGp5qoV9+Z2jobBCH8Z3qDkOMOVvtxzodhdEyaq6d5gHHmvBJLCx4ffW11PgkXZDd VejF1ldzKzKnRXEkoKuIEnM3FxUw7udesuOSpCiEvwFo5w9cHpiH4QkMHKj0kAhw69nW Ijdr8D2D+COEu9DTKyBrdxMVrLy80qAx2K39wKekTNPh+cKlFaW66xBPKuTaj0MFaULn cjhaDGPZSIiFNNg0wLJo8Ljb4mkTdnUjh29zdYh0BoZjaJre788FiXaib2IBj6pK3Wme LKQQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=selector2 header.b=TYgq8lfE; 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 2a01:111:f400:fe0c::617 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0617.outbound.protection.outlook.com. [2a01:111:f400:fe0c::617]) by gmr-mx.google.com with ESMTPS id d14-20020a056402400e00b00523bb65dd1fsi622412eda.0.2023.08.21.06.45.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2023 06:45:19 -0700 (PDT) Received-SPF: pass (google.com: domain of stefan-koch@siemens.com designates 2a01:111:f400:fe0c::617 as permitted sender) client-ip=2a01:111:f400:fe0c::617; ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UCcHBo9GmT1XctcRqRcyGffDFA2CRQ1SbjaQVic/vHrll/DiqAOcA4FaRyijIgYps08a7gdybPcNAmlZw86CKJWNNki4xqaaq95iQYZ/jjfJAVKoMD/VklMOX3DyarhB0+ruyNcNUz9iQ3jJj8F0/qnouDYmIvWC4+8Y66j1YWA6JyPY/OGSSJbUcD92DjqZzUs06xGonnDe7EU97UNs+ZUrvWL5BAoMPbhYPeElIk+p2RES6pb6PjxSdLCirajhbR3O0K3kszFKC5QGEGvwSVXthz5YGyF5C4EHUd4ksx6OHGirhz7jVVsQDNx8Ge2YgMb7R9QxTqNCzqysZ2zOow== 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=mVXFATSa4QyQvUzmsW/5bTvbDMe8LN4xqEvkDYhY1Ko=; b=a//QLb8Et3kGS+10T/qx0HN7E/OiMuGz8VbWjFAJAC5xmrBABhn2Wif2Y0cqrdtac/mKkX9/v9AivFBXsxtY/zPWxJJJfwp7h9I5UUf+m6HUnNTJgcYnCvgEqRS/s60jucLYswdD4jCaBOkaunvlXa2e6FN8JVZEkUFyO260OxTtLhMr+NyrLbHxR5rbgZJPMlh4+hFimE5m2yPq84ALOJ+DhGhZ80wv5jVmMSlnVlXPall3GJHkl2ROK6P2LGUzYelPbd1dnnmo4lN4x5Pwe58GmvO1tJJUF/Aiv1g4gphdYhoyhFqqZRuR2bUlokz1UVRCRJLNV6sp+QKuns4LwA== 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 DB4PR10MB7493.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:3cf::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.24; Mon, 21 Aug 2023 13:45:18 +0000 Received: from AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM ([fe80::c9da:178c:455b:211e]) by AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM ([fe80::c9da:178c:455b:211e%4]) with mapi id 15.20.6699.022; Mon, 21 Aug 2023 13:45:18 +0000 X-Patchwork-Original-From: "'Stefan Koch' via isar-users" From: "Koch, Stefan" To: isar-users@googlegroups.com Cc: stefan-koch@siemens.com, jan.kiszka@siemens.com, christian.storm@siemens.com, michael.adler@siemens.com, simon.sudler@siemens.com, cedric.hombourger@siemens.com, adriaan.schmidt@siemens.com, felix.moessbauer@siemens.com, ubely@ilbers.de Subject: [PATCH v4 2/3] linux-custom: Provide host and target specific kernel kbuild packages Date: Mon, 21 Aug 2023 15:45:00 +0200 Message-Id: <20230821134501.2681654-3-stefan-koch@siemens.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230821134501.2681654-1-stefan-koch@siemens.com> References: <20230821134501.2681654-1-stefan-koch@siemens.com> X-ClientProxiedBy: FR0P281CA0157.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:b3::20) To AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:41e::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR10MB4959:EE_|DB4PR10MB7493:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b36e959-42ce-4127-d42d-08dba24cdb41 X-LD-Processed: 38ae3bcd-9579-4fd4-adda-b42e1495d55a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rN6g+tJj6i4gT2PR/6Lrb3H9PMM5z1oc2Ywg9gJZDlKQCRUrze1gC/UJFb/cKWj3hnIcWuAFM4/g7e8pM7QgtEUUUTrRDlGes4aPaxEVWtK+M+VDV2ToTCg3Nq6EAQbpXSEqzlSxhvELFlJjxTjh+KBll4Xz4p6FS1bpBIzJQ8/Dt88rjLvKj09BX3bHe/+/VIRh373hrPgDiXrTsJ3u6wEGPhLB+F7ZnWsJcOpr4MFp7CqSnkIT2hx5YoXJ0bpmSVPuKD6Sa373G/jYAIMaS+6icMc6NhENzgXcBnWnG6bOMIEZdvpJKI3LmKJHAvzchYvt67QHzZQ+8SkTpd1yH39X0B48jh6s3Bg2AS2CWK86JOv53uxxMLwPCbRqX+LbcdPA26muaTu4hjbwj1FBrqjRHujdoGqLJqkI2SQoVDi7+w0UPFEQGENOa9F5dqS8vC0G8GHHgqs09evIL8EN4432Kw79Ua4he4rgECMkl37f4Z5Uvw1n0ZDlJa48J0lP9UVgv+yuRdn5fXIqbHp96Qdqd/RjMYBcee6V0R8svrw= 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:(13230031)(346002)(366004)(39860400002)(376002)(136003)(396003)(451199024)(186009)(1800799009)(2906002)(30864003)(38100700002)(6506007)(6486002)(83380400001)(5660300002)(26005)(86362001)(8676002)(2616005)(8936002)(4326008)(316002)(66946007)(6512007)(6916009)(66556008)(66476007)(82960400001)(966005)(478600001)(6666004)(36756003)(41300700001)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: jovjxy9vOxyu68wcuWdiy6fllU8y5GYJKrU4PACXBvRWMsAGo7wDRecvNvm1q3uM9/yfhJyyjbkxhbLWAIZDxOngWSDljJrK3wU7CXWjh7CW0bgwhIxcRSzcwBJeTkvS9jfgu91vUkfqjH2Qeueh+7r+w47t0ssElPcRctjL3GGmsSj/IYYC8CmY4QW/sjyctxsygH6+SNdff8E84w2ZkkYm1Vr08m3z/QTrECT/gguSF+F/hOSuBTuRjsawkZfxR/aOe1yry3kZ/rB8vnrtxSiduZFX/QAcUe7khllOjQiB7roLALPKl9TNAkhcSOjwp/p6bTqbSte54Tlm3w+xmYNwnaxPfRGR90dG97awNvgAqP+/9aBGrT2yzuC7MA6/fTN0W/bs4zk79bJ3CG5ja0/ZxvpVlxYi5YQ/2K1pnHLG1iAl7kf3k0hn6VXs5GzHZDmXeY+/P1TKAZiQZs6F1xgrC32hvbBEICgklS/X5FgtezY/6k+0Gtu3Wq7n9u7c3JOsLCPIZOYmWOFPC6LANp8QHRG//XtpxXYYdjMSvyDBvLesOzBTHx+CbTbD4lQPTC3RaGz/7htnSxFjcCgO9MLclyloSvJPYgdSDg0C3X+h+a/F/uYGOXLq1rfkaUJOjnhAYLbbltNPnY2UkRWXQe3bnEAcF1MnyJ4MIga0unv5ouSnqbD1TFxs5vfOd6UWtgROKShUji8OZb31L4Z1DDRkTdq4YojHKj4Wj4Td7kwSq6jN/46LMkn+JFrEOQ2oZvbUYGfxSuWKPJx492yZBIjcTssYwA8sGGFvAJ0VV3hJjLoDmVOwkAGlLO1KboP98dDTQcq3GpGWbo1U1NNPP0OJkwoUugsqw36mNvO7855JuDU0pw51hfkhbNA7iDLG9uza5FEw2rbRaXkSvRm+91ovRMm46HlWBmkV8Sv0eeuXu6egEdpW5Y8unCEgykuu+ghv6fekApe0zEvl27GLU8vK5JtExC3USmToiSLskDAXlNHz2hHD4XaoBUTnbOS5oBUSkfKc427ooMM3GNLxgrOEc5IudPHj0Zk14/lqD6dvRRQvaRX8YyUmcHJ66pPOmBfbj9692YOAFXoeY+fGpTgYTF/VGaoMuLEJzYGnw5yjExEXQLUPdXxwKfXhhjLo8QhDPy4iptGb9NNTRNKuB7g0sCUR00AuCNdx3/rMkH6ZQBvWz3eyPM8C5q3Pzv5/4bqDU2Hd1qVVFiiOJZoVwKeS+dLAxz5jLAHvwqNe2y7ViB4ch4ZtLLRVBjE7meWwnfvW7qXnKekHOKwMt6iRxcU4RJneBxL0obPfuXrQ0iePBT+LqSH0j2/XTG90bQ3B36rhWavAR4h7lC/Q5oSam5o0bhWo1YHm7cTfRjJRIehbMMUnl6e2TUgEu30sG+1gnbquPjj2gTRs+hrxudjdKUMHW3ikm+dzm4l533rhVcd9FSZfZueWl9/lIaCLso8PZB7GFsHJcWlufhV9+O6M1mhkv7FH4/ewCgGSpLEQFQjlUM7bp2Yu2FMewyfutz9sQxl/Z9LBATSZ0kwRmajGth34Hv5RVOsrtVSriorHGahT4T664MJmigyWduByUgb54FBiOZq2RfWjYX14U9fjNQ== X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3b36e959-42ce-4127-d42d-08dba24cdb41 X-MS-Exchange-CrossTenant-AuthSource: AM9PR10MB4959.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Aug 2023 13:45:18.3959 (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: wQzqfxDm9IxYSVEU3dI0/OZjJNEO+nY7mIrq2ZY6hIY6a383lBoLZ+/y6p3obD+r3mnxsDjKT6npbPD5xjhIqg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR10MB7493 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=TYgq8lfE; 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 2a01:111:f400:fe0c::617 as permitted sender) smtp.mailfrom=stefan-koch@siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Stefan Koch Reply-To: Stefan Koch 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=-1.2 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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. By default at cross builds a kbuild-cross package will be generated that provides the host specific kbuild package. The "-compat" and "-native" multiarch bitbake targets are useable to run additional target or host specific builds for kbuild scripts and tools. Using the "-compat" bitbake target enables the build of a target specific kbuild package at cross builds. Using the "-native" bitbake target enables the build of a host specific kbuild package at cross builds. 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 | 12 ++++- .../linux/files/debian/isar/common.tmpl | 8 +++ .../linux/files/debian/isar/install.tmpl | 26 ++++++---- .../linux/files/debian/rules.tmpl | 2 +- meta/recipes-kernel/linux/linux-custom.inc | 49 ++++++++++++++++--- 6 files changed, 94 insertions(+), 19 deletions(-) diff --git a/meta/recipes-kernel/linux/files/debian/control.tmpl b/meta/recipes-kernel/linux/files/debian/control.tmpl index b19ca2c9..c012048b 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 906dc580..7f293528 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl @@ -22,7 +22,17 @@ 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}" KAFLAGS="${KAFLAGS}" + if echo "${DEB_BUILD_PROFILES}" | grep -q -e "targetbuild" -e "hostbuild"; then # Build kernel scripts and tools + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" scripts + if grep -q -E "CONFIG_STACK_VALIDATION=y|CONFIG_HAVE_OBJTOOL=y" ${KERNEL_BUILD_DIR}/.config && [ -d "tools/objtool" ]; then + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" tools/objtool || true + fi + if grep -q "CONFIG_MODULES=y" ${KERNEL_BUILD_DIR}/.config; then + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" modules_prepare + fi + else # Build the Linux kernel + ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" + 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 f4c0519f..36e01691 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/common.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/common.tmpl @@ -11,6 +11,14 @@ 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 + # The scripts and tools are always created for host arch + eval $(dpkg-architecture -f -A ${DISTRO_ARCH}) + CROSS_COMPILE=${DEB_TARGET_GNU_TYPE}- +fi + # Constants KCONF=.config diff --git a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl index 236b67c4..08b8a9a5 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 e8ae3daa..1f838a41 100755 --- a/meta/recipes-kernel/linux/files/debian/rules.tmpl +++ b/meta/recipes-kernel/linux/files/debian/rules.tmpl @@ -48,4 +48,4 @@ override_dh_strip_nondeterminism: 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 94ed84a2..85faa2d7 100644 --- a/meta/recipes-kernel/linux/linux-custom.inc +++ b/meta/recipes-kernel/linux/linux-custom.inc @@ -85,9 +85,6 @@ TEMPLATE_VARS += " \ DISTRIBUTOR \ " -inherit dpkg -inherit template - # Add custom cflags to the kernel build KCFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." KAFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." @@ -95,17 +92,57 @@ KAFLAGS ?= "-fdebug-prefix-map=${CURDIR}=." # Derive name of the kernel packages from the name of this recipe KERNEL_NAME_PROVIDED ?= "${@ d.getVar('PN').partition('linux-')[2]}" -# Make bitbake know we will be producing linux-image and linux-headers packages python() { kernel_name = d.getVar("KERNEL_NAME_PROVIDED") - d.setVar('PROVIDES', 'linux-image-' + kernel_name + ' ' + \ - 'linux-headers-' + kernel_name) + distro_arch = d.getVar("DISTRO_ARCH") + host_arch = d.getVar("HOST_ARCH") headers_depends = "linux-kbuild-" + kernel_name + # The "-compat" and "-native" multiarch bitbake targets are used to run + # additional target or host specific builds for kbuild scripts and tools. + # The "-compat" bitbake target requests a "target" build + # and the "-native" bitbake target requests a "host" build. + # + # For different distro and host archs + # - Add dependency for sbuild-chroot-target + # to allow building arch specific kbuild scripts and tools + # - Set correct variable overrides + is_compat = "compat" in d.getVar("PN", True) + is_native = "native" in d.getVar("PN", True) + + # Determine creation of a kbuild-cross or (standard) kbuild package for the host + is_cross_profile = distro_arch != host_arch and d.getVar("ISAR_CROSS_COMPILE", True) == "1" + + if is_cross_profile: + headers_depends = headers_depends + "-cross | " + headers_depends + build_depends = "crossbuild-essential-" + distro_arch + " [" + host_arch + "], " + d.appendVar("DEB_BUILD_PROFILES", " crosskbuild") + d.prependVar("KBUILD_DEPENDS", build_depends) + d.appendVarFlag("do_prepare_build", "depends", " sbuild-chroot-target:do_build") + d.setVar("ISAR_ENABLE_COMPAT_ARCH", "1") + d.setVar("COMPAT_DISTRO_ARCH", distro_arch) + + if is_compat: + d.appendVar("DEB_BUILD_PROFILES", " targetbuild") + d.setVar("ISAR_CROSS_COMPILE", "0") + elif is_native: + d.appendVar("DEB_BUILD_PROFILES", " hostbuild") + else: + d.appendVar("DEB_BUILD_PROFILES", " defaultkbuild") + + # Make bitbake know we will be producing + # linux-image and linux-headers packages + if not is_compat and not is_native: + d.setVar("PROVIDES", "linux-image-" + kernel_name + " " + \ + "linux-headers-" + kernel_name) + # Set dependency for kernel headers d.appendVar("KERNEL_HEADERS_DEBIAN_DEPENDS", headers_depends) } +inherit dpkg +inherit template + def get_kernel_arch(d): distro_arch = d.getVar("DISTRO_ARCH") if distro_arch in ["amd64", "i386"]: