From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Wed, 14 Aug 2024 19:36:44 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-lf1-f55.google.com (mail-lf1-f55.google.com [209.85.167.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 47EHahRt022844 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 14 Aug 2024 19:36:43 +0200 Received: by mail-lf1-f55.google.com with SMTP id 2adb3069b0e04-52efa5d94cbsf30883e87.0 for ; Wed, 14 Aug 2024 10:36:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723656998; cv=pass; d=google.com; s=arc-20240605; b=NoHz9N3EmqNOEkxL4sed59KMyt+Cq3+CcbhYwPv0B6f9bDObg1vZuuwUv6OL2qwbDK oMW559ObYZ0RYJkPErHZ4ZZqva5zaI2nx9Uc9C3Nd4PnxlwLEcZLolWJy2ZEFFBS+qD4 cACSskUV3MTebi573JH5GKhK0Dpw60tQwbAK1Ii4kAXvxm4xjN+/JEqLlI7YUW0op1uq P64WJlVLuISXOXdOUORI+Rr1VR/PHtcuewSd5RadEM8mcXC3P05di/E/OXL6kW1ezHA2 +V3GxRplwdmjgVf1P5U1uWJlAbUWmDCoUL05T6O61BbptiDaHb3TbqZ7NX7cEa3tuocB t2kA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:feedback-id:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Wn1fkJyHm2s27RzhPFCl7v/weDyTGI3ReAZbNkg+9cg=; fh=ph508zzFQiCOIMj0YfL9CRhEUua+ZZj5i4qD+H369Ec=; b=RDIepRzTD7Pi3jg9LXI5zgBUdpomFnjIiYC1+5WZX+n5xm6rCN3kmo3YGSZqxnkd7f yZQBbOXN5jZFWhG8x2hkmQgNKn40T9vuzRMP9W6+rnRlpPjJwaSug+WdkEYuieiWvbSu Pp+O1JSMSE7/7ovOCloDwoU5/waXQyAIxG4OaZKaKYWwPJrttCIofYfRuAiNEDPn0G+O UxHe7jNNwi8FpQp0/+G7Hgtr9okzjNmtiN90wSJGJtQiyrsAMNUEaB507bj7Pg3e9q9Q 175UYBRjdpzaSfiAjsDjPR5/6ET7X0WKxOgzIIeCPQ5hRvXS2Awu1MJgxQj3RsVvCcWs sB4A==; darn=ilbers.de ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hIRNaMx+; spf=pass (google.com: domain of fm-1327153-20240814173633911f3f24423dc080bc-oavnbs@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1327153-20240814173633911f3f24423dc080bc-OAvNbs@rts-flowmailer.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=20230601; t=1723656998; x=1724261798; darn=ilbers.de; 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:feedback-id :mime-version:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=Wn1fkJyHm2s27RzhPFCl7v/weDyTGI3ReAZbNkg+9cg=; b=jV0yUcNN8mIB1IzdkUSy7AQCTqaCslOfcUekCdGzz7hzpoQyxCxFfwWfgro4D1mG8w swoSI2zoIhUBClPa1zLbHOBOOU9y7hKpDHjKGJoxJpu0EyU6KW91NnTbiOL6AFsvdQAG Pw0OW1K5O0RY/jK/WSk0mJfPIvmpjBdPHZEBgSLOG1lEiFAOOTzm30UDLsdWOSqTWDa2 Id/ksp0x4mmJKATVliQzYr0jGWHOaBmfscpZNTvrKzw0X1Xpagh6QcAEVlR5jO+ZT24U PTa+SbKFTNC2oW1Qkx+tjngOr1TP0SxGsrlqMkjMm5bwOqatdBkNJDY7U4CnYlMmc6Y+ UFEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723656998; x=1724261798; 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:feedback-id :mime-version:message-id:date:subject:cc:to:from:x-beenthere :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Wn1fkJyHm2s27RzhPFCl7v/weDyTGI3ReAZbNkg+9cg=; b=B2lreqdLjpL54zkbKspLf0z1+Fe46gmCnNin8oqV9VpSA/s+t+ZVPYEYQ0p1tAeNxm 0isljm1u4f3ZR8zBdefYg4GUqTDozsDleF13pPFH83xwFGvX59bujNA1lkXMy1J4HwZc ai60DeP5u5JZd8/CQyVuWweOIa8nslRePG6nqpTI8YqCsrlT7hc7mIX/2FkrARfmN+AR FvJFWuMpBTFEr7erwwJ2w7niBhmCb5o/MvIb4ZzPpkYG62grLVs5k15wB108h2NxTpRg 2ki9WgxmfiKXiBpqMgVVIsbhKoIfcwLHV/ns1izeHIgFv4jp5ejjAK2yXF8NlDcZwlOj bDIw== X-Forwarded-Encrypted: i=2; AJvYcCVSwMmQMPac/qvfpGd5fJjC/OCHewUMNGayaE+kKskL+4rhpRcjIdyL+81iq6rP2ya9JEW1@ilbers.de X-Gm-Message-State: AOJu0YxhIlh4MoTG2pjs0rxK+NurdYWyOC3CzSAo8j2MsmthDWKE42s4 Kwbfhb8w1CBeQty4r9adxDWwhOf79tIDBEhxEuHaXr0brP5i2zdJ X-Google-Smtp-Source: AGHT+IF3FpcpG/7nQIUOPywVwrhBFnmD0B52o/1Z8R2V39saKWJwkbF3jhJRKlg3XnO0qrj/+fxr+w== X-Received: by 2002:a05:651c:2215:b0:2ef:29fc:f950 with SMTP id 38308e7fff4ca-2f3aa1ef037mr13309401fa.6.1723656996580; Wed, 14 Aug 2024 10:36:36 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a2e:22c3:0:b0:2ee:8477:7703 with SMTP id 38308e7fff4ca-2f3b379b814ls681081fa.1.-pod-prod-02-eu; Wed, 14 Aug 2024 10:36:34 -0700 (PDT) X-Received: by 2002:a2e:a401:0:b0:2ec:5fe1:c762 with SMTP id 38308e7fff4ca-2f3aa1fb5c9mr20969331fa.46.1723656994029; Wed, 14 Aug 2024 10:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723656993; cv=none; d=google.com; s=arc-20160816; b=UHlt0eeKHVRoaJwRnA5caXw9ad3FWHQ+/nLkXMQdLk02fHHhvZX4PpgeqGxBwLjLjJ ZOMNBRI7etEXmdOs8nfAWZXVdFJY8AEwZuNJR0Fo417HhMlkZoumP3qRrOqb1U0KaaKF +fpG51GmDTf8rQEVfdzhTyvgwcsMX1T0t+goaxQZaNZ6QAeh4aC2oNGDlpE9wUJlSx0u RoRVMjJLuVKi/zPhvgPBaoXvUuAKYeBMLHdEVhYWaHUlTDXotuYqLX+anCyRH6ymCGEI D84BJvr3nA8MvM92fTBPQ57XIWd+Rc4UCEcv+yrK1rMmGJryaBhEMQtxiO8blEav8Cwz +f0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=feedback-id:content-transfer-encoding:mime-version:message-id:date :subject:cc:to:from:dkim-signature; bh=sQY0KPNFo/Gq+YrSILzHmAxedGhuzH2TUeRHMn0uLmM=; fh=uEpizMaC9FZ5RjhWZ8Q38YHTDXG+3EPxv68QQHJHPnI=; b=Qlvg+B5+t1ydY7J0DmPLHbykJndMyPn/7Nrqf4IA2gUa6r2CEVD7f/PCecm/oDsO2x C3AhpgUD+PoEcuwEhKM6tw1F0iLwdbTI/KwGpAZD6F4mZCB//TMwT8gItPBvFW8OLkm3 qZA5Us3keKFkE6Fc88U/2TmURyqgIPZe7viIzk+QV/RW0/9NgQFp14KTHncl9q78ukEp jjYmOCM9ndLhqfRYbFsIzPC8QsgymzYRZLaXnPLAwvMMFq4RFPOEnBWM7NpY+goXB+nv XS0EC/Afe5o/AVzh2YN35GP9fd1FdcZqMDpyGDUnlbnVuJ86ZvpDYS3ivcFaYu1wmiPI 1JmQ==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hIRNaMx+; spf=pass (google.com: domain of fm-1327153-20240814173633911f3f24423dc080bc-oavnbs@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1327153-20240814173633911f3f24423dc080bc-OAvNbs@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-65-225.siemens.flowmailer.net (mta-65-225.siemens.flowmailer.net. [185.136.65.225]) by gmr-mx.google.com with ESMTPS id 4fb4d7f45d1cf-5bd1a5feca7si310606a12.4.2024.08.14.10.36.33 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 14 Aug 2024 10:36:33 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1327153-20240814173633911f3f24423dc080bc-oavnbs@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) client-ip=185.136.65.225; Received: by mta-65-225.siemens.flowmailer.net with ESMTPSA id 20240814173633911f3f24423dc080bc for ; Wed, 14 Aug 2024 19:36:33 +0200 From: "'Nicusor Huhulea' via isar-users" To: isar-users@googlegroups.com Cc: Nicusor Huhulea Subject: [PATCH] linux-custom: introduce Specific Target Build and some fixes Date: Wed, 14 Aug 2024 20:35:21 +0300 Message-Id: <20240814173524.383600-1-nicusor.huhulea@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1327153:519-21489:flowmailer X-Original-Sender: nicusor.huhulea@siemens.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=hIRNaMx+; spf=pass (google.com: domain of fm-1327153-20240814173633911f3f24423dc080bc-oavnbs@rts-flowmailer.siemens.com designates 185.136.65.225 as permitted sender) smtp.mailfrom=fm-1327153-20240814173633911f3f24423dc080bc-OAvNbs@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com X-Original-From: Nicusor Huhulea Reply-To: Nicusor Huhulea Content-Type: text/plain; charset="UTF-8" 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=-4.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,RCVD_IN_RP_CERTIFIED,RCVD_IN_RP_RNBL,RCVD_IN_RP_SAFE, 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-TUID: YRiWjm2Vc2GZ Hello, These series primarily are offering an alternative to the Full Build(default build) compilation of the kernel by introducing the Specific Target Build. An issue from a Full Build is the compilation of all dtbs in the case where just one or a few is needed i.e. DTB_FILES This automatic compilation is due to the kernel configuration that automatically includes the compilation of dtbs in the default build process and the makefiles rules in the bsp directories that builds DTBs along with the kernel by default. Another important aspect is that Isar currently is missing this feature forcing the user to use only the Full Build approach. Compiling the linux kernel using a specific target stops the automatic build of the dtbs, explicitly specifying dtbs files as make targets will instruct the build process to compile only those files. Note: Because it seems that there is no project where a .dtbo file is used, this case was not handled. But that doesn't mean it won't work anymore, we'll still have the Full Build alternative until the .dtbo will be handled when using Targeted Build. Pros of using a Specific Target Build: * Efficiency, compiling only what is required(e.g. only the required dtbs) is faster and consumes fewer resources. Some analysis will follow. * Focus, makes it easier to focus only on the target hardware reducing the issues with unsuported or bad configurations * Particularly for the ARM architecture it's better to compile only the specific dtbs needed for the target hardware and a Full Build should be reserved for the whole range of target devices from the bsp directory. If there are multiple kernel image types present in the configuration(Image, zImage, lzImage, Image.gz) you can specify KERNEL_IMAGETYPE to indicate the image type you want to be built.(the same as in OE) * Good to use for the development and deploying, focusing only on that target hardware and not all the targets from the arch/arm/boot/dts/bsp_dir/* * The ability to build multiple targets is on Full Build side, but in production usually only one specific image format is deployed therefore the need for the Specific Target Build Certain speed and disk space usage tests were made. These tests targeted the phyboard-mira(on Kernel Post-6.x and Kernel Pre-6.x spcifically on 4.19.88) and iot2050(Kernel Post-6.x): specific target: Build needed 00:02:08, 2219688k disk space - linux-phy kernel 6.x full build: Build needed 00:02:14, 2271528k disk space - linux-phy kernel 6.x specific build : Build needed 00:02:19, 2355400k disk space - linux-iot2050 kernel 6.x full build: Build needed 00:02:23, 2356828k disk space - liux-iot2050 kernel 6.x On linux-phy Kernel 6.x the full build took 6 seconds longer than the specific target build and used approximately 50.6 MB more disk space than the specific target build. The iot2050 data is somewhat similar. Based on the data from the dpkg_build.log the benefits of using specific targets reduces build times and resource efficiency. However there can be some potential pitfalls associated with this approach. When the engineer is not intimate with the bsp certain kernel configurations or some dependencies may not be satisfied. And this is why this is enabled only when KERNEL_IMAGETYPE is present. Reference: https://groups.google.com/g/isar-users/c/2Gjupa2m0OA Nicu -- You received this message because you are subscribed to the Google Groups "isar-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/isar-users/20240814173524.383600-1-nicusor.huhulea%40siemens.com.