From patchwork Tue Aug 13 11:55:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "nicusor.huhulea@siemens.com" X-Patchwork-Id: 3744 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Tue, 13 Aug 2024 13:56:30 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wm1-f55.google.com (mail-wm1-f55.google.com [209.85.128.55]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 47DBuT8X015798 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 13 Aug 2024 13:56:30 +0200 Received: by mail-wm1-f55.google.com with SMTP id 5b1f17b1804b1-4280e1852f3sf43709165e9.3 for ; Tue, 13 Aug 2024 04:56:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1723550184; cv=pass; d=google.com; s=arc-20160816; b=MzP8U2xqo1atEtCRQR2SVUW9YllAP1SUvk/YfN6/v3NSY6wv7dmCmVoCJJoI+01PGR M1L3gWEQECRagsiJy8eXq5ozGLjOw5kZP74Z+qhY6b+HjP7DWUBBnrhH3rJ0iT4O4quo Aw6RK/evJkG5b87Dmg6ddk63nBSDagY2ml4UTtNX2N1KpjmYfXTZi7RnB8ATlRbf3I7R eJLVAYyptAHctboBYaqGMbVQDohMM09LnOwY4e/YN7A6EMgTcJzPjAN+NpcA/3pTtHLg m2l6edXN/XfACa7nkHzws8AA7GsIG0XpE5MXKRuZlvJoLXI3RCmMlgs2Q0KBRbXJbPWM 0LWA== ARC-Message-Signature: i=2; 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:feedback-id:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9cVHzdwMOHDTP7/OtomfccN8AAOWBi+ilFWwXkSlwd8=; fh=jm2vSBMJWC8LpUFibGeMvuyGwjGO5tj3aFE5ynRm7xE=; b=AI7LDkP4AKQortCCumkx85zKpQqAyNlV2oGsTFb/RHew8OPlwCk+MMGSTaD7UX/U17 ajhOtkuH55JO2rMKwiAvWmnSrCRQz2Puj44YiMmP3bJQgVfG9Y8OXIypkpiRgR1t+bUx AL0ifnQvt8H21Ok/SdPsvKAB4tI0XEiEZfXOCSm13F44Bfvlx6udrYzs+gjYgiTnGVW0 ziy73igGomMW3XLH8MX8pg+dnVAy7XIa8WMawarefA0Md4fFt21MrA2H0+H5AUYDj82k PdvxXnsDF5cZ0kPMyg0JR7XI0xIly4k+pFz8pSQwx3PRnGHkTdmgpwCjdxxYwI3w22HD OEwg==; darn=isar-build.org ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=OoNBISvB; spf=pass (google.com: domain of fm-1327153-202408131156217b83d38bf609cb2b56-zbipfu@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1327153-202408131156217b83d38bf609cb2b56-zBiPFu@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=1723550184; x=1724154984; darn=isar-build.org; 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:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=9cVHzdwMOHDTP7/OtomfccN8AAOWBi+ilFWwXkSlwd8=; b=wO+0aEwTzHH1H1i2786VrV9tCxuredPyCCCDtzmigQjZ95+DATjRzWQHYGEnZ8SEI/ h18KGtsYdFEbq5TyG+iLEekjSxJd4rylazGXw+SS/1VvsRCdBb69g6hr/NW30U2aXEWt titliTLrDwz9FcyhrSAne0JSWls6eMy/Kzo9NaQMxZDJ2qu9pZiyB+J6QaIeCHjt0dck mSkYW6DSySx8/0+2lXy1KaPOjlWaCi3aE+rSFIgLgv0ENQsA0QfeS+w8hwHvxLRt8cV1 HpjU1xajIeERlur2jS9vbxDZKs+jnE6WnK6tQMViocXAvCCzlbmYQ2jVW9n+K5tx1wMh vmTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723550184; x=1724154984; 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: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=9cVHzdwMOHDTP7/OtomfccN8AAOWBi+ilFWwXkSlwd8=; b=s9ufbu/5FGs65kOjaYBKp7mAUoZ8aueE0OzmF3GKXyBj8QvmGPu3Xh2tDh5in5qNnE bo/7FhxEpnt933DsSCZORLdlUD8w/LDzOMWeZPDXKyQM68VyFwxhMt2SF/KusU+UVy3Q rqhj7cCwXU/hSbb2/pGktzR0MgSeTjt2YJxhWEHNydGI+edZwzHaUybPiTw8TbU25svM jHpriih1L5lxhYaBoJYVj078+JxSkWpj68yO7ACD2iMJrgkELR71sqz1WayIw/bHQ9H4 p4GXe8j3DCdUbYgZzzvi3NrKJ4ZCEcMjXr8zwg3HbcxCJ4isimAC+Ti8t6Vl0E/+9cjS Tcyg== X-Forwarded-Encrypted: i=2; AJvYcCU7CBHve0VXh4UeuO17aKB/zMMN99swMxZD4G6Aqis13lsgXBNkEPseKMiKWPpsYVtkKaS+s5tNcftHFafujcyZ5/Ivpc4= X-Gm-Message-State: AOJu0Yz39KIGN5X2yYZn5kMLsW/fW3ia/485A5JdqPGVNV/yFYV/bLBP z1fQ6Gjh23qlpsF9DrCGizKzvytmaKAtJle0MzAu2Xhxt0P0fB68 X-Google-Smtp-Source: AGHT+IGlURdgmFHAiG9ceteZiGlgB6QMnrRcCmyrw81iC9EREu8hzY8hByIjnLpAZyyy1GXljeUSdQ== X-Received: by 2002:a05:600c:1c88:b0:427:ac40:d4b1 with SMTP id 5b1f17b1804b1-429d486e792mr26458195e9.27.1723550183666; Tue, 13 Aug 2024 04:56:23 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a05:600c:3baa:b0:426:73d7:f1f5 with SMTP id 5b1f17b1804b1-4290918e8e0ls25857505e9.1.-pod-prod-07-eu; Tue, 13 Aug 2024 04:56:22 -0700 (PDT) X-Received: by 2002:a05:600c:1d10:b0:429:d43e:dbb9 with SMTP id 5b1f17b1804b1-429d486e7c8mr24731575e9.23.1723550181802; Tue, 13 Aug 2024 04:56:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723550181; cv=none; d=google.com; s=arc-20240605; b=EgA34jI2VQ9/r0QWxl1VezNtk9XZjOkbqtv5Af5b37i0vvaxB6d4IkStS4PE8BynR+ QFlXZRkSP62z0OpqVbr1HnzP57cx1lzAwEN5p/iW/EtUPwkdjHEUu2j7Q4JPb8tjMDEO ba99Y6pzfNemKhtiKc3O4z3f/QsKuG6wIh9ECJFg0rZ5MVYeFn8/SMas6Jc3Q+4RfP5L qu1Xw+THBCVlQFThbfYSFvSPu/KeYnUsWmkivlx0Qzvd6QZYzlXP8MQZgpqpmdsM4B1B V6JB0lcAFz3WiWLRCuCQgfavzv4q3HmKHkRB4mwCR4BGTgazxCEkObrJoKjusGkSYXBK fstg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=feedback-id:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=vAZX2H6BkXdzimjvhdIniYSldQHxVH+SxuXLIsH2lMM=; fh=uEpizMaC9FZ5RjhWZ8Q38YHTDXG+3EPxv68QQHJHPnI=; b=UcY1jLbScKCP57xf2vljjJsdIbKbrtidsys1+hPqENaCnqhfWjnUIyrOpydQgXAuP2 IziVR2mcRrIoPULgH6BeyCU019smX7AP0fBkQSKbsPBYSSvXIzv77zZJJgiLQB85zLZk YSzHXDyrmsNkFjXknSP69T+3dDFR79EsEU0m6T6Qkml/tDQ6vHY2ErJC0XU9RvzbbNdf 5DPR8K6peNfkPl9Wots/BrVT+LUqgyKHaS/ltwXaQ2Q+8xIWP9P1lZ/UgbW9EuIwEjOj wICNDoJfX64k9SwVddSfSeI6Z8+tU3yLFcaoxcmD0hwB7NCdNH4FxmdW5ahVTLUM5Ks8 C3zw==; dara=google.com ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@siemens.com header.s=fm1 header.b=OoNBISvB; spf=pass (google.com: domain of fm-1327153-202408131156217b83d38bf609cb2b56-zbipfu@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1327153-202408131156217b83d38bf609cb2b56-zBiPFu@rts-flowmailer.siemens.com; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=siemens.com Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net. [185.136.64.226]) by gmr-mx.google.com with ESMTPS id 5b1f17b1804b1-429d780f2cesi714035e9.0.2024.08.13.04.56.21 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Aug 2024 04:56:21 -0700 (PDT) Received-SPF: pass (google.com: domain of fm-1327153-202408131156217b83d38bf609cb2b56-zbipfu@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) client-ip=185.136.64.226; Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 202408131156217b83d38bf609cb2b56 for ; Tue, 13 Aug 2024 13:56:21 +0200 X-Patchwork-Original-From: "'Nicusor Huhulea' via isar-users" From: "nicusor.huhulea@siemens.com" To: isar-users@googlegroups.com Cc: Nicusor Huhulea Subject: [PATCH 1/3] linux-custom: optimization on kernel's make command Date: Tue, 13 Aug 2024 14:55:19 +0300 Message-Id: <20240813115521.381481-1-nicusor.huhulea@siemens.com> In-Reply-To: <20240802114105.1767411-1-nicusor.huhulea@siemens.com> References: <20240802114105.1767411-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=OoNBISvB; spf=pass (google.com: domain of fm-1327153-202408131156217b83d38bf609cb2b56-zbipfu@rts-flowmailer.siemens.com designates 185.136.64.226 as permitted sender) smtp.mailfrom=fm-1327153-202408131156217b83d38bf609cb2b56-zBiPFu@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 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= Signed-off-by: Nicusor Huhulea --- .../recipes-kernel/linux/files/debian/isar/build.tmpl | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl index bafc5ca4..1fd6f948 100644 --- a/meta/recipes-kernel/linux/files/debian/isar/build.tmpl +++ b/meta/recipes-kernel/linux/files/debian/isar/build.tmpl @@ -21,15 +21,16 @@ do_build() { KR=$(${MAKE} O=${KERNEL_BUILD_DIR} -s --no-print-directory kernelrelease) sed -i "s/@KR@/${KR}/g" ${S}/debian/control ${S}/debian/linux-image-${KERNEL_NAME_PROVIDED}.* - if echo "${DEB_BUILD_PROFILES}" | grep -q "kernel"; then # Build kernel scripts and tools - ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} ${KERNEL_EXTRA_BUILDARGS} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" + MAKE_COMMON_ARGS="O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} KCFLAGS=${KCFLAGS} KAFLAGS=${KAFLAGS}" + if echo "${DEB_BUILD_PROFILES}" | grep -q "kernel"; then # Full build + ${MAKE} ${MAKE_COMMON_ARGS} ${KERNEL_EXTRA_BUILDARGS} elif echo "${DEB_BUILD_PROFILES}" | grep -q "kbuild"; then # Build kernel scripts and tools - ${MAKE} O=${KERNEL_BUILD_DIR} ${PARALLEL_MAKE} ${KERNEL_EXTRA_BUILDARGS} KCFLAGS="${KCFLAGS}" KAFLAGS="${KAFLAGS}" scripts + ${MAKE} ${MAKE_COMMON_ARGS} ${KERNEL_EXTRA_BUILDARGS} 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 + ${MAKE} ${MAKE_COMMON_ARGS} 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 + ${MAKE} ${MAKE_COMMON_ARGS} modules_prepare fi fi