From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6920633892472881152 X-Received: by 2002:a37:a603:: with SMTP id p3mr3830950qke.441.1630682512675; Fri, 03 Sep 2021 08:21:52 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:ac8:4590:: with SMTP id l16ls2833254qtn.3.gmail; Fri, 03 Sep 2021 08:21:52 -0700 (PDT) X-Received: by 2002:ac8:5215:: with SMTP id r21mr4310634qtn.175.1630682512327; Fri, 03 Sep 2021 08:21:52 -0700 (PDT) Received: by 2002:a37:8744:0:b0:3d3:3b61:318b with SMTP id af79cd13be357-42872a7b5fbms85a; Thu, 2 Sep 2021 08:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxz62zeUBkl2AOSm/CI8GrnEtEqw/YhZl5vc6TulgRxpLqFu85i2vdTDC7MOnyP2kwULJQ/ X-Received: by 2002:a05:600c:4152:: with SMTP id h18mr3590175wmm.55.1630595144630; Thu, 02 Sep 2021 08:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630595144; cv=none; d=google.com; s=arc-20160816; b=eWdUkxYyab6prJ2ljvVf39kdJsw+Nw8ubowC1BouKcywI1F+RZN738PVDw90zyCbgS tpbCSO2Hrm22z/QhEjWcVVDSak4cnS4ixtb8cteWvaG6V4TC9CeRGYzAQsOZPzQ7ngwe zhKeP01A/Xjt24/UMJCaBC4g9UKaX96aA5c24l9v4nRZWODsHK6eRXZGtbS/QPpuNBuo g3eGzkDAZ7Hf8T+qPKnsJlEZbLEAHKudlDs5HASwmyVTALCnwuRBrWahA8KW2+sMtVA6 51tbdrhMjIjZLLTGcExn1j2bthISESmG+phwDmnGBFBExd6v4qWbD4HcHyNtBv39scLM faXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date; bh=i5V75NWtE9RDoZCiWIM9mibGqURdN7yhDY+xzlD1toE=; b=Ti3CVtfhabYkErGvIRYulvzf2Jf5VSgYh9IZCYmWrY8ylUhYBCnmeTHm0gzfAkw3wu amnCiZVpIN2DQioOeoTLBsmW0WDjWxfbqdjzOiOADMtf4Ji66QZZnasSr1w1Es3hwkAM 9w5qhrUQRngLAowJzQPBQnpUeOGS95qBzJJjL8RHR9hdGEUrY52JDWrUHkKDGg1r5dVz hASCOaNMYTJ+yj0MO9MQK2m+VWcnrfFNuUG7UMDzHwmIIeCaGRD9iWpPXSv7JYn/MMYX ZdnJeSR29r27HurIzP8JB4Ah+db3FQtngJ6lAwGCLge1cJq8qXJWirerrrE+KK0wIei3 5BeA== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from gecko.sbs.de (gecko.sbs.de. [194.138.37.40]) by gmr-mx.google.com with ESMTPS id 3si129948wmz.2.2021.09.02.08.05.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Sep 2021 08:05:44 -0700 (PDT) Received-SPF: pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) client-ip=194.138.37.40; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of henning.schild@siemens.com designates 194.138.37.40 as permitted sender) smtp.mailfrom=henning.schild@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by gecko.sbs.de (8.15.2/8.15.2) with ESMTPS id 182F5iKW014814 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 2 Sep 2021 17:05:44 +0200 Received: from md1za8fc.ad001.siemens.net ([139.25.0.59]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id 182F5hSN006208; Thu, 2 Sep 2021 17:05:44 +0200 Date: Thu, 2 Sep 2021 17:05:43 +0200 From: Henning Schild To: Anton Mikanovich Cc: isar-users@googlegroups.com Subject: Re: [PATCH v2] linux-custom: Fix decompressed kernel name for arm64 Message-ID: <20210902170543.38a9e62a@md1za8fc.ad001.siemens.net> In-Reply-To: <20210125143128.88428-1-amikan@ilbers.de> References: <20210125143128.88428-1-amikan@ilbers.de> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TUID: 8/IjXP1l5w2m Turns out this is wrong. debian itself would use vmlinuz for arm64 and in fact also does that i.e in "linux-update-symlinks" which takes its "stem" from https://salsa.debian.org/kernel-team/linux-base/-/blob/master/lib/DebianLinux.pm#L79 And on the other side of the story ... debians kernel build sets the arm64 stem https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/config/arm64/defines#L14 I will send patches. Henning Am Mon, 25 Jan 2021 17:31:28 +0300 schrieb Anton Mikanovich : > We are performing gunzip from vmlinuz on arm64, so output should have > correct naming. > > Signed-off-by: Anton Mikanovich > --- > Changes since v1: > - Add RECIPE-API-CHANGELOG entry. > --- > RECIPE-API-CHANGELOG.md | 5 +++++ > meta/conf/bitbake.conf | 1 + > meta/recipes-kernel/linux/files/debian/isar/install.tmpl | 6 +++--- > 3 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/RECIPE-API-CHANGELOG.md b/RECIPE-API-CHANGELOG.md > index cc45f3f..bd8a204 100644 > --- a/RECIPE-API-CHANGELOG.md > +++ b/RECIPE-API-CHANGELOG.md > @@ -282,3 +282,8 @@ like /boot/efi to avoid such issues. > ### Deprecate BUILD_DEPENDS in u-boot-custom.inc > > Use DEBIAN_BUILD_DEPENDS instead, to align with deb_debianize. > + > +### Change kernel image name for arm64 > + > +Kernel image name for arm64 platforms is vmlinux now. Image format > was +not changed (uncompressed executable) but now it is named > correctly. diff --git a/meta/conf/bitbake.conf > b/meta/conf/bitbake.conf index acce55d..9859456 100644 > --- a/meta/conf/bitbake.conf > +++ b/meta/conf/bitbake.conf > @@ -61,6 +61,7 @@ CACHE = "${TMPDIR}/cache" > KERNEL_FILE ?= "vmlinuz" > KERNEL_FILE_mipsel ?= "vmlinux" > KERNEL_FILE_riscv64 ?= "vmlinux" > +KERNEL_FILE_arm64 ?= "vmlinux" > > OVERRIDES = > "${DISTRO_ARCH}:${COMPAT_OVERRIDE}:${MACHINE}:${DISTRO}:forcevariable" > FILESOVERRIDES = "${DISTRO_ARCH}:${MACHINE}" diff --git > a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl > b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl index > 8eca4c7..69fb88d 100644 --- > a/meta/recipes-kernel/linux/files/debian/isar/install.tmpl +++ > b/meta/recipes-kernel/linux/files/debian/isar/install.tmpl @@ -26,9 > +26,9 @@ do_install() { fi krel="$(${MAKE} O=${O} -s > --no-print-directory kernelrelease)" case "${ARCH}" in > - mips|powerpc|riscv) kimage_path="boot/vmlinux-${krel}" ;; > - um) kimage_path="usr/bin/vmlinux-${krel}" ;; > - *) kimage_path="boot/vmlinuz-${krel}" ;; > + mips|powerpc|riscv|arm64) kimage_path="boot/vmlinux-${krel}" > ;; > + um) > kimage_path="usr/bin/vmlinux-${krel}" ;; > + *) kimage_path="boot/vmlinuz-${krel}" > ;; esac > > print_settings