From patchwork Tue Jan 2 16:46:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 13509171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D5794C46CD2 for ; Tue, 2 Jan 2024 16:46:38 +0000 (UTC) Received: from EUR05-AM6-obe.outbound.protection.outlook.com (EUR05-AM6-obe.outbound.protection.outlook.com [40.107.22.45]) by mx.groups.io with SMTP id smtpd.web10.33292.1704213996249827058 for ; Tue, 02 Jan 2024 08:46:36 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@siemens.com header.s=selector2 header.b=yr6uAE4H; spf=pass (domain: siemens.com, ip: 40.107.22.45, mailfrom: jan.kiszka@siemens.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=T105PZxTg31E9PkG+zlTG0eJcMvbkNJ0lQcJiarK7K41YKs8lwW4S4rRvp3rjqFto8DnkgJfRo+YH2wAgWcfFqG1GYIXhf16yajVPYCg1IInxaXe2+ykIlH3c8T+xvI1ongjT8EuzlPG1GJ93RUA/nf2MGKQy7/vPCD0zmARec6rnOHoReAeqjozTz+R/4eVkd8jlX9oTjjR5lZMxV1oaHMPSvIwApLSPbmkd+Kn6yFCBLgenqQbHj7+koZCgN2m207Z6kA63HrEEla6bNsIEJ+69pmXYWWWQPbGS43Qn9uLXRj4Z04FI8txtmBvREC+vvXsBx+lFT1GqKoqzqa83g== 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=9loYIM0pU9WzevrwvPz5ST/TcEC4YcZbDYNUpIh4ams=; b=k3nrHSv3VEv+xLXejag/xPT67I1iuWQGHcvYfGGlEwo7cPsF8xV5KUuFJb9HJx857OUL7l7bSBCOr31dguJ5JRNQkgltrl13PYJjQ11GIoQSD2f/wBOHUAhgtxRGi8ujrzCG8QBWnL7IS+mJwFB/Hqmf/dj8lNbWQ7Th/vfv2NLQmFGWZ8ISTPthG9Ovq7Nv9n6Pyl3DgvjZHwUMrIU36L1aWO2H9Y1dgcVBKpX0ntDR06TAkNE9Vmh+BDZFjQ/bsfGJJ7aIEytqxgW2JIb8NYqmaiIAYDDE2aq0t9WTeCUOz4YH1xB0MWcj1P3qGQya2AMICT0Cf9PXcP5spWKcMg== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=siemens.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9loYIM0pU9WzevrwvPz5ST/TcEC4YcZbDYNUpIh4ams=; b=yr6uAE4HRTutKbFULHJYmD01izw+XFvKBv/dMAipbOqp4RJGCqxudMcEehT/F6PKa85F/lkRTYidm9YB2GWuAWlWJCGHcqbh58BIS00VWdqbSPsxSfqNwe4tMcs4cYqtROGKq/vkeo8JXp239x2EHoXhoNRAAv6nH/i5QJqcY615YkF4mcoiLbeZQRywAUr5QNMhiRItZgWd+W6nRFf4wOMayAkRmdxxRkWt58WL2BJJ4/CWA+nAtrRVyvJm4b1JLBouTqPhXcReWxHIZvIFGWv2ISPWwG+DDosu2MtuVwLXiJIT8KTiRJs3zczJ+nIWbDD/szcoEBNuTr4/w/VNWQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siemens.com; Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) by DB9PR10MB8196.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:4c1::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7135.25; Tue, 2 Jan 2024 16:46:32 +0000 Received: from AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::96c7:d239:1723:8761]) by AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM ([fe80::96c7:d239:1723:8761%5]) with mapi id 15.20.7135.023; Tue, 2 Jan 2024 16:46:32 +0000 Message-ID: <87657383-8ab3-46c1-98c4-9a7565ed39ca@siemens.com> Date: Tue, 2 Jan 2024 17:46:30 +0100 User-Agent: Mozilla Thunderbird From: Jan Kiszka Subject: [isar-cip-core][PATCH] scripts: Add automated recipe updates for linux-cip Content-Language: en-US To: cip-dev X-ClientProxiedBy: FR3P281CA0069.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:4b::16) To AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:588::19) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AS4PR10MB6181:EE_|DB9PR10MB8196:EE_ X-MS-Office365-Filtering-Correlation-Id: df945d30-bf64-40e5-8af0-08dc0bb25fec X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tlQpx43a7Rj9rTwQrclHHIzJ2TCf/80w7Lzm2VJV8cCf+c3VbvAd1hy27v4SXE38CLljpRd/I3dFRGNu+NCwMCng+ynqKFpSFqnh71uiUoGN+fC768azks9ohX76hsCAiXv5AaSP8OSNEnxHclgG5rhp5CJXHq5Kpw3F0hERylYtgd9tM9B3cfVQ1rUhD1gtetMhR2M46eHoBEaAVN4ub4gSXPZKvIkVmu33gR+P0bZ1c1crTDDK98dY+LdbUKL2/uUPySG9E6ppYSIk9JcgZO8qnnMKko5dWqY7DNB24t57FWl889wsmLGXAW4gSDOscw3wtCDqv5moNonOC1ij9KY0DPDjyX6H1yLYclKC9pYQ7zfTYi2/D3tf4mNZqF4GwZp+psKPrEAWXc8DwJd1mXKOQtfWpXrMFExBrrLiWOxH7oCUxEYwAalQebC/uHwaQU7b4S1g5Ah9RoWXX22K2VOJ5DW2omuukaXSRluDoUNYXQgLJ43y9GYbhSHI1Lee9qONjvEbotNa/2Dpbs+0aGJZLs5yEc6g6XJIWK8aqkzN4YyUU7HSXJfKnnm0H6sJYmM1dXfPYXSS8wyLzlAStboTevIvC7yozlyEbid09VbDPEYNg8edbmlCRuxL6xU1+P+GXbZ5b5YX2HBF2pePDA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230031)(396003)(39860400002)(346002)(366004)(376002)(136003)(230922051799003)(451199024)(186009)(1800799012)(64100799003)(38100700002)(86362001)(82960400001)(41300700001)(44832011)(83380400001)(36756003)(478600001)(966005)(5660300002)(15650500001)(316002)(66476007)(6916009)(66556008)(2616005)(66946007)(26005)(8936002)(6486002)(8676002)(31686004)(31696002)(2906002)(6512007)(6506007)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?uzbaNniEdI5fhjRBdVmyJZJHeerB?= =?utf-8?q?llSlM2apr3L7rPuleSN3+yiLqdmowOWt22IPwbhc7nln3lzI6773rsOxFTkOLLyW7?= =?utf-8?q?N+ciIgSIOJVRX8rGoZHOEdLpw9jV6QJQKrWvG+Lp3jQfU7+dwrEa0/PrA85lwDdFi?= =?utf-8?q?BOaxTs/kGJobSPquSJmeymHnX7YZXXG+9UkICJoNMvVGJLMlNBfqS3O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?utf-8?q?ICHInK1GRoeetDB6nLTVq7zhv92brKxWLuGmpu07aJS/XzG50IT//2xCNbUulsPpy?= =?utf-8?q?PktaIy0sfHyKBnTL3b58J2BqyuHzXGcK45aj2vRA44ngwzYaL31mSbgZ9z/gnhjW3?= =?utf-8?q?+n41s4OdLA2a3g/lxQnfR+2HSVvZaDPDYfBQDY+GZ3zusFNTEcfcQivU6MSgPGZmT?= =?utf-8?q?pXAcLBBaS1TkW/VRehcjJC76sd8gDw1CKqnpgQoV8WPufy7GrT1eXe3oRbPDAMjwK?= =?utf-8?q?T3Z1ugBWhTOVc8awdm2II0N6felLIrvtW56UT+stz4Yj6yJjazxNffa1+X0gr+th+?= =?utf-8?q?cKergz/rBlm3/Csu3LkTUtAThbDFvnh3SGovpEggbF9PTTlaf3OTWY+5DnI8IQ7/B?= =?utf-8?q?1z13tpnrXotIdafEO+IpLwoiYKMzcL+Y4w0L2o+9GWSr+A5ebFFEH7hywGLIwLkzb?= =?utf-8?q?O240ljp+sFE2LSeUZdhGu+RuWlNAr+fUXg=3D=3D?= X-OriginatorOrg: siemens.com X-MS-Exchange-CrossTenant-Network-Message-Id: df945d30-bf64-40e5-8af0-08dc0bb25fec X-MS-Exchange-CrossTenant-AuthSource: AS4PR10MB6181.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jan 2024 16:46:32.2094 (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: VyKrXKbc1uvGoN9k4Ia3EjNMFQT5c2uqtcgH7NBHclKOx6Qr0y9r2YY9B/NrkDqeIpm9D6vxHHP5pUMHv7gwxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR10MB8196 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Tue, 02 Jan 2024 16:46:38 -0000 X-Groupsio-URL: https://lists.cip-project.org/g/cip-dev/message/14233 From: Jan Kiszka Should make life of contributors easier. Just make sure you have run gpg2 --locate-keys autosigner@kernel.org before calling this the first time. Signed-off-by: Jan Kiszka --- scripts/update-linux-cip.sh | 39 +++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 scripts/update-linux-cip.sh diff --git a/scripts/update-linux-cip.sh b/scripts/update-linux-cip.sh new file mode 100755 index 00000000..e4e170f4 --- /dev/null +++ b/scripts/update-linux-cip.sh @@ -0,0 +1,39 @@ +#!/bin/sh +REPO_ROOT=$(git rev-parse --show-toplevel) +pushd ${REPO_ROOT}/recipes-kernel/linux >/dev/null + +for MAJOR_VERSION in 4.4 4.19 5.10 6.1; do + rm -f sha256sums.asc + wget -q https://cdn.kernel.org/pub/linux/kernel/projects/cip/${MAJOR_VERSION}/sha256sums.asc + if ! gpg2 --verify sha256sums.asc 2>/dev/null; then + echo "sha256sums.asc for ${MAJOR_VERSION} invalid!" + exit 1 + fi + + LAST_ENTRY=$(grep "cip[0-9]\+\.tar\.xz" sha256sums.asc | sort -t p -k 3n | tail -1) + VERSION=${LAST_ENTRY/*linux-cip-/} + VERSION=${VERSION/.tar.xz/} + RECIPE_FILE=linux-cip_${VERSION}.bb + if [ ! -f ${RECIPE_FILE} ]; then + echo "Updating recipe to ${VERSION}" + git mv linux-cip_${MAJOR_VERSION}*.bb ${RECIPE_FILE} + SHASUM=${LAST_ENTRY/ */} + sed -i 's/\(SRC_URI\[sha256sum\] = "\).*/\1'${SHASUM}'"'/ ${RECIPE_FILE} + git add ${RECIPE_FILE} + fi + + LAST_ENTRY=$(grep "rt[0-9]\+\.tar\.xz" sha256sums.asc | sort -t p -k 3n | tail -1) + VERSION=${LAST_ENTRY/*linux-cip-/} + VERSION=${VERSION/.tar.xz/} + RECIPE_FILE=linux-cip-rt_${VERSION}.bb + if [ ! -f ${RECIPE_FILE} ]; then + echo "Updating recipe to ${VERSION}" + git mv linux-cip-rt_${MAJOR_VERSION}*.bb ${RECIPE_FILE} + SHASUM=${LAST_ENTRY/ */} + sed -i 's/\(SRC_URI\[sha256sum\] = "\).*/\1'${SHASUM}'"'/ ${RECIPE_FILE} + git add ${RECIPE_FILE} + fi +done + +rm -f sha256sums.asc +popd >/dev/null